2021-06-16 01:26 AM
Having issues with STM32WB55CE FUS and wireless stack update. FUS version:
Reading 32-bit memory content
Size : 4 Bytes
Address: : 0x20010010
0x20010010 : 01010100
FUS upgrade >STM32_Programmer_CLI.exe -c port=swd mode=UR -fwupgrade stm32wb5x_FUS_fw.bin 0x0807A000 firstinstall=0, getting:
Error: Could not execute fwupgrade command, Impossible to install FUS V1.0.1 on
256/512KB Flash Parts
Wireless stack update >STM32_Programmer_CLI.exe -c port=swd mode=UR -fwupgrade STM32WB55\stm32wb5x_BLE_Stack_full_fw.bin 0x08056000 firstinstall=0
-------------------------------------------------------------------
STM32CubeProgrammer v2.7.0
-------------------------------------------------------------------
ST-LINK SN : 52FF74067575555041500481
ST-LINK FW : V2J37S7
Board : --
Voltage : 3.26V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x495
Revision ID : Rev Y
Device name : STM32WB5x
Flash size : 512 KBytes
Device type : MCU
Device CPU : Cortex-M4
Old wireless stack delete ...
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 : 8 KBytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 1]
Download in Progress:
██████████████████████████████████████████████████ 100%
File download complete
Time elapsed during download operation: 00:00:00.765
Application is running, Please Hold on...
Reconnecting...
Reconnected !
Warning: FUS_STATE_IMG_NOT_FOUND, Flash already empty !
Firmware delete Success
Download firmware image at address 0x8056000 ...
Memory Programming ...
Opening and parsing file: stm32wb5x_BLE_Stack_full_fw.bin
File : stm32wb5x_BLE_Stack_full_fw.bin
Size : 170604 Bytes
Address : 0x08056000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [86 127]
Download in Progress:
██████████████████████████████████████████████████ 100%
File download complete
Time elapsed during download operation: 00:00:04.664
Firmware Upgrade process started ...
Application is running, Please Hold on...
Reconnecting...
Reconnected !
Error: The FUS version you're trying to install is older/equal to the FUS versio
n already installed !
Error: fwupgrade Command Failure!
Firwmware upgrade failed! Deleting firmware and exiting...
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 : 8 KBytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 1]
failed to erase memory
failed to erase memory
Failed to download FUS operator!
Could not start firmware upgrade service, old firmware delete failed
Any suggestions to fix this issue ?
2021-06-16 01:42 AM
Hello,
>> Error: Could not execute fwupgrade command, Impossible to install FUS V1.0.1 on
>> 256/512KB Flash Parts
What STM32WB firmware package do you use ?
In STM32WB firmware package V1.11.1, FUS version should be v1.2.0 not V1.0.1
2021-06-16 02:27 AM
>> What STM32WB firmware package do you use ?
With stm32wb5x_FUS_fw.bin from STM32CubeWB v1.11.0, was able to update the FUS to V1.1.2.0, still unable to upload the wireless stack:
>STM32_Programmer_CLI.exe -c port=swd mode=UR -fwupgrade stm32wb5x_BLE_Stack_full_fw.bin 0x08056000 firstinstall=0
Error: The FUS version you're trying to install is older/equal to the FUS version already installed !
Error: fwupgrade Command Failure!
Firwmware upgrade failed! Deleting firmware and exiting...
2021-06-16 02:41 AM
I don't know more.
Maybe @Remi QUINTIN can help ?
2021-06-16 07:29 AM
There was an issue with CubeProgrammer 2.7 with 256K WB variant.
Could you revert to CubeProgrammer v2.6 and try again?
I dont think it is a FUS issue.
Could you tell me the FUS version on your board? It looks like being v1.1.1 but you can read it using CubeProgrammer en USB DFU mode.
2021-06-16 07:37 AM
@Remi QUINTIN
V1.1.2.0
he wrote that earlier:
>> With stm32wb5x_FUS_fw.bin from STM32CubeWB v1.11.0, was able to update the FUS to V1.1.2.0, still unable to upload the wireless stack:
2021-06-16 07:50 AM
Strange as the FUS version available in the V1.11 package is the FUS v1.2.0.
2021-06-16 07:58 AM
I don't think so, from WB packages release notes:
V1.11.0 contains FUS 1.1.2 - 02/05/2021
V1.11.1 contains FUS 1.2.0 - 04/06/2021
2021-06-16 08:47 AM
> Could you revert to CubeProgrammer v2.6 and try again?
CubeProgrammer v2.6 does not recognize the current FUS version. It showed:
0x20030030 : 00000000
An attempt to update the FUS/wireless stack produced the following error:
Error: The FUS version you're trying to install is older/equal to the FUS version already installed !
Error: fwupgrade Command Failure!
Firwmware upgrade failed! Deleting firmware and exiting…
2021-06-16 08:47 AM
Indeed you are right. I am using v1.11.1
Back to the original issue, I know there is an issue with CubeProgrammer v2.7 with 256KB WB variant.
It should be solved in the next release V2.8 expected in a few weeks (less than a month).