Associate III
February 3, 2024
Solved
Error when writing secure firmware image to STM32U535
- February 3, 2024
- 2 replies
- 3350 views
I followed the secure image tutorials as can be seen in AN4992/AN5054 or in videos made available by ST. The process takes place without errors, as can be seen in the images below (start address is 0x08000000).


Smart card is valid and working:

However, when trying to burn the image, either via stm32cubeprogrammer or via command line I get the following error:
Error: Execution of RSS CMD failed, returned value = 0x1
Has anyone experienced this problem? Any recommendations ?
Addtional information:
- STM32 Trusted Package Creator v2.15.0
- STM32CubeProgrammer v2.15.0
- Before programming, I followed the ST recomendation (AN5054)
- The flash memory is erased.
- No WRP zone is active, otherwise destroy it.
- The chip supports security (a security bit must be present in the option bytes).
- If the security is activated, disable it
- I used scripts provided by ST and I am attaching a complete log and option bytes (some info were ommited by security reasons).
- TZM is not enabled and RDP is AA (ok, I know it means no protection and I will change them later despite that both are changed by programmer).
Thanks a lot.

