cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Execution of RSS CMD failed, returned value = 0xF5F5F5F5

PRozz.1
Associate II

Hi,

I am trying to program an SFI on a board with an STM32U535 microcontroller and I get the error message 55555. I am connected through an STLINK V3 and use STM32CubeProgrammer.
The process fails even though the license counter on the HSM is decremented and I get the following messages:

17:13:15 : Requesting Chip Certificate from device ...
17:13:15 : Reading chip Certificate finished
17:13:15 : Get Certificate done successfully
17:13:15 : requesting license for the current STM32 device
17:13:15 : Init Communication ...
17:13:15 : P11 lib initialization Success!
17:13:15 : Opening session with slot ID 1...
17:13:16 : Succeed to Open session with reader slot ID 1
17:13:17 : Succeed to generate license for the current STM32 device
17:13:17 : Closing session with reader slot ID 1...
17:13:17 : Session closed with reader slot ID 1
17:13:17 : Closing communication with HSM...
17:13:17 : Communication closed with HSM
17:13:17 : Succeed to get License for Firmware from HSM slot ID 1
17:13:17 : Starting Firmware Install operation...
17:13:18 : Reconnecting...
17:13:19 : Reconnected !
17:13:19 : Time elapsed during option Bytes configuration: 00:00:02.139
17:13:19 : Warning: Option Byte: SECWM1_PEND, value: 0x1F, was not modified.
17:13:19 : Warning: Option Byte: SECWM1_PSTRT, value: 0x0, was not modified.
17:13:19 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:13:19 : Time elapsed during option Bytes configuration: 00:00:00.004
17:13:19 : Warning: Option Byte: SECWM2_PEND, value: 0x1F, was not modified.
17:13:19 : Warning: Option Byte: SECWM2_PSTRT, value: 0x0, was not modified.
17:13:19 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:13:19 : Time elapsed during option Bytes configuration: 00:00:00.004
17:13:20 : Reconnecting...
17:13:21 : Reconnected !
17:13:21 : Time elapsed during option Bytes configuration: 00:00:02.136
17:13:21 : Warning: Option Byte: SRAM_RST, value: 0x1, was not modified.
17:13:21 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:13:21 : Time elapsed during option Bytes configuration: 00:00:00.004
17:13:21 : Installing RSSe
17:13:21 : Opening and parsing file: RSSe_SFI_U535_U545_v5.0.0.bin
17:13:21 : Memory Programming ...
17:13:21 : File : RSSe_SFI_U535_U545_v5.0.0.bin
17:13:21 : Size : 37.70 KB
17:13:21 : Address : 0x20004300
17:13:21 : Erasing memory corresponding to sector 0:
17:13:21 : Download in Progress:
17:13:21 : File download complete
17:13:21 : Time elapsed during download operation: 00:00:00.107
17:13:21 : Warning: Option Byte: TZEN, value: 0x1, was not modified.
17:13:21 : Warning: Option Byte: nBoot0, value: 0x0, was not modified.
17:13:21 : Warning: Option Byte: nSWBoot0, value: 0x0, was not modified.
17:13:21 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:13:21 : Time elapsed during option Bytes configuration: 00:00:00.005
17:13:22 : Reconnecting...
17:13:23 : Reconnected !
17:13:23 : Time elapsed during option Bytes configuration: 00:00:02.145
17:13:23 : Get RSSe status...
17:13:24 : Warning: Option Byte: TZEN, value: 0x1, was not modified.
17:13:24 : Warning: Option Byte: nBoot0, value: 0x0, was not modified.
17:13:24 : Warning: Option Byte: nSWBoot0, value: 0x0, was not modified.
17:13:24 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:13:24 : Time elapsed during option Bytes configuration: 00:00:00.006
17:13:24 : RSS version = 1.6.0
17:13:24 : RSSe version = 5.0.0
17:13:24 : Starting SFI
17:13:24 : Processing license...
17:13:24 : Get RSSe status...
17:13:24 : Processing Image Header
17:13:24 : Error: Execution of RSS CMD failed, returned value = 0xF5F5F5F5
17:13:24 : Error: Failed to Process Image Header!

The microcontroller is powered at 3 V, the BOOT0 pin is connected to VCC with a 10K pullup, the reset, in addition to the SWI, is connected to VCC with a 100K pullup and to ground with a 10 uF capacitor.
I would appreciate some ideas for getting out of this impasse.

 

3 REPLIES 3
Aziz BRIGUI
ST Employee

Hello @PRozz.1,

Are you sure you're using the same Key and Nonce between HSM and .sfi file, also what connection mode are you using (I suggest using Hotplug mode in this case) ?

What STM32CubeProgrammer version are you using ? Do you have a Nucleo-U545 board to test the same scenario on (This will help determine if it's a HW issue) ?

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
PRozz.1
Associate II

Hi Aziz,

No, I don't have an evaluation board for this microcontroller but, for that matter, since I am using the SWI interface, the same one I used to debug the board's test software, which runs smoothly, there should be no hardware-related problems.

As far as Key and Nonce are concerned, since the microcontroller-specific code generation step was successful “17:13:17: Succeed to generate license for the current STM32 device” I think this cannot be the cause of the problem.

If you have any any other suggestions it is definitely welcome.

Best regard

Paolo.

 

Hi @PRozz.1,

Yes you're right, sorry for missing that initially in the log. 

Since you have BOOT0 at VCC, make sure to have  NSBOOTADD1 = 0x17F200. If that doesn't work, I don't have other suggestions for now (Especially since I don't have your HW on hand). I will keep investigating and get back to you if anything pops-up.

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.