cancel
Showing results for 
Search instead for 
Did you mean: 

Could not update FUS at STM32WB55CG chip in my custom board

Kyuns.2
Associate II

Hi,

I'm using a custom board with STM32WB55CG. When I uploaded my custom BLE program with STM32IDE, the program could not work. Then I found the chip had an error with FUS and wireless stack. When I read the FUS info, the fus version was v1.1.1.0 and the stack version was v0.0.0.0. 0693W00000NsKFuQAN.jpg

When I push the Start Wireless Stack button, the error with FUS_STATE_IMG_NOT_FOUND was occurred.

Then I tried to upgrade FUS with stm32wb5x_BLE_Stack_full_extended_fw.bin(Release v1.13.3) and encountered with the problems. I tried the upgrade with cubeProgrammer v2.10.0, v2.9.0, and v2.8.0, and it returned the same results.

 09:07:04 : Old Firmware delete ...

 09:07:04 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.

 09:07:04 : Warning: Option Byte: nboot0, value: 0x1, was not modified.

 09:07:04 : Warning: Option Byte: nboot1, value: 0x1, was not modified.

 09:07:04 : Warning: Option Bytes are unchanged, Data won't be downloaded

 09:07:04 : Time elapsed during option Bytes configuration: 00:00:00.000

 09:07:04 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

 09:07:04 : Memory Programming ...

 09:07:04 : Opening and parsing file: 0x495_FUS_Operator.bin

 09:07:04 :  File     : 0x495_FUS_Operator.bin

 09:07:04 :  Size     : 8.00 KB 

 09:07:04 :  Address    : 0x08000000 

 09:07:04 : Erasing memory corresponding to segment 0:

 09:07:04 : Erasing internal memory sectors [0 1]

 09:07:04 : Download in Progress:

 09:07:04 : File download complete

 09:07:04 : Time elapsed during download operation: 00:00:00.249

 09:07:04 : Application is running, Please Hold on...

 09:07:11 : Reconnecting...

 09:07:11 : Reconnected !

 09:07:11 : Warning: FUS_STATE_IMG_NOT_FOUND, Flash already empty !

 09:07:12 : Firmware delete Success

 09:07:12 : Download Stack/FUS image at address 0x80c7000 ...

 09:07:12 : Memory Programming ...

 09:07:12 : Opening and parsing file: stm32wb5x_BLE_Stack_full_extended_fw.bin

 09:07:12 :  File     : stm32wb5x_BLE_Stack_full_extended_fw.bin

 09:07:12 :  Size     : 177.46 KB 

 09:07:12 :  Address    : 0x080C7000 

 09:07:12 : Erasing memory corresponding to segment 0:

 09:07:12 : Erasing internal memory sectors [199 243]

 09:07:13 : Download in Progress:

 09:07:16 : File download complete

 09:07:16 : Time elapsed during download operation: 00:00:04.098

 09:07:16 : Firmware Upgrade process started ...

 09:07:16 : Application is running, Please Hold on...

 09:07:28 : Reconnecting...

 09:07:28 : Reconnected !

 09:07:28 : Error: The FUS version you're trying to install is older/equal to the FUS version already installed !

Also, I found some strange things at option bytes. The SNBRSA and SBRSA have different values and addresses from NUCLEO55USB-DONGLE. Here is the picture.

0693W00000NsKGxQAN.jpg​Any suggestions to fix this issue ?​

5 REPLIES 5
Sean Park
ST Employee

First, the FUS version is checked as v1.1.1.0.

....\STM32Cube_FW_WB_V1.13.3/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/Release_Notes.html

As you can see from the article above...

......

  • STEP 4: Read and upgrade FUS Version
  • it can been obtained selecting “Read FUS infos�?
    • 00050300: FUSv0.5.3 => Must be updated using STEP 5.
      • 01020000: FUSv1.2.0 => Up to date, you can download the new wireless stack using STEP 7.
    • 010X0Y00: FUSv1.x.y => Must be updated using STEP 6 (when x < 2).

......

  • STEP 6: Download latest FUS or Safeboot
    • in Firmware Upgrade Service: (File Path: [FUS_Binary], Start Address: [Install@])
    • then select “Firmware Upgrade�? Please check Firmware Upgrade Services Binary Table for Install@ parameter depending of the binary.

......​

You have to first update to the latest version of FUS.

Perhaps there will be no problem if you proceed again after upgrading to FUSv1.2.0.

Kyuns.2
Associate II

I tried update step by step as the release note. It gave same error.

 15:51:02 : Old Firmware delete ...

 15:51:02 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.

 15:51:02 : Warning: Option Byte: nboot0, value: 0x1, was not modified.

 15:51:02 : Warning: Option Byte: nboot1, value: 0x1, was not modified.

 15:51:02 : Warning: Option Bytes are unchanged, Data won't be downloaded

 15:51:02 : Time elapsed during option Bytes configuration: 00:00:00.001

 15:51:02 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

 15:51:02 : Memory Programming ...

 15:51:02 : Opening and parsing file: 0x495_FUS_Operator.bin

 15:51:02 :  File     : 0x495_FUS_Operator.bin

 15:51:02 :  Size     : 8.00 KB 

 15:51:02 :  Address    : 0x08000000 

 15:51:02 : Erasing memory corresponding to segment 0:

 15:51:02 : Erasing internal memory sectors [0 1]

 15:51:02 : Download in Progress:

 15:51:02 : File download complete

 15:51:02 : Time elapsed during download operation: 00:00:00.271

 15:51:02 : Application is running, Please Hold on...

 15:51:09 : Reconnecting...

 15:51:09 : Reconnected !

 15:51:09 : Warning: FUS_STATE_IMG_NOT_FOUND, Flash already empty !

 15:51:10 : Firmware delete Success

 15:51:10 : Download Stack/FUS image at address 0x80ec000 ...

 15:51:10 : Memory Programming ...

 15:51:10 : Opening and parsing file: stm32wb5x_FUS_fw.bin

 15:51:10 :  File     : stm32wb5x_FUS_fw.bin

 15:51:10 :  Size     : 23.92 KB 

 15:51:10 :  Address    : 0x080EC000 

 15:51:10 : Erasing memory corresponding to segment 0:

 15:51:10 : Erasing internal memory sectors [236 241]

 15:51:10 : Download in Progress:

 15:51:11 : File download complete

 15:51:11 : Time elapsed during download operation: 00:00:00.627

 15:51:11 : Firmware Upgrade process started ...

 15:51:11 : Application is running, Please Hold on...

 15:51:23 : Reconnecting...

 15:51:23 : Reconnected !

 15:51:23 : Error: The FUS version you're trying to install is older/equal to the FUS version already installed !

After and before the upgrade the fus infos was as following picture.

0693W00000NsLb8QAF.jpg

From the log, it seems that StartFus is not activated.

1) WB board connection

2) RDP BB (Level1) Apply -> AA (Level0 ) Apply from OB in STM32CubeProg

After that, try the upgrade again in order.

 And it seems that it is necessary to check the status of the BOOT0 pin in terms of H/W.

Kyuns.2
Associate II

I followed your advice and upgraded FUS to v1.2.0 successfully.

0693W00000NsLq3QAF.jpgHowever, when I tried to upgrade BLE stack, the following error was occured.

 16:41:10 : Old Firmware delete ...

 16:41:10 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.

 16:41:10 : Warning: Option Byte: nboot0, value: 0x1, was not modified.

 16:41:10 : Warning: Option Byte: nboot1, value: 0x1, was not modified.

 16:41:10 : Warning: Option Bytes are unchanged, Data won't be downloaded

 16:41:10 : Time elapsed during option Bytes configuration: 00:00:00.001

 16:41:10 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

 16:41:10 : Memory Programming ...

 16:41:10 : Opening and parsing file: 0x495_FUS_Operator.bin

 16:41:10 :  File     : 0x495_FUS_Operator.bin

 16:41:10 :  Size     : 8.00 KB 

 16:41:10 :  Address    : 0x08000000 

 16:41:10 : Erasing memory corresponding to segment 0:

 16:41:11 : Erasing internal memory sectors [0 1]

 16:41:11 : Download in Progress:

 16:41:11 : File download complete

 16:41:11 : Time elapsed during download operation: 00:00:00.271

 16:41:11 : Application is running, Please Hold on...

 16:41:18 : Reconnecting...

 16:41:18 : Reconnected !

 16:41:18 : Warning: FUS_STATE_IMG_NOT_FOUND, Flash already empty !

 16:41:19 : Firmware delete Success

 16:41:19 : Download Stack/FUS image at address 0x80d0000 ...

 16:41:19 : Memory Programming ...

 16:41:19 : Opening and parsing file: stm32wb5x_BLE_Stack_full_fw.bin

 16:41:19 :  File     : stm32wb5x_BLE_Stack_full_fw.bin

 16:41:19 :  Size     : 143.42 KB 

 16:41:19 :  Address    : 0x080D0000 

 16:41:19 : Erasing memory corresponding to segment 0:

 16:41:19 : Erasing internal memory sectors [208 243]

 16:41:20 : Download in Progress:

 16:41:22 : File download complete

 16:41:22 : Time elapsed during download operation: 00:00:03.299

 16:41:22 : Firmware Upgrade process started ...

 16:41:22 : Application is running, Please Hold on...

 16:41:34 : Reconnecting...

 16:41:34 : Reconnected !

 16:41:34 : Error: The FUS version you're trying to install is older/equal to the FUS version already installed !

Remy ISSALYS
ST Employee

Hello,

You can look this wiki page which describe how to update the FUS and the BLE stack. If your issue isn't resolved, please describe your procedure to update the BLE stack.

Best Regards