cancel
Showing results for 
Search instead for 
Did you mean: 

FUS and zigbee firmware upgrade failed

TZHAO.1
Associate

I am trying the zigbee apps in 'STM32Cube_FW_WB_V1.7.0'. However the firmware upgrade is never successful. I followed the Release Note but i can't get FUS state. I have tried with FUS 1.02 and 1.1 but it doesn't work. I thought maybe FUS is already up to date, so I tried zigbee firmware. It doesn't work, although I believe that I entered correctly the address in the binary table. I can still connect the nucleo board via stlink, but my PC no longer recognizes the USB dongle. The log is shown below, do you have any idea what is the problem?0693W000001stXgQAI.png

16:26:51 : STM32CubeProgrammer API v2.4.0

16:26:55 : ST-LINK SN : 0679FF313335415043151616

16:26:55 : ST-LINK FW : V2J35M26

16:26:55 : Voltage   : 3.28V

16:26:55 : SWD freq  : 4000 KHz

16:26:55 : Connect mode: Normal

16:26:55 : Reset mode : Software reset

16:26:55 : Device ID  : 0x495

16:26:55 : UPLOADING OPTION BYTES DATA ...

16:26:55 :  Bank     : 0x00

16:26:55 :  Address    : 0x58004020

16:26:55 :  Size     : 104 Bytes

16:26:55 : UPLOADING ...

16:26:55 :  Size     : 1024 Bytes

16:26:55 :  Address    : 0x8000000

16:26:55 : Read progress:

16:26:55 : Data read successfully

16:26:55 : Time elapsed during the read operation is: 00:00:00.007

16:27:38 : Old Firmware delete ...

16:27:38 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.

16:27:38 : Warning: Option Byte: nboot0, value: 0x1, was not modified.

16:27:38 : Warning: Option Byte: nboot1, value: 0x1, was not modified.

16:27:38 : Warning: Option Bytes are unchanged, Data won't be downloaded

16:27:38 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

16:27:38 : Memory Programming ...

16:27:38 : Opening and parsing file: 0x495_FUS_Operator.bin

16:27:38 :  File     : 0x495_FUS_Operator.bin

16:27:38 :  Size     : 11584 Bytes

16:27:38 :  Address    : 0x08000000 

16:27:38 : Erasing memory corresponding to segment 0:

16:27:38 : Erasing internal memory sectors [0 2]

16:27:39 : Download in Progress:

16:27:39 : File download complete

16:27:39 : Time elapsed during download operation: 00:00:00.609

16:27:39 : Application is running

16:27:47 : Reconnecting...

16:27:47 : Reconnected !

16:27:48 : Firmware delete Success

16:27:48 : Download Stack/FUS image at address 0x80a9000 ...

16:27:48 : Memory Programming ...

16:27:48 : Opening and parsing file: stm32wb5x_Zigbee_FFD_Full_fw.bin

16:27:48 :  File     : stm32wb5x_Zigbee_FFD_Full_fw.bin

16:27:48 :  Size     : 306144 Bytes

16:27:48 :  Address    : 0x080A9000 

16:27:48 : Erasing memory corresponding to segment 0:

16:27:48 : Erasing internal memory sectors [169 243]

16:27:50 : Download in Progress:

16:27:55 : File download complete

16:27:55 : Time elapsed during download operation: 00:00:06.647

16:27:55 : Verifying ...

16:27:55 : Read progress:

16:27:57 : Download verified successfully 

16:27:57 : Firmware Upgrade process started ...

16:27:57 : Application is running

16:28:16 : Reconnecting...

16:28:16 : Reconnected !

16:28:16 : Error: FUS_STATE_IMG_NOT_AUTHENTIC

16:28:16 : Old Firmware delete ...

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

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

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

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

16:28:16 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

16:28:16 : Memory Programming ...

16:28:16 : Opening and parsing file: 0x495_FUS_Operator.bin

16:28:16 :  File     : 0x495_FUS_Operator.bin

16:28:16 :  Size     : 11584 Bytes

16:28:16 :  Address    : 0x08000000 

16:28:16 : Erasing memory corresponding to segment 0:

16:28:17 : Erasing internal memory sectors [0 2]

16:28:17 : failed to erase memory

16:28:17 : failed to erase memory

16:28:17 : Failed to download FUS operator!

16:28:17 : Retry -- 0

16:28:17 : Old Firmware delete ...

16:28:17 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.

16:28:17 : Warning: Option Byte: nboot0, value: 0x1, was not modified.

16:28:17 : Warning: Option Byte: nboot1, value: 0x1, was not modified.

16:28:17 : Warning: Option Bytes are unchanged, Data won't be downloaded

16:28:17 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

16:28:17 : Memory Programming ...

16:28:17 : Opening and parsing file: 0x495_FUS_Operator.bin

16:28:17 :  File     : 0x495_FUS_Operator.bin

16:28:17 :  Size     : 11584 Bytes

16:28:17 :  Address    : 0x08000000 

16:28:17 : Erasing memory corresponding to segment 0:

16:28:17 : Erasing internal memory sectors [0 2]

16:28:17 : Download in Progress:

16:28:17 : File download complete

16:28:17 : Time elapsed during download operation: 00:00:00.557

16:28:17 : Application is running

16:28:25 : Reconnecting...

16:28:25 : Reconnected !

1 REPLY 1
Remi QUINTIN
ST Employee

There are many separate issues there.

When using the SWD interface, be sure to set the nSWboot0 to 1 before switching the USB interface in DFU mode.

Then set the reset mode to hardware mode.

Note that is not possible to read the FUS version via the SWD port. This isthe reason why this feature in not available with the GUI interface.

the FUS_STATE_IMG_NOT_AUTHENTIC error message may result from a previous FW installation. Be sure to perform a partial mass erase of the user part of the flash memory to ensure a clean memory before any programming.

Ler me know if all these remarks were helpful.