cancel
Showing results for 
Search instead for 
Did you mean: 

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

aonsquared
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
aonsquared
Associate III

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.

View solution in original post

3 REPLIES 3
aonsquared
Associate III

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
Associate III

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.

MWB_CHa
ST Employee

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.