Skip to main content
Ra.1
Associate II
August 13, 2021
Question

Error: fwdelete Operation Failure! Please, try again

  • August 13, 2021
  • 36 replies
  • 6488 views

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

This topic has been closed for replies.

36 replies

Ra.1
Ra.1Author
Associate II
August 18, 2021

Hello Houda,

As per your suggestion i started FUS

after that i tried to delete so i am facing same issue, another thing we need to observe here that FUS version still showing v0.0.0.0

0693W00000Dpgv8QAB.png

Ra.1
Ra.1Author
Associate II
August 18, 2021

Hello Remi QUINTIN,

1) while going to option bytes it shows that check the flash protection, and another thing i am not able to connect ST-link utility

2) 8 months back i have purchased

Houda GHABRI
ST Employee
August 18, 2021

Hi @Ra.1​ ,

can you please confirm The Firmware upgrade is done correctly?

Houda

Ra.1
Ra.1Author
Associate II
August 18, 2021

Hello houda,

this is the log which i got after updating

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

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

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

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

18:24:42 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

18:24:42 : Memory Programming ...

18:24:42 : Opening and parsing file: 0x495_FUS_Operator.bin

18:24:42 :  File     : 0x495_FUS_Operator.bin

18:24:42 :  Size     : 8 KBytes

18:24:42 :  Address    : 0x08000000 

18:24:42 : Erasing memory corresponding to segment 0:

18:24:42 : Erasing internal memory sectors [0 1]

18:24:42 : Download in Progress:

18:24:43 : File download complete

18:24:43 : Time elapsed during download operation: 00:00:00.280

18:24:43 : Application is running, Please Hold on...

18:24:43 : Reconnecting...

18:24:43 : Reconnected !

18:24:47 : Reconnecting...

18:24:47 : Reconnected !

18:24:48 : StartFus activated successfully

18:24:48 : FUS_STATE_IDLE

18:24:48 : Start FUS execution finished

0693W00000Dph6BQAR.png0693W00000Dph82QAB.png

Ra.1
Ra.1Author
Associate II
August 18, 2021

Hello all,

these are for the reference

0693W00000Dph1VQAR.png0693W00000DpgzLQAR.png0693W00000Dph1LQAR.png0693W00000Dph1BQAR.png0693W00000Dph16QAB.png0693W00000Dph11QAB.png 

Remi QUINTIN
ST Technical Moderator
August 18, 2021

Thanks for the download but I am just missing the 2 most important ones: SFSA and SBRV which are part of the security configuration. They do not appear on the first screenshot.

Ra.1
Ra.1Author
Associate II
August 18, 2021

Hello houda,

this is the log which i got after updating

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

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

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

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

18:24:42 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 

18:24:42 : Memory Programming ...

18:24:42 : Opening and parsing file: 0x495_FUS_Operator.bin

18:24:42 :  File     : 0x495_FUS_Operator.bin

18:24:42 :  Size     : 8 KBytes

18:24:42 :  Address    : 0x08000000 

18:24:42 : Erasing memory corresponding to segment 0:

18:24:42 : Erasing internal memory sectors [0 1]

18:24:42 : Download in Progress:

18:24:43 : File download complete

18:24:43 : Time elapsed during download operation: 00:00:00.280

18:24:43 : Application is running, Please Hold on...

18:24:43 : Reconnecting...

18:24:43 : Reconnected !

18:24:47 : Reconnecting...

18:24:47 : Reconnected !

18:24:48 : StartFus activated successfully

18:24:48 : FUS_STATE_IDLE

18:24:48 : Start FUS execution finished

0693W00000Dph6BQAR.png0693W00000Dph82QAB.png

Houda GHABRI
ST Employee
August 18, 2021

Hi @Ra.1​ 

Yes the FUS seems to be upgraded successfully according to your traces so I eliminate a FUS version issue.

I will check with our experts what can be the reason to have this issue and come back to you with updates very soon.

Houda

Ra.1
Ra.1Author
Associate II
August 19, 2021

yes plz...,, I am waiting..!!

Houda GHABRI
ST Employee
August 19, 2021

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

Ra.1
Ra.1Author
Associate II
August 20, 2021

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 Technical Moderator
August 20, 2021

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 Technical Moderator
August 20, 2021

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
Ra.1Author
Associate II
August 22, 2021

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