Microsoft Windows [Version 10.0.18362.535] (c) 2019 Microsoft Corporation. All rights reserved. C:\Users\wagne>@echo off SET PROG="C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" SET BIN_PATH=C:\Users\wagne\STM32Cube\Repository\STM32Cube_FW_WB_V1.3.0\Projects\STM32WB_Copro_Wireless_Binaries\ SET APPLI_PATH=C:\STM32Cube_FW_WB_VX.Y.Z\STM32Cube_FW_WB_V1.3.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\ SET DONGLE=C:\STM32Cube_FW_WB_VX.Y.Z\STM32Cube_FW_WB_V1.3.0\Projects\P-NUCLEO-WB55.USBDongle\Applications\BLE\ set comport=SWD echo Connected with %comport% Connected with SWD REM Command list SET S0=%PROG% -c port=%comport% -rdu SET DOWNLOAD=%PROG% REM FW list SET RF_STACK_BIN=%BIN_PATH%stm32wb5x_BLE_Stack_fw.bin SET FUS_BIN=%BIN_PATH%stm32wb5x_FUS_fw.bin REM SET APPLI=%APPLI_PATH%BLE_p2pServer\Binary\BLE_p2pServer_reference.hex REM SET APPLI=%APPLI_PATH%BLE_p2pClient\Binary\BLE_p2pClient_reference.hex REM SET APPLI=%APPLI_PATH%BLE_TransparentMode\Binary\BLE_TransparentMode_reference.hex REM SET APPLI=%DONGLE%BLE_TransparentModeVCP\Binary\BLE_TransparentModeVCP_reference.hex REM list the port com %PROG% -l ------------------------------------------------------------------- STM32CubeProgrammer v2.2.1 ------------------------------------------------------------------- ===== DFU Interface ===== No STM32 device in DFU mode connected ===== STLink Interface ===== -------- Connected ST-LINK Probes List -------- ST-Link Probe 0 : ST-LINK SN : 48FF77068280514930450181 ST-LINK FW : V2J33S0 ----------------------------------------------- ===== UART Interface ===== Total number of serial ports available: 0 %PROG% -c port=swd -rdu ------------------------------------------------------------------- STM32CubeProgrammer v2.2.1 ------------------------------------------------------------------- ST-LINK SN : 48FF77068280514930450181 ST-LINK FW : V2J33S0 Voltage : 2.88V SWD freq : 4000 KHz Connect mode: Normal Reset mode : Software reset Device ID : 0x495 Device name : STM32WBxx Flash size : 512 KBytes Device type : MCU Device CPU : Cortex-M0+/M4 Disabling memory Read Protection... Warning: Option Byte: rdp, value: 0xAA, was not modified. Warning: Option Bytes are unchanged, Data won't be downloaded Memory Read Protection disabled successfully %PROG% -c port=swd -r32 0x20030030 1 ------------------------------------------------------------------- STM32CubeProgrammer v2.2.1 ------------------------------------------------------------------- ST-LINK SN : 48FF77068280514930450181 ST-LINK FW : V2J33S0 Voltage : 2.89V SWD freq : 4000 KHz Connect mode: Normal Reset mode : Software reset Device ID : 0x495 Device name : STM32WBxx Flash size : 512 KBytes Device type : MCU Device CPU : Cortex-M0+/M4 Reading 32-bit memory content Size : 4 Bytes Address: : 0x20030030 0x20030030 : 00000000 %PROG% -c port=SWD -fwdelete ------------------------------------------------------------------- STM32CubeProgrammer v2.2.1 ------------------------------------------------------------------- ST-LINK SN : 48FF77068280514930450181 ST-LINK FW : V2J33S0 Voltage : 2.89V SWD freq : 4000 KHz Connect mode: Normal Reset mode : Software reset Device ID : 0x495 Device name : STM32WBxx Flash size : 512 KBytes Device type : MCU Device CPU : Cortex-M0+/M4 Memory Programming ... Opening and parsing file: FUS_Operator.bin File : FUS_Operator.bin Size : 16882 Bytes Address : 0x08000000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 4] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:00.717 Verifying ... Read progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢굇굇굇굇굇굇굇 100% Download verified successfully Application is running Reconnecting... Reconnected ! Error: FUS_STATE_ERR_UNKNOWN Firmware delete n? failed after retrying! Memory Programming ... Opening and parsing file: FUS_Operator.bin File : FUS_Operator.bin Size : 16882 Bytes Address : 0x08000000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 4] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:00.694 Verifying ... Read progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢굇굇굇굇굇굇굇 100% Download verified successfully Application is running Reconnecting... Reconnected ! Error: FUS_STATE_ERR_UNKNOWN Firmware delete n? failed after retrying! Memory Programming ... Opening and parsing file: FUS_Operator.bin File : FUS_Operator.bin Size : 16882 Bytes Address : 0x08000000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 4] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% failed to download Segment[0] failed to download the File Time elapsed during download operation: 00:01:29.931 Verifying ... Read progress: 栢栢栢栢굇굇굇굇굇굇굇굇굇굇굇굇굇굇굇굇굇굇굇굇굇?18%% Data mismatch found at address 0x080006E0 (byte = 0xFF instead of 0x08) Download verification failed Failed to download FUS operator! Firmware delete n? failed after retrying! fwdelete Operation Failure! Please, try again %PROG% -c port=swd mode=UR -ob nSWboot0=0 nboot1=1 nboot0=1 -fwupgrade %FUS_BIN% 0x0807A000 firstinstall=1%PROG% -c port=swd mode=UR -ob nSWboot0=0 nboot1=1 nboot0=1 -fwupgrade %FUS_BIN% 0x0807A000 firstinstall=1%PROG% -c port=swd mode=UR -ob nSWboot0=0 nboot1=1 nboot0=1 -fwupgrade %FUS_BIN% 0x0807A000 firstinstall=1 ------------------------------------------------------------------- STM32CubeProgrammer v2.2.1 ------------------------------------------------------------------- ST-LINK SN : 48FF77068280514930450181 ST-LINK FW : V2J33S0 Voltage : 2.88V SWD freq : 4000 KHz Connect mode: Under Reset Reset mode : Hardware reset Device ID : 0x495 Device name : STM32WBxx Flash size : 512 KBytes Device type : MCU Device CPU : Cortex-M0+/M4 UPLOADING OPTION BYTES DATA ... Bank : 0x00 Address : 0x58004020 Size : 104 Bytes 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% PROGRAMMING OPTION BYTES AREA ... Warning: Option Byte: nboot0, value: 0x1, was not modified. Warning: Option Byte: nboot1, value: 0x1, was not modified. Bank : 0x00 Address : 0x58004020 Size : 104 Bytes 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% Reconnecting... Reconnected ! UPLOADING OPTION BYTES DATA ... Bank : 0x00 Address : 0x58004020 Size : 104 Bytes 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% OPTION BYTE PROGRAMMING VERIFICATION: Option Bytes successfully programmed Download firmware image at address 0x807a000 ... Memory Programming ... Opening and parsing file: stm32wb5x_FUS_fw.bin File : stm32wb5x_FUS_fw.bin Size : 24492 Bytes Address : 0x0807A000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [122 127] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:01.163 Firmware Upgrade process started ... Memory Programming ... Opening and parsing file: FUS_Operator.bin File : FUS_Operator.bin Size : 16882 Bytes Address : 0x08000000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 4] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:01.017 Verifying ... Read progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢굇굇굇굇굇굇굇 100% Download verified successfully Application is running Reconnecting... Reconnected ! Firmware Upgrade Success ST-LINK SN : 48FF77068280514930450181 ST-LINK FW : V2J33S0 Voltage : 2.89V SWD freq : 4000 KHz Connect mode: Under Reset Reset mode : Hardware reset Device ID : 0x495 Device name : STM32WBxx Flash size : 512 KBytes Device type : MCU Device CPU : Cortex-M0+/M4 UPLOADING OPTION BYTES DATA ... Bank : 0x00 Address : 0x58004020 Size : 104 Bytes 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% PROGRAMMING OPTION BYTES AREA ... Warning: Option Byte: nboot0, value: 0x1, was not modified. Warning: Option Byte: nboot1, value: 0x1, was not modified. Warning: Option Byte: nswboot0, value: 0x0, was not modified. Warning: Option Bytes are unchanged, Data won't be downloaded Download firmware image at address 0x807a000 ... Memory Programming ... Opening and parsing file: stm32wb5x_FUS_fw.bin File : stm32wb5x_FUS_fw.bin Size : 24492 Bytes Address : 0x0807A000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [122 127] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:01.159 Firmware Upgrade process started ... Memory Programming ... Opening and parsing file: FUS_Operator.bin File : FUS_Operator.bin Size : 16882 Bytes Address : 0x08000000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 4] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:01.031 Verifying ... Read progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢굇굇굇굇굇굇굇 100% Download verified successfully Application is running Reconnecting... Reconnected ! Error: FUS_STATE_IMG_NOT_AUTHENTIC Error: fwupgrade Command Failure! Download firmware image at address 0x807a000 ... Memory Programming ... Opening and parsing file: stm32wb5x_FUS_fw.bin File : stm32wb5x_FUS_fw.bin Size : 24492 Bytes Address : 0x0807A000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [122 127] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:01.101 Firmware Upgrade process started ... Application is running Reconnecting... Reconnected ! Error: FUS_STATE_IMG_NOT_AUTHENTIC Error: fwupgrade Command Failure! Download firmware image at address 0x807a000 ... Memory Programming ... Opening and parsing file: stm32wb5x_FUS_fw.bin File : stm32wb5x_FUS_fw.bin Size : 24492 Bytes Address : 0x0807A000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [122 127] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:01.171 Firmware Upgrade process started ... Application is running Reconnecting... Reconnected ! Error: FUS_STATE_IMG_NOT_AUTHENTIC Error: fwupgrade Command Failure! Download firmware image at address 0x807a000 ... Memory Programming ... Opening and parsing file: stm32wb5x_FUS_fw.bin File : stm32wb5x_FUS_fw.bin Size : 24492 Bytes Address : 0x0807A000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [122 127] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 100% File download complete Time elapsed during download operation: 00:00:01.104 Firmware Upgrade process started ... Application is running Reconnecting... Reconnected ! Error: FUS_STATE_IMG_NOT_AUTHENTIC Error: fwupgrade Command Failure! Download firmware image at address 0x807a000 ... Memory Programming ... Opening and parsing file: stm32wb5x_FUS_fw.bin File : stm32wb5x_FUS_fw.bin Size : 24492 Bytes Address : 0x0807A000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [122 127] Download in Progress: 栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢栢 50% 100% Error: failed to download Segment[0] Error: failed to download the File Time elapsed during download operation: 00:01:44.596 Error: Failed to download image! %PROG% -c port=swd -r32 0x20030030 1 ------------------------------------------------------------------- STM32CubeProgrammer v2.2.1 ------------------------------------------------------------------- ST-LINK SN : 48FF77068280514930450181 ST-LINK FW : V2J33S0 Voltage : 2.90V SWD freq : 4000 KHz Connect mode: Normal Reset mode : Software reset Device ID : 0x495 Device name : STM32WBxx Flash size : 512 KBytes Device type : MCU Device CPU : Cortex-M0+/M4 Reading 32-bit memory content Size : 4 Bytes Address: : 0x20030030 0x20030030 : 00000000