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-22 02:17 AM
There is absolutely nothing wrong regarding the values of the option bytes.
So lets go back to basics:
Could you use the batch file I joint to this tread and use it in CLI mode?
Just adapt the paths to you own configuration. (path with ****************)
No need to update the FUS, lets focus on the RF FW.
In the end, there is may be a HW issue with your RF part on this specific custom board.
2020-06-22 10:44 AM
He complained about stm32wb5x_BLE_Stack_full_fw.bin (I found it in the batch file "SET RF_STACK_BIN=%BIN_PATH%stm32wb5x_BLE_Stack_full_fw.bin") . But the app was downloaded, and board didn't advertise.
Memory Programming ...
Opening and parsing file: stm32wb5x_BLE_Stack_full_fw.bin
Error: The file stm32wb5x_BLE_Stack_full_fw.bin does not exist, please check the file's path
Error: Failed to download image!
application programming
2020-06-22 02:26 PM
just add
echo %FWPATH%
echo %BIN_PATH%
echo %RF_STACK_BIN%
So that the complete path is exposed to determine where the error is in the path.
I expect the error to be in %FWPATH%
2020-06-24 01:24 AM
The error was in SET RF_STACK_BIN=%RF_STACK_BIN%stm32wb5x_BLE_Stack_full_fw.bin
When I runned the batch , echo %RF_STACK_BIN% returned to me ...\en.stm32cubewb_v1-4-0\STM32Cube_FW_WB_V1.4.0\Projects\STM32WB_Copro_Wireless_Binaries\stm32wb5x_BLE_Stack_fw.bin\STM32Cube_FW_WB_V1.4.0\Projects\STM32WB_Copro_Wireless_Binaries\stm32wb5x_BLE_Stack_fw.bin (a very strange path)
Then I changed like this SET RF_STACK_BIN=...\STM32WB5x\stm32wb5x_BLE_Stack_full_fw.bin then the error disappeared and echo %RF_STACK_BIN% returned a correct path.
But at the end of all the board didn't advertise.
2020-06-24 02:16 AM
If you got no error during the programming phase and in the end SFSA is 0x57, then the programming is correct.
The issue should be a HW one on the RF part. Wrong connection to the antenna, adaptive filter not correctly soldered...
2020-06-24 02:19 AM
thank you very much for the support, i will check the hw.