D:\ST\STM32Cube\STM32CubeProgrammer\bin>"D:\ST\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" freq=1000 -c port=SWD mode=HOTPLUG -ob RDP=0xAA TZEN=0 SWAP_BANK=0 nBOOT0=0 nSWBOOT0=1 NSBOOTADD0=0x100000 NSBOOTADD0=0x17F200 WRP1A_PSTRT=0x7f WRP1A_PEND=0x0 UNLOCK_1A=1 WRP1B_PSTRT=0x7f WRP1B_PEND=0x0 UNLOCK_1B=1 WRP2A_PSTRT=0x7f WRP2A_PEND=0x0 UNLOCK_2A=1 WRP2B_PSTRT=0x7f WRP2B_PEND=0x0 UNLOCK_2B=1 -e all -rst -ob displ ------------------------------------------------------------------- STM32CubeProgrammer v2.15.0 ------------------------------------------------------------------- ST-LINK SN : ST-LINK FW : V2J43S7 Board : -- Voltage : 3.18V SWD freq : 4000 KHz Connect mode: Hot Plug Reset mode : Software reset Device ID : 0x455 Revision ID : Rev Z Device name : STM32U535/STM32U545 Flash size : 512 KBytes Device type : MCU Device CPU : Cortex-M33 BL Version : -- Debug in Low Power mode enabled UPLOADING OPTION BYTES DATA ... Bank : 0x00 Address : 0x40022040 Size : 32 Bytes ██████████████████████████████████████████████████ 100% Bank : 0x01 Address : 0x40022060 Size : 8 Bytes ██████████████████████████████████████████████████ 100% Bank : 0x02 Address : 0x40022068 Size : 8 Bytes ██████████████████████████████████████████████████ 100% PROGRAMMING OPTION BYTES AREA ... Warning: Input value: 0x7F for Option Byte: wrp1a_pstrt, is not valid Warning: Input value: 0x7F for Option Byte: wrp1b_pstrt, is not valid Warning: Input value: 0x7F for Option Byte: wrp2a_pstrt, is not valid Warning: Input value: 0x7F for Option Byte: wrp2b_pstrt, is not valid Warning: nsbootadd0=1569280 will be ignored as it has already been modified. Warning: Option Byte: nboot0, value: 0x0, was not modified. Warning: Option Byte: nsbootadd0, value: 0x100000, was not modified. Warning: Option Byte: swap_bank, value: 0x0, was not modified. Warning: Option Byte: unlock_1a, value: 0x1, was not modified. Warning: Option Byte: unlock_1b, value: 0x1, was not modified. Warning: Option Byte: unlock_2a, value: 0x1, was not modified. Warning: Option Byte: unlock_2b, value: 0x1, was not modified. Warning: Option Byte: wrp1a_pend, value: 0x0, was not modified. Warning: Option Byte: wrp1b_pend, value: 0x0, was not modified. Warning: Option Byte: wrp2a_pend, value: 0x0, was not modified. Warning: Option Byte: wrp2b_pend, value: 0x0, was not modified. Bank : 0x00 Address : 0x40022040 Size : 32 Bytes ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Reconnecting... Reconnected ! UPLOADING OPTION BYTES DATA ... Bank : 0x00 Address : 0x40022040 Size : 36 Bytes ██████████████████████████████████████████████████ 100% Bank : 0x01 Address : 0x40022068 Size : 8 Bytes ██████████████████████████████████████████████████ 100% OPTION BYTE PROGRAMMING VERIFICATION: Pressione qualquer tecla para continuar. . . D:\\data>ReadHSMInfo.bat D:\\data>cd "D:\ST\STM32Cube\STM32CubeProgrammer\bin" D:\ST\STM32Cube\STM32CubeProgrammer\bin>STM32TrustedPackageCreator_CLI.exe -hsm -i 1 -info ------------------------------------------------------------------- STM32 Trusted Package Creator v2.15.0 ------------------------------------------------------------------- ldm_LoadModule(): loading module "D:/ST/STM32Cube/STM32CubeProgrammer/bin\stlibp11_SAM.dll" ... ldm_LoadModule(WIN32): OK loading library "D:/ST/STM32Cube/STM32CubeProgrammer/bin\stlibp11_SAM.dll": 0x02F30000 ... C_GetFunctionList() returned 0x00000000, g_pFunctionList=0x02F9E490 Read the following Information from HSM slot 1 : HSM STATE : OPERATIONAL_STATE HSM FW IDENTIFIER : HSM COUNTER : 13 HSM VERSION : 2 HSM TYPE : SFI Pressione qualquer tecla para continuar. . . D:\\data>FlashSFI_SWD_OEM_Dev.bat D:\\data>cd "D:\ST\STM32Cube\STM32CubeProgrammer\bin" D:\ST\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe freq=1000 -c port=SWD mode=HOTPLUG -sfi "D:\\data"\\my_fw.sfi hsm=1 slot=1 -rsse "D:\ST\STM32Cube\STM32CubeProgrammer\bin"\RSSe\U5\enc_signed_RSSe_sfi_U5_512K.bin ------------------------------------------------------------------- STM32CubeProgrammer v2.15.0 ------------------------------------------------------------------- ST-LINK SN : ST-LINK FW : V2J43S7 Board : -- Voltage : 3.17V SWD freq : 4000 KHz Connect mode: Hot Plug Reset mode : Software reset Device ID : 0x455 Revision ID : Rev Z Device name : STM32U535/STM32U545 Flash size : 512 KBytes Device type : MCU Device CPU : Cortex-M33 BL Version : 0x91 Debug in Low Power mode enabled Protocol Information : static SFI File Information : SFI file path : D:\\data\\my_fw.sfi SFI HSM slot ID : 1 SFI header information : SFI protocol version : 2 SFI total number of areas : 4 SFI image version : 1 SFI Areas information : Parsing Area 1/4 : Area type : F Area size : 70848 Area destination address : 0x8000000 Parsing Area 2/4 : Area type : F Area size : 70848 Area destination address : 0x80114C0 Parsing Area 3/4 : Area type : F Area size : 4240 Area destination address : 0x8022980 Parsing Area 4/4 : Area type : C Area size : 68 Area destination address : 0x0 Reading the chip Certificate... Requesting Chip Certificate from device ... Reading chip Certificate finished Get Certificate done successfully requesting license for the current STM32 device Init Communication ... ldm_LoadModule(): loading module "D:/ST/STM32Cube/STM32CubeProgrammer/bin\stlibp11_SAM.dll" ... ldm_LoadModule(WIN32): OK loading library "D:/ST/STM32Cube/STM32CubeProgrammer/bin\stlibp11_SAM.dll": 0x02F30000 ... C_GetFunctionList() returned 0x00000000, g_pFunctionList=0x02F9E490 P11 lib initialization Success! Opening session with slot ID 1... Succeed to Open session with reader slot ID 1 Succeed to generate license for the current STM32 device Closing session with reader slot ID 1... Session closed with reader slot ID 1 Closing communication with HSM... Communication closed with HSM Succeed to get License for Firmware from HSM slot ID 1 Starting Firmware Install operation... Warning: Option Byte: nBoot0, value: 0x0, was not modified. Reconnecting... Reconnected ! Time elapsed during option Bytes configuration: 00:00:02.175 Warning: Option Byte: SECWM1_PEND, value: 0x1F, was not modified. Warning: Option Byte: SECWM1_PSTRT, value: 0x0, was not modified. Warning: Option Bytes are unchanged, Data won't be downloaded Time elapsed during option Bytes configuration: 00:00:00.000 Warning: Option Byte: SECWM2_PEND, value: 0x1F, was not modified. Warning: Option Byte: SECWM2_PSTRT, value: 0x0, was not modified. Warning: Option Bytes are unchanged, Data won't be downloaded Time elapsed during option Bytes configuration: 00:00:00.000 Warning: Option Byte: SECBOOTADD0, value: 0x1FF000, was not modified. Warning: Option Bytes are unchanged, Data won't be downloaded Time elapsed during option Bytes configuration: 00:00:00.000 Warning: Option Byte: SRAM124_RST, value: 0x1, was not modified. Warning: Option Bytes are unchanged, Data won't be downloaded Time elapsed during option Bytes configuration: 00:00:00.000 Installing RSSe Memory Programming ... Opening and parsing file: enc_signed_RSSe_sfi_U5_512K.bin File : enc_signed_RSSe_sfi_U5_512K.bin Size : 37.33 KB Address : 0x20004300 Erasing memory corresponding to segment 0: Download in Progress: File download complete Time elapsed during download operation: 00:00:00.330 Warning: Option Byte: TZEN, value: 0x1, was not modified. Warning: Option Byte: nBoot0, value: 0x0, was not modified. Warning: Option Byte: nSWBoot0, value: 0x0, was not modified. Warning: Option Bytes are unchanged, Data won't be downloaded Time elapsed during option Bytes configuration: 00:00:00.016 Reconnecting... Reconnected ! Time elapsed during option Bytes configuration: 00:00:02.185 Get RSSe status... Warning: Option Byte: TZEN, value: 0x1, was not modified. Warning: Option Byte: nBoot0, value: 0x0, was not modified. Warning: Option Byte: nSWBoot0, value: 0x0, was not modified. Warning: Option Bytes are unchanged, Data won't be downloaded Time elapsed during option Bytes configuration: 00:00:00.016 RSS version = 1.6.0 RSSe version = 4.0.0 Starting SFI Processing license... Get RSSe status... Processing Image Header Get RSSe status... Processing Area 1... Get RSSe status... Area Address = 0x8000000 Area Type = F Processing Area 2... Get RSSe status... Area Address = 0x80114C0 Area Type = F Processing Area 3... Get RSSe status... Area Address = 0x8022980 Area Type = F Processing Area 4... Error: Execution of RSS CMD failed, returned value = 0x1 Error: D:\\data\\my_fw.sfi SFI file Install Operation Failure! Please, try again. D:\ST\STM32Cube\STM32CubeProgrammer\bin>cd "D:\\data" Pressione qualquer tecla para continuar. . . D:\\data>