cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot flash BLE Wireless Stack into STM32WB55CG (USB Dongle). FUS_STATE_IMG_NO_SPACE

theARTof1337
Associate II

Hello! I'm trying to flash wireless stack into the STM32WB55 USB Dongle.
I've successfully upgraded FUS to version 2.0.0.3.

theARTof1337_0-1749056332821.png

But now i cannot flash wireless binaries. Each time I try to do this, i'm getting the message, that image is downloaded, verified. Than that image found and authentic, but there's no space.

ERROR: FUS_STATE_IMG_NO_SPACE.

What am I doing wrong?
My logs from CubeProgrammer are listed below...

 

19:56:30 : Old Firmware delete ...
19:56:30 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
19:56:30 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
19:56:30 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
19:56:30 : Warning: Option Bytes are unchanged, Data won't be downloaded
19:56:30 : Time elapsed during option Bytes configuration: 00:00:00.000
19:56:30 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
19:56:30 : Memory Programming ...
19:56:30 : Opening and parsing file: 0x495_FUS_Operator.bin
19:56:30 : File : 0x495_FUS_Operator.bin
19:56:30 : Size : 8.00 KB
19:56:30 : Address : 0x08000000
19:56:30 : Erasing memory corresponding to segment 0:
19:56:30 : Erasing internal memory sectors [0 1]
19:56:30 : Download in Progress:
19:56:30 : File download complete
19:56:30 : Time elapsed during download operation: 00:00:00.268
19:56:30 : Application is running, Please Hold on...
19:56:37 : Reconnecting...
19:56:37 : Reconnected !
19:56:37 : Warning: FUS_STATE_IMG_NOT_FOUND, Flash already empty !
19:56:38 : Firmware delete Success
19:56:38 : Download Stack/FUS image at address 0x80D4000 ...
19:56:38 : Memory Programming ...
19:56:38 : Opening and parsing file: stm32wb5x_BLE_Stack_full_fw.bin
19:56:38 : File : stm32wb5x_BLE_Stack_full_fw.bin
19:56:38 : Size : 127.05 KB
19:56:38 : Address : 0x080D4000
19:56:38 : Erasing memory corresponding to segment 0:
19:56:38 : Erasing internal memory sectors [212 243]
19:56:39 : Download in Progress:
19:56:41 : File download complete
19:56:41 : Time elapsed during download operation: 00:00:02.939
19:56:41 : Firmware Upgrade process started ...
19:56:41 : Application is running, Please Hold on...
19:56:53 : Reconnecting...
19:56:53 : Reconnected !
19:56:53 : Error: FUS_STATE_IMG_NO_SPACE: Firmware/FUS upgrade requested, image found and authentic, but there is no enough space to install it due to already installed image. Install the stack in a lower location then try again.

I've tried many different flash addresses for flashing:
0x080D4000
0x080D0000
0x080CC000
And much more. So i think that the reason is smth else...

Current state of Option bytes:

theARTof1337_1-1749056597085.png

theARTof1337_2-1749056616956.png

theARTof1337_4-1749056644234.png

I didn't change anything here.

I've tried different states of BOOT0 switch on the board, but nothing changed.

1 ACCEPTED SOLUTION

Accepted Solutions
theARTof1337
Associate II

I'm not sure, why this worked, but I rebooted the board, then executed FULL chip erase, and than flashed Wireless Stack WITHOUT erasing the flash, and it worked... i'm not sure, if this is correct way to fix my issue, but it worked... After full chip erase i switched to FUS tab and started flashing Stack to 0x080D0000 without doing any actions with FUS (checking ver or state). 
1. Full chip erase
2. Switch to FUS tab
3. Check "No stack delete"
4. Addr = 0x080D0000
5. Upgrade without any previous actions with FUS

theARTof1337_0-1749058542479.png

 

theARTof1337_3-1749058818143.png

I guess, maybe communication with FUS to check it's version or state disables further stack upgrade until chip reset? Anyway... Topic can be closed...

 

 

View solution in original post

1 REPLY 1
theARTof1337
Associate II

I'm not sure, why this worked, but I rebooted the board, then executed FULL chip erase, and than flashed Wireless Stack WITHOUT erasing the flash, and it worked... i'm not sure, if this is correct way to fix my issue, but it worked... After full chip erase i switched to FUS tab and started flashing Stack to 0x080D0000 without doing any actions with FUS (checking ver or state). 
1. Full chip erase
2. Switch to FUS tab
3. Check "No stack delete"
4. Addr = 0x080D0000
5. Upgrade without any previous actions with FUS

theARTof1337_0-1749058542479.png

 

theARTof1337_3-1749058818143.png

I guess, maybe communication with FUS to check it's version or state disables further stack upgrade until chip reset? Anyway... Topic can be closed...