2020-06-03 08:31 PM
Hello! I am trying to download the FUS V1.1.0.0 to a STM32WB5xE controller through SWD in CubeProgrammer so as to update the firmware. But I receive Error: --Reserved-- . I ignored it and downloaded the firmware successfuly but my BLE stack doesn't work :( . I have soldered the controller in my board and connected some peripherals to him and everything is working ех�?еpt BLE. What can I do? Here is the log of CubeProgrammer:
06:13:42 : STM32CubeProgrammer API v2.4.0
06:14:37 : ST-LINK SN : 2A3009013212354D434B4E00
06:14:37 : ST-LINK FW : V2J36S7
06:14:37 : Voltage : 3.19V
06:14:37 : SWD freq : 4000 KHz
06:14:37 : Connect mode: Under Reset
06:14:37 : Reset mode : Software reset
06:14:37 : Device ID : 0x495
06:14:38 : UPLOADING OPTION BYTES DATA ...
06:14:38 : Bank : 0x00
06:14:38 : Address : 0x58004020
06:14:38 : Size : 104 Bytes
06:14:38 : UPLOADING ...
06:14:38 : Size : 1024 Bytes
06:14:38 : Address : 0x8000000
06:14:38 : Read progress:
06:14:38 : Data read successfully
06:14:38 : Time elapsed during the read operation is: 00:00:00.007
06:15:16 : Old Firmware delete ...
06:15:16 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
06:15:16 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
06:15:16 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
06:15:16 : Warning: Option Bytes are unchanged, Data won't be downloaded
06:15:16 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
06:15:16 : Memory Programming ...
06:15:16 : Opening and parsing file: 0x495_FUS_Operator.bin
06:15:16 : File : 0x495_FUS_Operator.bin
06:15:16 : Size : 11584 Bytes
06:15:16 : Address : 0x08000000
06:15:16 : Erasing memory corresponding to segment 0:
06:15:16 : Erasing internal memory sectors [0 2]
06:15:16 : Download in Progress:
06:15:17 : File download complete
06:15:17 : Time elapsed during download operation: 00:00:00.686
06:15:17 : Application is running
06:15:25 : Reconnecting...
06:15:25 : Reconnected !
06:15:26 : Firmware delete Success
06:15:26 : Download Stack/FUS image at address 0x807a000 ...
06:15:26 : Memory Programming ...
06:15:26 : Opening and parsing file: stm32wb5x_FUS_fw.bin
06:15:26 : File : stm32wb5x_FUS_fw.bin
06:15:26 : Size : 24492 Bytes
06:15:26 : Address : 0x0807A000
06:15:26 : Erasing memory corresponding to segment 0:
06:15:26 : Erasing internal memory sectors [122 127]
06:15:26 : Download in Progress:
06:15:27 : File download complete
06:15:27 : Time elapsed during download operation: 00:00:01.052
06:15:27 : Firmware Upgrade process started ...
06:15:27 : Application is running
06:15:37 : Reconnecting...
06:15:37 : Reconnected !
06:15:37 : Error: -- Reserved --
06:15:37 : Old Firmware delete ...
06:15:37 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
06:15:37 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
06:15:37 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
06:15:37 : Warning: Option Bytes are unchanged, Data won't be downloaded
06:15:37 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
06:15:37 : Memory Programming ...
06:15:37 : Opening and parsing file: 0x495_FUS_Operator.bin
06:15:37 : File : 0x495_FUS_Operator.bin
06:15:37 : Size : 11584 Bytes
06:15:37 : Address : 0x08000000
06:15:37 : Erasing memory corresponding to segment 0:
06:15:38 : Erasing internal memory sectors [0 2]
06:15:38 : failed to erase memory
06:15:38 : failed to erase memory
06:15:38 : Failed to download FUS operator!
06:15:38 : Retry -- 0
06:15:38 : Old Firmware delete ...
06:15:38 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
06:15:38 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
06:15:38 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
06:15:38 : Warning: Option Bytes are unchanged, Data won't be downloaded
06:15:38 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
06:15:38 : Memory Programming ...
06:15:38 : Opening and parsing file: 0x495_FUS_Operator.bin
06:15:38 : File : 0x495_FUS_Operator.bin
06:15:38 : Size : 11584 Bytes
06:15:38 : Address : 0x08000000
06:15:38 : Erasing memory corresponding to segment 0:
06:15:38 : Erasing internal memory sectors [0 2]
06:15:38 : Download in Progress:
06:15:38 : File download complete
06:15:38 : Time elapsed during download operation: 00:00:00.694
06:15:38 : Application is running
06:15:46 : Reconnecting...
06:15:47 : Reconnected !
06:15:48 : Firmware delete Success
06:15:48 : Download Stack/FUS image at address 0x807a000 ...
06:15:48 : Memory Programming ...
06:15:48 : Opening and parsing file: stm32wb5x_FUS_fw.bin
06:15:48 : File : stm32wb5x_FUS_fw.bin
06:15:48 : Size : 24492 Bytes
06:15:48 : Address : 0x0807A000
06:15:48 : Erasing memory corresponding to segment 0:
06:15:48 : Erasing internal memory sectors [122 127]
06:15:48 : Download in Progress:
06:15:49 : File download complete
06:15:49 : Time elapsed during download operation: 00:00:00.923
06:15:49 : Firmware Upgrade process started ...
06:15:49 : Application is running
06:15:59 : Reconnecting...
06:15:59 : Reconnected !
06:15:59 : Error: -- Reserved --
06:15:59 : Old Firmware delete ...
06:15:59 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
06:15:59 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
06:15:59 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
06:15:59 : Warning: Option Bytes are unchanged, Data won't be downloaded
06:15:59 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
06:15:59 : Memory Programming ...
06:15:59 : Opening and parsing file: 0x495_FUS_Operator.bin
06:15:59 : File : 0x495_FUS_Operator.bin
06:15:59 : Size : 11584 Bytes
06:15:59 : Address : 0x08000000
06:15:59 : Erasing memory corresponding to segment 0:
06:15:59 : Erasing internal memory sectors [0 2]
06:15:59 : failed to erase memory
06:15:59 : failed to erase memory
06:15:59 : Failed to download FUS operator!
06:15:59 : Retry -- 1
06:15:59 : Old Firmware delete ...
06:15:59 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
06:15:59 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
06:15:59 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
06:15:59 : Warning: Option Bytes are unchanged, Data won't be downloaded
06:15:59 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
06:15:59 : Memory Programming ...
06:15:59 : Opening and parsing file: 0x495_FUS_Operator.bin
06:15:59 : File : 0x495_FUS_Operator.bin
06:15:59 : Size : 11584 Bytes
06:15:59 : Address : 0x08000000
06:15:59 : Erasing memory corresponding to segment 0:
06:15:59 : Erasing internal memory sectors [0 2]
06:15:59 : Download in Progress:
06:16:00 : File download complete
06:16:00 : Time elapsed during download operation: 00:00:00.590
06:16:00 : Application is running
06:16:08 : Reconnecting...
06:16:08 : Reconnected !
06:16:09 : Firmware delete Success
06:16:09 : Download Stack/FUS image at address 0x807a000 ...
06:16:09 : Memory Programming ...
06:16:09 : Opening and parsing file: stm32wb5x_FUS_fw.bin
06:16:09 : File : stm32wb5x_FUS_fw.bin
06:16:09 : Size : 24492 Bytes
06:16:09 : Address : 0x0807A000
06:16:09 : Erasing memory corresponding to segment 0:
06:16:09 : Erasing internal memory sectors [122 127]
06:16:09 : Download in Progress:
06:16:10 : File download complete
06:16:10 : Time elapsed during download operation: 00:00:00.964
06:16:10 : Firmware Upgrade process started ...
06:16:10 : Application is running
06:16:20 : Reconnecting...
06:16:20 : Reconnected !
06:16:20 : Error: -- Reserved --
06:16:20 : Old Firmware delete ...
06:16:20 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
06:16:20 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
06:16:20 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
06:16:20 : Warning: Option Bytes are unchanged, Data won't be downloaded
06:16:20 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
06:16:20 : Memory Programming ...
06:16:20 : Opening and parsing file: 0x495_FUS_Operator.bin
06:16:20 : File : 0x495_FUS_Operator.bin
06:16:20 : Size : 11584 Bytes
06:16:20 : Address : 0x08000000
06:16:20 : Erasing memory corresponding to segment 0:
06:16:20 : Erasing internal memory sectors [0 2]
06:16:20 : failed to erase memory
06:16:20 : failed to erase memory
06:16:20 : Failed to download FUS operator!
06:16:20 : Retry -- 2
2020-06-16 06:56 AM
What is the size of your application? does it fit within 0x08000000 and 0x08057000?
2020-06-16 06:58 AM
You should perform a mass erase of the user part of the memory => RDP set to 0xBB and then back to 0xAA before programming your application.
2020-06-16 07:31 AM
my data is between 0x08000000 and 0x08004D90
2020-06-17 11:13 PM
I could flash my app in 0x08000000. I only ignored the adress out of range error. My data is between 0x08000000 and 0x08004D90.
I performed a full erase but it didn't help :crying_face:
I have two boards . The same app in the other board works properly.
2020-06-18 05:49 AM
Just two things in last resort
1) Use hw reset as the default reset mode in the GUI of CubeProgrammer
2) There are many some digits hidden in the window dedicated to the load address that generate an “out of range�? value? I got some issue with that in the past.
2020-06-18 06:05 PM
here is my window
when i click on "ok" it downloads the binary. When I reconnect, in Device memory he appears in the wanted address 0x08000000
2020-06-19 12:25 AM
>>I have two boards . The same app in the other board works properly.
So it is a board issue. I will try to get more explaination on the "reserved" error.
I really dont udertsand why you get this "address out of range" error.
I hibk it is 2 different problems.
2020-06-19 01:17 PM
Ok.
could you get a look at my options bytes? to check if it is allright there
2020-06-21 11:01 AM
Yes. So could you download them here so that I can check them?
2020-06-21 05:06 PM