Hi,

 

I believe there is a small typo in the return value of function ps_read_object (ps_object_system.c). This results in build failure of Non-encrypted Protected Storage.

 

https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/secure_fw/partitions/protected_storage/ps_object_system.c#n115

 

The define used should be “PSA_ERROR_DATA_CORRUPT” and not “PSA_PS_ERROR_DATA_CORRUPT”.

 

Best regards,

Robert