Skip to main content
HBida
Associate III
August 14, 2019
Question

Stack firmware flash via DFU fails on STM32WB55CCU6

So we update the FUS following the steps specificed in the release note, the process went ok and the FSU was upgraded

USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 206936933136
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
 
RSS state is RSS_ERROR
 
RSS status is RSS_UFB_CORRUPT
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Deleting firmware ...
Firmware delete finished
fwdelete command execution finished
 
hoel@iMac-de-Hoel-7 / $ /Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/STM32_Programmer_CLI -c port=usb1 -r32 0x20030030 1
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.1.0 
 -------------------------------------------------------------------
 
 
 
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 206936933136
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
0x20030030 : 00050300
 
 
hoel@iMac-de-Hoel-7 / $ /Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/STM32_Programmer_CLI -c port=usb1 -fwupgrade /Users/hoel/Downloads/STM32Cube_FW_WB_V1.2.0/Projects/STM32WB_Copro_Wireless_Binaries/stm32wb5x_FUS_fw.bin 0x0803E000 firstinstall=0
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.1.0 
 -------------------------------------------------------------------
 
 
 
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 206936933136
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Old Firmware delete ...
 
Deleting firmware ...
Firmware delete finished
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Download firmware image at address 0x803e000 ...
 
 
Memory Programming ...
Opening and parsing file: stm32wb5x_FUS_fw.bin
 File : stm32wb5x_FUS_fw.bin
 Size : 24492 Bytes
 Address : 0x0803E000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [62 67]
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:00.479
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Firmware Upgrade process started ...
 
Updating firmware ...
Waiting for firmware upgrade end
 
RSS state is RSS_UPGRADE_ONGOING
 
RSS status is RSS_NO_ERROR
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Starting wireless stack ...
Starting wireless satck finished
startwirelessStack command execution finished

as we can see, the version is now up to date

hoel@iMac-de-Hoel-7 / $ /Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/STM32_Programmer_CLI -c port=usb1 -r32 0x20030030 1
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.1.0 
 -------------------------------------------------------------------
 
 
 
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 206936933136
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
0x20030030 : 01000200

however, all attempts to flash the BLE stack failed, also tried with firstinstall=0, failed as well, also tried to flash stm32wb5x_rfmonitor_phy802_15_4_fw.bin, failed as well, what is wrong with this?

hoel@iMac-de-Hoel-7 / $ /Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/STM32_Programmer_CLI -c port=usb1 -fwupgrade /Users/hoel/Downloads/STM32Cube_FW_WB_V1.2.0/Projects/STM32WB_Copro_Wireless_Binaries/stm32wb5x_BLE_Stack_fw.bin 0x080CC000 firstinstall=1
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.1.0 
 -------------------------------------------------------------------
 
 
 
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 206936933136
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
Download firmware image at address 0x80cc000 ...
 
 
Memory Programming ...
Opening and parsing file: stm32wb5x_BLE_Stack_fw.bin
 File : stm32wb5x_BLE_Stack_fw.bin
 Size : 162908 Bytes
 Address : 0x080CC000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [204 243]
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:01.417
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Firmware Upgrade process started ...
 
Updating firmware ...
Waiting for firmware upgrade end
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_NO_ERROR
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
Warning: Firmware upgrade Error!Retrying...
Retry -- 0
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Old Firmware delete ...
 
Deleting firmware ...
Firmware delete finished
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Download firmware image at address 0x80cc000 ...
 
 
Memory Programming ...
Opening and parsing file: stm32wb5x_BLE_Stack_fw.bin
 File : stm32wb5x_BLE_Stack_fw.bin
 Size : 162908 Bytes
 Address : 0x080CC000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [204 243]
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:01.412
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Firmware Upgrade process started ...
 
Updating firmware ...
Waiting for firmware upgrade end
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_NO_ERROR
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
Warning: Firmware upgrade Error!Retrying...
Retry -- 1
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Old Firmware delete ...
 
Deleting firmware ...
Firmware delete finished
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Download firmware image at address 0x80cc000 ...
 
 
Memory Programming ...
Opening and parsing file: stm32wb5x_BLE_Stack_fw.bin
 File : stm32wb5x_BLE_Stack_fw.bin
 Size : 162908 Bytes
 Address : 0x080CC000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [204 243]
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:01.416
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Firmware Upgrade process started ...
 
Updating firmware ...
Waiting for firmware upgrade end
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_NO_ERROR
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
Warning: Firmware upgrade Error!Retrying...
Retry -- 2
Firwmware upgrade failed after 3 retries! Deleting firmware and exiting...
 
Deleting firmware ...
Firmware delete finished

This topic has been closed for replies.

5 replies

HBida
HBidaAuthor
Associate III
August 14, 2019
hoel@iMac-de-Hoel-7 / $ /Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/STM32_Programmer_CLI -c port=usb1 -fwupgrade /Users/hoel/Downloads/STM32Cube_FW_WB_V1.2.0/Projects/STM32WB_Copro_Wireless_Binaries/stm32wb5x_BLE_Stack_fw.bin 0x080CC000 firstinstall=0
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.1.0 
 -------------------------------------------------------------------
 
 
 
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 206936933136
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Old Firmware delete ...
 
Deleting firmware ...
Firmware delete finished
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Download firmware image at address 0x80cc000 ...
 
 
Memory Programming ...
Opening and parsing file: stm32wb5x_BLE_Stack_fw.bin
 File : stm32wb5x_BLE_Stack_fw.bin
 Size : 162908 Bytes
 Address : 0x080CC000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [204 243]
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:01.400
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Firmware Upgrade process started ...
 
Updating firmware ...
Waiting for firmware upgrade end
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_NO_ERROR
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
Warning: Firmware upgrade Error!Retrying...
Retry -- 0
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Old Firmware delete ...
 
Deleting firmware ...
Firmware delete finished
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Download firmware image at address 0x80cc000 ...
 
 
Memory Programming ...
Opening and parsing file: stm32wb5x_BLE_Stack_fw.bin
 File : stm32wb5x_BLE_Stack_fw.bin
 Size : 162908 Bytes
 Address : 0x080CC000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [204 243]
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:01.413
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Firmware Upgrade process started ...
 
Updating firmware ...
Waiting for firmware upgrade end
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_NO_ERROR
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
Warning: Firmware upgrade Error!Retrying...
Retry -- 1
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Old Firmware delete ...
 
Deleting firmware ...
Firmware delete finished
 
RSS state is RSS_SERVICE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Download firmware image at address 0x80cc000 ...
 
 
Memory Programming ...
Opening and parsing file: stm32wb5x_BLE_Stack_fw.bin
 File : stm32wb5x_BLE_Stack_fw.bin
 Size : 162908 Bytes
 Address : 0x080CC000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [204 243]
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:01.410
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Firmware Upgrade process started ...
 
Updating firmware ...
Waiting for firmware upgrade end
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_NO_ERROR
 
RSS state is WIRELESS_STACK_UPGRADE_ONGOING
 
RSS status is RSS_IMAGE_NOT_FOUND
Warning: Firmware upgrade Error!Retrying...
Retry -- 2
Firwmware upgrade failed after 3 retries! Deleting firmware and exiting...
 
Deleting firmware ...
Firmware delete finished

Nick.5706944399077214E12
Associate
October 10, 2019

I have the exactly the same problem have anyone solved it yet?

HBida
HBidaAuthor
Associate III
October 10, 2019
Hi,
Yes the problem is that ST provide the wrong addresses, open a ticket and they will provide you with the correct addresses for your model
Nick.5706944399077214E12
Associate
October 10, 2019
Ok thank you wery mutch submitted a request to ST.
Did it take long time to get an answer?
IAM using the same processor STM32WBCC as you so can you send the address?
Thanks