2025-06-23 5:59 AM - last edited on 2025-06-24 3:21 AM by Andrew Neil
Good day!
I have custom board with cpu stm32l562. I am prepared all data and global license.
CPU prepared by script file from package STM32CubeExpansion_SFI_v1.5.0 L5.
This operation is OK.
But after if start programm by Cube Programmer ( v 2.19 ) - i have error all times.
I am add log with this errors...
Help me, please.
12:25:13 : SFI parsing file started ...
12:25:13 : SFI header information :
12:25:13 : SFI protocol version : 2
12:25:13 : SFI total number of areas : 4
12:25:13 : SFI image version : 0
12:25:13 : SFI Areas information :
12:25:13 : Parsing Area 1/4 :
12:25:13 : Area type : F
12:25:13 : Area size : 80560
12:25:13 : Area destination address : 0x8040000
12:25:13 : Parsing Area 2/4 :
12:25:13 : Area type : F
12:25:13 : Area size : 65664
12:25:13 : Area destination address : 0xC000000
12:25:13 : Parsing Area 3/4 :
12:25:13 : Area type : F
12:25:13 : Area size : 128
12:25:13 : Area destination address : 0xC03E000
12:25:13 : Parsing Area 4/4 :
12:25:13 : Area type : C
12:25:13 : Area size : 48
12:25:13 : Area destination address : 0x0
12:25:13 : Parsed File SUCCESS
12:25:29 : Starting Firmware Install operation...
12:25:30 : Warning: Option Byte: TZEN, value: 0x1, was not modified.
12:25:31 : Reconnecting...
12:25:32 : Reconnected !
12:25:32 : Time elapsed during option Bytes configuration: 00:00:02.160
12:25:32 : Warning: Option Byte: SECWM1_PEND, value: 0x7F, was not modified.
12:25:32 : Warning: Option Byte: SECWM1_PSTRT, value: 0x0, was not modified.
12:25:32 : Warning: Option Bytes are unchanged, Data won't be downloaded
12:25:32 : Time elapsed during option Bytes configuration: 00:00:00.005
12:25:33 : Reconnecting...
12:25:34 : Reconnected !
12:25:34 : Time elapsed during option Bytes configuration: 00:00:02.161
12:25:34 : Warning: Option Byte: SECBOOTADD0, value: 0x1FF000, was not modified.
12:25:34 : Warning: Option Bytes are unchanged, Data won't be downloaded
12:25:34 : Time elapsed during option Bytes configuration: 00:00:00.006
12:25:34 : Installing RSSe
12:25:34 : Opening and parsing file: RSSe_SFI_L552_L562_v6.0.0.bin
12:25:34 : Memory Programming ...
12:25:34 : File : RSSe_SFI_L552_L562_v6.0.0.bin
12:25:34 : Size : 35.92 KB
12:25:34 : Address : 0x20005100
12:25:34 : Erasing memory corresponding to sector 0:
12:25:34 : Download in Progress:
12:25:34 : File download complete
12:25:34 : Time elapsed during download operation: 00:00:00.078
12:25:34 : Warning: Option Byte: TZEN, value: 0x1, was not modified.
12:25:34 : Warning: Option Byte: nBoot0, value: 0x0, was not modified.
12:25:34 : Warning: Option Byte: nSWBoot0, value: 0x0, was not modified.
12:25:34 : Warning: Option Bytes are unchanged, Data won't be downloaded
12:25:34 : Time elapsed during option Bytes configuration: 00:00:00.006
12:25:34 : Error: Execution of RSS CMD failed, returned value = 0x20005014
12:25:34 : Error: Installing the RSSe failed!
12:25:35 : Error: Cannot launch RSSe...
2025-06-23 10:11 PM
Small add. I am using SFIG ( global license ).
2025-06-23 11:46 PM
if the SFIG ( global license ), you are refering to the mechanism describe in this wiki page :
https://wiki.st.com/stm32mcu/wiki/Security:SFI_for_STM32H5#SFI_for_STM32H5_without_Secure_Manager
"The OEM provisions its OEM key, using the Trusted Package Creator, in one global license file."
This mechanism is available only on STM32H5 and with the Secure Manager.
2025-06-24 2:16 AM
Thank you for response! I will order card and work with it. The question is how can I return CPU to default state? I used to run debug in stm32cubeide before my changes. But I can't after i have enabled TZEN. Are those changes revertable at all?
Best regards.
2025-06-24 2:49 AM
@dlpPavlo
To disable TZ, it should be associated with a RDP regression.
Please have a look in this video :
https://www.youtube.com/watch?v=4UW8lnbV1cA&list=PLnMKNibPkDnGxKqGyLbiGygmlrvISIBIT&index=2
Best regards,
Frantz
2025-06-24 3:18 AM
Yes, i can disable TZ. But on next my boards I can debug with TZ enable. This board work the same before my test write SFI. Now if I set TZ - debug not started only on this board...