Can't upgrade RF stack...and can't upgrade...FUS...
Hello all,
I'm currently stuck with the RF stack upgrade process a stm32wb55 nucleo board....i have follow the release notes in the "STM32WB_Copro_Wireless_Binaries" directory but i'm now out of idee to figure out what's going on...
Currently i'm not able to read the FUS version as the following commands :
STM32_Programmer_CLI -c port=swd -r32 0x20030030 1return :
eading 32-bit memory content
Size : 4 Bytes
Address: : 0x20030030
0x20030030 : 00000000first i run :
STM32_Programmer_CLI -c port=SWD -fwdeletewith success
then the when i try to upgrade FUS :
STM32_Programmer_CLI -c port=swd mode=UR -ob nSWboot0=0 nboot1=1 nboot0=1 -fwupgrade /home/pierre/Documents/en.stm32cubewb_v1-5-0/STM32Cube_FW_WB_V1.5.0/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/stm32wb5x_FUS_fw_1_0_2.bin 0x080EC000 firstinstall=0 -------------------------------------------------------------------
STM32CubeProgrammer v2.4.0
-------------------------------------------------------------------
ST-LINK SN : 0674FF363035485043181223
ST-LINK FW : V2J36M0
Voltage : 3,24V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x495
Device name : STM32WB55xx
Flash size : 1 MBytes
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
Old wireless stack delete ...
Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
Warning: Option Byte: nboot0, value: 0x1, was not modified.
Warning: Option Byte: nboot1, value: 0x1, was not modified.
Warning: Option Bytes are unchanged, Data won't be downloaded
Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
Memory Programming ...
Opening and parsing file: 0x495_FUS_Operator.bin
File : 0x495_FUS_Operator.bin
Size : 11584 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 2]
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:01.340
Application is running
Reconnecting...
Reconnected !
Firmware delete Success
Download firmware image at address 0x80ec000 ...
Memory Programming ...
Opening and parsing file: stm32wb5x_FUS_fw_1_0_2.bin
File : stm32wb5x_FUS_fw_1_0_2.bin
Size : 24492 Bytes
Address : 0x080EC000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [236 241]
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:01.650
Firmware Upgrade process started ...
Application is running
Reconnecting...
Reconnected !
Error: FUS_STATE_IMG_NOT_AUTHENTIC
Error: fwupgrade Command Failure!
Old wireless stack delete ...
Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
Warning: Option Byte: nboot0, value: 0x1, was not modified.
Warning: Option Byte: nboot1, value: 0x1, was not modified.
Warning: Option Bytes are unchanged, Data won't be downloaded
Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
Memory Programming ...
Opening and parsing file: 0x495_FUS_Operator.bin
File : 0x495_FUS_Operator.bin
Size : 11584 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 2]
failed to erase memory
failed to erase memory
Failed to download FUS operator!
Old Firmware delete failedSo ok maybe FUS is already 1.0.2 i don't know since i'm not able to read it...
But if i try to upgrade rf stack...
STM32_Programmer_CLI -c port=swd mode=UR -ob nSWboot0=0 nboot1=1 nboot0=1 -fwupgrade /home/pierre/Documents/en.stm32cubewb_v1-5-0/STM32Cube_FW_WB_V1.5.0/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/stm32wb5x_Thread_FTD_fw.bin 0x0809F000 firstinstall=1it fail...
-------------------------------------------------------------------
STM32CubeProgrammer v2.4.0
-------------------------------------------------------------------
ST-LINK SN : 0674FF363035485043181223
ST-LINK FW : V2J36M0
Voltage : 3,24V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x495
Device name : STM32WB55xx
Flash size : 1 MBytes
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 0x809f000 ...
Memory Programming ...
Opening and parsing file: stm32wb5x_Thread_FTD_fw.bin
File : stm32wb5x_Thread_FTD_fw.bin
Size : 347320 Bytes
Address : 0x0809F000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [159 243]
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:08.999
Firmware Upgrade process started ...
Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
Warning: Option Byte: nboot0, value: 0x1, was not modified.
Warning: Option Byte: nboot1, value: 0x1, was not modified.
Warning: Option Bytes are unchanged, Data won't be downloaded
Succeed to set nSWboot0=0 nboot1=1 nboot0=1
Memory Programming ...
Opening and parsing file: 0x495_FUS_Operator.bin
File : 0x495_FUS_Operator.bin
Size : 11584 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 2]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:01.334
Application is running
Reconnecting...
Reconnected !
Error: FUS_STATE_IMG_NOT_AUTHENTIC
Error: fwupgrade Command Failure!
Download firmware image at address 0x809f000 ...
Memory Programming ...
Opening and parsing file: stm32wb5x_Thread_FTD_fw.bin
File : stm32wb5x_Thread_FTD_fw.bin
Size : 347320 Bytes
Address : 0x0809F000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [159 243]
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:08.679
Firmware Upgrade process started ...
Application is running
Reconnecting...
Reconnected !
Error: FUS_STATE_IMG_NOT_AUTHENTIC
Error: fwupgrade Command Failure!
Download firmware image at address 0x809f000 ...
Memory Programming ...
Opening and parsing file: stm32wb5x_Thread_FTD_fw.bin
File : stm32wb5x_Thread_FTD_fw.bin
Size : 347320 Bytes
Address : 0x0809F000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [159 243]
Download in Progress:
[=========================== ] 55%
Error: failed to download Segment[0]
Error: failed to download the File
Error: Failed to download image!Any advices ?
Regards
Pierre