cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32WB55 Nucleo] SHCI_FUS_CMD_NOT_SUPPORTED Error on SHCI_C2_FLASH_EraseActivity

KBehrVincent
Visitor

I updated The FUS of my STM32WB55 Nucleo Board to FUS v2.2.0.0 and the BLE Stack to v1.24.0.3

After this change Flash erase operations fail at the call of `SHCI_C2_FLASH_EraseActivity` with the error code `SHCI_FUS_CMD_NOT_SUPPORTED`
Additionally BLE does not advertise anymore.

The log from the `Read FUS infos` returns some warnings:
notably:

10:35:12 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
10:35:12 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
10:35:12 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
10:35:12 : Warning: Option Bytes are unchanged, Data won't be downloaded

The entire log:

10:35:12 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
10:35:12 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
10:35:12 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
10:35:12 : Warning: Option Bytes are unchanged, Data won't be downloaded
10:35:12 : Time elapsed during option Bytes configuration: 00:00:00.000
10:35:12 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 
10:35:12 : Opening and parsing file: 0x495_FUS_Operator.bin
10:35:12 : Memory Programming ...
10:35:12 :   File          : 0x495_FUS_Operator.bin
10:35:12 :   Size          : 8.00 KB 
10:35:12 :   Address       : 0x08000000
10:35:12 : Erasing memory corresponding to segment 0:
10:35:12 : Erasing internal memory sectors [0 1]
10:35:12 : Download in Progress:
10:35:12 : File download complete
10:35:12 : Time elapsed during download operation: 00:00:00.276
10:35:12 : Application is running, Please Hold on...
10:35:12 : Reconnecting...
10:35:12 : Reconnected !
10:35:13 : FUS_STATE_IDLE
10:35:13 : Read FUS state command execution finished
10:35:13 : UPLOADING ...
10:35:13 :   Size          : 4 Bytes
10:35:13 :   Address       : 0x20010010
10:35:13 : Read progress:
10:35:13 : Data read successfully
10:35:13 : Time elapsed during the read operation is: 00:00:00.000
10:35:13 : UPLOADING ...
10:35:13 :   Size          : 4 Bytes
10:35:13 :   Address       : 0x20010014
10:35:13 : Read progress:
10:35:13 : Data read successfully
10:35:13 : Time elapsed during the read operation is: 00:00:00.000
10:35:13 : UPLOADING ...
10:35:13 :   Size          : 4 Bytes
10:35:13 :   Address       : 0x8001FFC
10:35:13 : Read progress:
10:35:13 : Data read successfully
10:35:13 : Time elapsed during the read operation is: 00:00:00.000
10:35:13 : UPLOADING ...
10:35:13 :   Size          : 4 Bytes
10:35:13 :   Address       : 0x58004080
10:35:13 : Read progress:
10:35:13 : Data read successfully
10:35:13 : Time elapsed during the read operation is: 00:00:00.000

FUS_infos.png

 

The option bytes:

{
  "deviceId" : 1173,
  "bitNameToValue" : {
    "RDP" : 170,
    "BOR_LEV" : 0,
    "nBOOT0" : 1,
    "nBOOT1" : 1,
    "nSWBOOT0" : 0,
    "SRAM2RST" : 0,
    "SRAM2PE" : 1,
    "nRST_STOP" : 1,
    "nRST_STDBY" : 1,
    "nRSTSHDW" : 1,
    "WWDGSW" : 1,
    "IWDGSTDBY" : 1,
    "IWDGSTOP" : 1,
    "IWDGSW" : 1,
    "IPCCDBA" : 0,
    "ESE" : 1,
    "PCROP1A_STRT" : 511,
    "PCROP1A_END" : 0,
    "PCROP_RDP" : 1,
    "PCROP1B_STRT" : 511,
    "PCROP1B_END" : 0,
    "WRP1A_STRT" : 255,
    "WRP1A_END" : 0,
    "WRP1B_STRT" : 255,
    "WRP1B_END" : 0,
    "SFSA" : 208,
    "FSD" : 0,
    "DDS" : 1,
    "C2OPT" : 1,
    "NBRSD" : 0,
    "SNBRSA" : 16,
    "BRSD" : 1,
    "SBRSA" : 0,
    "SBRV" : 249856
  }
}


 How can I solve this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Christophe Arnal
ST Employee

Hello,

The CPU2 is currently running the FUS. You need to Start the Wireless Stack. This can be done from CubeProgrammer as you can see in your screenshot.

Regards.

View solution in original post

2 REPLIES 2
Christophe Arnal
ST Employee

Hello,

The CPU2 is currently running the FUS. You need to Start the Wireless Stack. This can be done from CubeProgrammer as you can see in your screenshot.

Regards.

Thank you,
that worked!
Turns out I had done so, but to confirm, I always pressed `Read FUS infos` which seams to have stopped the wireless stack?
Regards