cancel
Showing results for 
Search instead for 
Did you mean: 

Error: fwdelete Operation Failure! Please, try again

Ra.1
Associate II

Hello I am using stm32wb55 nucleo i am tring to delete the firmware but it shows error

C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=SWD -fwdelete

   -------------------------------------------------------------------

            STM32CubeProgrammer v2.6.0

   -------------------------------------------------------------------

ST-LINK SN : 066CFF303430484257141344

ST-LINK FW : V2J37M26

Board    : P-NUCLEO-WB55

Voltage   : 3.25V

SWD freq  : 4000 KHz

Connect mode: Normal

Reset mode : Software reset

Device ID  : 0x495

Revision ID : Rev Y

Device name : STM32WBxx

Flash size : 1 MBytes

Device type : MCU

Device CPU : Cortex-M4

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

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

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

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

Succeeded to set nSWboot0=0 nboot1=1 nboot0=1

Memory Programming ...

Opening and parsing file: 0x495_FUS_Operator.bin

 File     : 0x495_FUS_Operator.bin

 Size     : 11584 Bytes

 Address    : 0x08000000

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 2]

Download in Progress:

██████████████████████████████████████████████████ 100%

File download complete

Time elapsed during download operation: 00:00:00.401

Application is running

Reconnecting...

Reconnected !

Error: FUS_STATE_ERR_UNKNOWN

Firmware delete n░1 failed after retrying!

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

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

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

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

Succeeded to set nSWboot0=0 nboot1=1 nboot0=1

Memory Programming ...

Opening and parsing file: 0x495_FUS_Operator.bin

 File     : 0x495_FUS_Operator.bin

 Size     : 11584 Bytes

 Address    : 0x08000000

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 2]

Download in Progress:

██████████████████████████████████████████████████ 100%

File download complete

Time elapsed during download operation: 00:00:00.406

Application is running

Reconnecting...

Reconnected !

Error: FUS_STATE_ERR_UNKNOWN

Firmware delete n░1 failed after retrying!

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

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

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

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

Succeeded to set nSWboot0=0 nboot1=1 nboot0=1

Memory Programming ...

Opening and parsing file: 0x495_FUS_Operator.bin

 File     : 0x495_FUS_Operator.bin

 Size     : 11584 Bytes

 Address    : 0x08000000

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 2]

Download in Progress:

██████████████████████████████████████████████████ 100%

File download complete

Time elapsed during download operation: 00:00:00.343

Application is running

Reconnecting...

Reconnected !

Error: FUS_STATE_ERR_UNKNOWN

Firmware delete n░1 failed after retrying!

Error: fwdelete Operation Failure! Please, try again

plz give me the solution

36 REPLIES 36
Houda GHABRI
ST Employee

Hi @Ra.1

Can you please share a screenshot with SFSA and SBRV OB which are part of the security configuration as mentioned by Remi QUINTIN?

Houda

Hello,

i have another STM32WB DK which is working so i connected and observed that the value of SFSA and SBRSA is differ from the current (which has issue) DK.

so i tried to change the value so it gave the error "option byte program failure"

0693W00000Dpt3OQAR.png

Remi QUINTIN
ST Employee

The SBRV value is still missing but I have enough info with SFSA = 0xF6 to say that the FUS has never been updated on this board as this address is the one of the very first FUS version v0.5.3. At the opposite, the pre-installed FW has indeed been deleted.

From this constatation, I can say that you will never be able to upgrade the FW with this FUS version. You need first to upgrade it to FUS v1.0.2 first and then to the latest version v1.2.

Then you will be able to program the FW stack on your board.

So we have to focus first on the upgrade to FUS V1.0.2.

Remi QUINTIN
ST Employee

Looking at the latest WB FW package v1.12, we should be able to upgrade the FUS in one row, just using the stm32wb5x_FUS_fw_for_fus_0_5_3.bin file.

stm32wb5x_FUS_fw_for_fus_0_5_3.bin

  • Firmware Upgrade Services (FUS)
  • This binary is the utility to flash the Wireless Coprocessor Binaries.
  • Latest version of the FUS to upgrade board containing only FUS v0.5.3

So try to update your board with this binary file. Then you should have the SFSA value set to 0xF4. Then program the RF stack you need on your board. It should work.

Ra.1
Associate II

Hello,

sorry for late response, i tried with both the files which you have suggested stm32wb5x_FUS_fw_for_fus_0_5_3.bin, stm32wb5x_FUS_fw_1_0_2.bin

but getting same error as shown in below screen shot

0693W00000Dq1d0QAB.png0693W00000Dq1bdQAB.png 19:34:15 : Old Firmware delete ...

 19:34:15 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.

 19:34:15 : Warning: Option Byte: nboot0, value: 0x1, was not modified.

 19:34:15 : Warning: Option Byte: nboot1, value: 0x1, was not modified.

 19:34:15 : Warning: Option Bytes are unchanged, Data won't be downloaded

 19:34:15 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

 19:34:15 : Memory Programming ...

 19:34:15 : Opening and parsing file: 0x495_FUS_Operator.bin

 19:34:15 :  File     : 0x495_FUS_Operator.bin

 19:34:15 :  Size     : 8 KBytes

 19:34:15 :  Address    : 0x08000000 

 19:34:15 : Erasing memory corresponding to segment 0:

 19:34:15 : Erasing internal memory sectors [0 1]

 19:34:15 : Download in Progress:

 19:34:15 : File download complete

 19:34:15 : Time elapsed during download operation: 00:00:00.273

 19:34:15 : Application is running, Please Hold on...

 19:34:22 : Reconnecting...

 19:34:22 : Reconnected !

 19:34:22 : Error: FUS_STATE_ERR_UNKNOWN

just for confirmation check my board connections as follows

0693W00000Dq1cqQAB.png 

Remi QUINTIN
ST Employee

Strange! Could you give us the value for the SFSA and SBRV option bytes?

One point above is the fact that it seems the FUS upgrade looked good, but the SFSA value is still 0xF6.

Could you move to CubeProgrammer 2.8 and read the FUS value with this version?

You may have to press the "READ FUS version" button twice to get the version.

Hello,

1) Could you give us the value for the SFSA and SBRV option bytes?

A: i can find SFSA but SBRV not there in that list

2) One point above is the fact that it seems the FUS upgrade looked good, but the SFSA value is still 0xF6.

A: actually at that point i clicked just "START FUS" option but i did not pressed "UPGRADE FIRMWARE" option in it so in log that shows just fus_started_successful

3) Could you move to CubeProgrammer 2.8 and read the FUS value with this version?

A: yes i am using same version

0693W00000Dq5ChQAJ.png

4) You may have to press the "READ FUS version" button twice to get the version

A: 0693W00000Dq66pQAB.png

Remi QUINTIN
ST Employee

1) So what is the value of SFSA? Still 0xF6?

Note that the SBRV option byte is in the same "secure" window but you may have to scroll the window down a bit to see it appearing.

2) OK understood.

Could you show me the command you sent to upgrade the FUS with stm32wb5x_FUS_fw_for_fus_0_5_3.bin or stm32wb5x_FUS_fw_1_0_2.bin files?

The addresses should be 0x080EC000 for both.

Note that you may only use stm32wb5x_FUS_fw_for_fus_0_5_3.bin file to upgrade the FUS to the latest version.

Hello,

1) Yes i got the SBRV  value as well as SFSA see*2

2) No...i am not updating using cmdprompt just i am clicking the firmware upgrade option see *1

image: *1

0693W00000Dq67yQAB.png 

image: *2

0693W00000Dq60YQAR.png0693W00000Dq69AQAR.png

Remi QUINTIN
ST Employee

For the FUS upgrade , you should uncheck the "Start stack after upgrade" button. I see it seems not active as there is no FW installed but who knows.

SFSA and SBRV option bytes are consistent. The load address is also OK.