cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H730 SFI Error: Invalid state after SFI install

dynetskov
Associate

Device details :

ST-LINK SN : 30001100140000363132524E

ST-LINK FW : V2J45S7

Board : --

Voltage : 3.25V

SWD freq : 4000 KHz

Connect mode: Hot Plug

Reset mode : Software reset

Device ID : 0x483

Revision ID : Rev Z

dynetskov_0-1746519667917.png

Get the next error during SFI performing via STM32CubeProgrammer v 2.17.0 using license file:

11:12:18 : Error: SECURITY State Fail
11:12:18 : Error: Invalid state after SFI install !
11:12:18 : Error: RSS internal system error or License is invalid !  

 

SFi creation:

dynetskov_0-1746520145925.png

License generation:

dynetskov_1-1746520186183.png

STM32CubeProgrammer SFI tab:

dynetskov_2-1746520249442.png

 

Full log:

11:11:24 : UR connection mode is defined with the HWrst reset mode
11:11:24 : ST-LINK SN : 30001100140000363132524E
11:11:24 : ST-LINK FW : V2J45S7
11:11:24 : Board : --
11:11:24 : Voltage : 3,25V
11:11:24 : SWD freq : 4000 KHz
11:11:24 : Connect mode: Hot Plug
11:11:24 : Reset mode : Software reset
11:11:24 : Device ID : 0x483
11:11:24 : Revision ID : Rev Z
11:11:24 : Debug in Low Power mode is not supported for this device.
11:11:24 : UPLOADING OPTION BYTES DATA ...
11:11:24 : Bank : 0x00
11:11:24 : Address : 0x5200201c
11:11:24 : Size : 92 Bytes
11:11:24 : UPLOADING ...
11:11:24 : Size : 1024 Bytes
11:11:24 : Address : 0x8000000
11:11:24 : Data read successfully
11:11:24 : Time elapsed during the read operation is: 00:00:00.008
11:11:59 : SFI parsing file started ...
11:11:59 : SFI header information :
11:11:59 : SFI protocol version : 2
11:11:59 : SFI total number of areas : 5
11:11:59 : SFI image version : 0
11:11:59 : SFI Areas information :
11:11:59 : Parsing Area 1/5 :
11:11:59 : Area type : F
11:11:59 : Area size : 122816
11:11:59 : Area destination address : 0x8000000
11:11:59 : Parsing Area 2/5 :
11:11:59 : Area type : P
11:11:59 : Area size : 32
11:11:59 : Area destination address : 0x81FF000
11:11:59 : Parsing Area 3/5 :
11:11:59 : Area type : R
11:11:59 : Area size : 32
11:11:59 : Area destination address : 0x81FF000
11:11:59 : Parsing Area 4/5 :
11:11:59 : Area type : F
11:11:59 : Area size : 6272
11:11:59 : Area destination address : 0x801DFC0
11:11:59 : Parsing Area 5/5 :
11:11:59 : Area type : C
11:11:59 : Area size : 20
11:11:59 : Area destination address : 0x0
11:11:59 : Parsed File SUCCESS
11:12:12 : Starting Firmware Install operation...
11:12:12 : Warning: Option Byte: TCM_AXI_SHARED, value: 0x0, was not modified.
11:12:12 : Warning: Option Bytes are unchanged, Data won't be downloaded
11:12:12 : Time elapsed during option Bytes configuration: 00:00:00.001
11:12:12 : Activating security...
11:12:12 : Warning: Option Byte: SECURITY, value: 0x1, was not modified.
11:12:12 : Warning: Option Bytes are unchanged, Data won't be downloaded
11:12:12 : Time elapsed during option Bytes configuration: 00:00:00.001
11:12:12 : Activating security Success
11:12:12 : Setting write mode to SFI
11:12:12 : Warning: Option Byte: SECURITY, value: 0x1, was not modified.
11:12:12 : Warning: Option Byte: ST_RAM_SIZE, value: 0x3, was not modified.
11:12:12 : Warning: Option Bytes are unchanged, Data won't be downloaded
11:12:12 : Time elapsed during option Bytes configuration: 00:00:00.001
11:12:12 : Succeed to set write mode for SFI
11:12:12 : Starting SFI part 1
11:12:12 : Writing license to address 0x24020800
11:12:12 : Writing Img header to address 0x24021000
11:12:12 : Writing areas and areas wrapper...
11:12:13 : RSS process started...
11:12:13 : RSS command execution OK
11:12:17 : RSS complete Value = 0x0
11:12:17 : Reconnecting...
11:12:18 : ST-LINK SN : 30001100140000363132524E
11:12:18 : ST-LINK FW : V2J45S7
11:12:18 : Board : --
11:12:18 : Voltage : 3,25V
11:12:18 : SWD freq : 4000 KHz
11:12:18 : Connect mode: Hot Plug
11:12:18 : Reset mode : Software reset
11:12:18 : Device ID : 0x483
11:12:18 : Revision ID : Rev Z
11:12:18 : Reconnected !
11:12:18 : Error: SECURITY State Fail
11:12:18 : Error: Invalid state after SFI install !
11:12:18 : Error: RSS internal system error or License is invalid !
11:12:18 : Aborting...
11:12:19 : Time elapsed during option Bytes configuration: 00:00:00.363
11:12:32 : Time elapsed during option Bytes configuration: 00:00:13.400
11:12:32 : Waiting 8s for end of regression...
11:12:32 : Display OB after Abort for sanity check
11:12:32 : OPTION BYTES BANK: 0
11:12:32 : Read Out Protection:
11:12:32 : RDP : 0xAA (Level 0, no protection)
11:12:32 : BOR Level:
11:12:32 : BOR_LEV : 0x0 (BOR OFF)
11:12:32 : User Configuration:
11:12:32 : IWDG1_SW : 0x1 (Independent watchdog is controlled by software)
11:12:32 : NRST_STOP : 0x1 (STOP mode on Domain 1 is entering without reset)
11:12:32 : NRST_STBY : 0x1 (STANDBY mode on Domain 1 is entering without reset)
11:12:32 : IO_HSLV : 0x0 (Product working in the full voltage range, I/O speed optimization at low-voltage disabled)
11:12:32 : FZ_IWDG_STOP : 0x1 (Independent watchdog is running in STOP mode)
11:12:32 : FZ_IWDG_SDBY : 0x1 (Independent watchdog is running in STANDBY mode)
11:12:32 : SECURITY : 0x1 (Security feature enabled)
11:12:32 : Boot address Option Bytes:
11:12:32 : BOOT_CM7_ADD0: 0x800 (0x8000000)
11:12:32 : BOOT_CM7_ADD1: 0x1FF0 (0x1FF00000)
11:12:32 : PCROP Protection:
11:12:32 : PROT_AREA_START: 0xFF (0x800FF00)
11:12:32 : PROT_AREA_END: 0x0 (0x80000FF)
11:12:32 : DMEP : 0x1 (Flash Bank PCROP zone is erased when RDP level regression (change from level 1 to 0) occurs)
11:12:32 : Secure Protection:
11:12:32 : ST_RAM_SIZE : 0x3 (16 KB reserved to ST code)
11:12:32 : SEC_AREA_START: 0xFF (0x800FF00)
11:12:32 : SEC_AREA_END : 0x0 (0x80000FF)
11:12:32 : DMES : 0x0 (Flash secure area is kept when RDP level regression (change from level 1 to 0) occurs)
11:12:32 : Write Protection:
11:12:32 : nWRP0 : 0x1 (Write protection not active)
11:12:32 : nWRP1 : 0x0 (Write protection active)
11:12:32 : nWRP2 : 0x0 (Write protection active)
11:12:32 : nWRP3 : 0x0 (Write protection active)
11:12:32 : nWRP4 : 0x0 (Write protection active)
11:12:32 : nWRP5 : 0x0 (Write protection active)
11:12:32 : nWRP6 : 0x0 (Write protection active)
11:12:32 : nWRP7 : 0x0 (Write protection active)
11:12:32 : TCM_AXI Shared Configuration:
11:12:32 : TCM_AXI_SHARED: 0x0 (64 KB ITCM : 320KB system AXI)
11:12:32 : CPU_FREQ_BOOST: 0x0 (Feature disabled)
11:12:32 : Abort SUCCESS     
1 REPLY 1
dynetskov
Associate

SMT32H730 is listed as supported product for SFI in AN4992

dynetskov_0-1746520869085.png

The full chip name is STM32H730IBT6Q