Skip to main content
aonsquared
Associate III
July 24, 2019
Solved

STM32WB FUS upgrade fails, Segmentation Fault - Nucleo WB55 USB dongle

  • July 24, 2019
  • 3 replies
  • 998 views

I follow steps 1-5 for the Release Notes for STM32WB Copro Wireless Binaries (STM32CubeWB 1.1.1 patch):

./STM32_Programmer_CLI -c port=usb1 -fwdelete
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.1.0 
 -------------------------------------------------------------------
 
 
 
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 206B38933036
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
 
RSS state is RSS_ERROR
 
RSS status is RSS_NOT_RUNNING
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
Deleting firmware ...
Firmware delete finished
fwdelete command execution finished

Then I check the FUS version:

 ./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 : 206B38933036
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
0x20030030 : 00050300

Then I proceed to update the FUS:

./STM32_Programmer_CLI -c port=usb1 -fwupgrade stm32wb5x_FUS_fw.bin 0x080EC000 firstinstall=0
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.1.0 
 -------------------------------------------------------------------
 
 
 
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in FS Mode
SN : 206B38933036
FW version : 0x011a
Device ID : 0x0495
Device name : STM32WBxx
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M0+/M4
 
 
RSS state is RSS_IDLE
 
RSS status is RSS_NO_ERROR
 
Old Firmware delete ...
 
Deleting firmware ...
Error: Device has been disconnected
Segmentation fault (core dumped)

Now nothing works! Any command results in a segmentation fault. As you can see from the code snippets I'm using STM32CubeProgrammer.

This topic has been closed for replies.
Best answer by aonsquared

This seems to be a bug with STM32_Programmer_CLI Linux version. Where can I submit a bug report? Windows is working fine but we require running Linux on our production systems.

3 replies

aonsquared
Associate III
July 24, 2019

I tested the same nucleo dongle on Windows, and managed to update the FUS and the wireless coprocessor binary successfully.

For the system that gave the errors, I was using:

Linux Mint 19.1

Kernel 4.15.0-54

aonsquared
aonsquaredAuthorAnswer
Associate III
July 27, 2019

This seems to be a bug with STM32_Programmer_CLI Linux version. Where can I submit a bug report? Windows is working fine but we require running Linux on our production systems.

ST Employee
August 14, 2019

Please try firstinstall=1 instead, it should work better

Actually this option shall be set to 1 in the case of FUS anyway, because you cannot delete the existing FUS version prior to installing new one.