Option Byte Programming failed
Good Day.
I have created a board and some program easily through SWD port and some struggle.
The error i am getting In STM32CubeProgrammer is:
---------------------------------------------
08:35:51:413 : Reconnected !
08:35:51:413 : Success with Time elapsed during Reconnect: 4314 ms
08:35:51:413 : UPLOADING OPTION BYTES DATA ...
08:35:51:414 : Bank : 0x00
08:35:51:414 : Address : 0x58004020
08:35:51:414 : Size : 104 Bytes
08:35:51:414 : Reading data...
08:35:51:414 : r ap 0 @0x58004020 0x00000068 bytes Data 0x000000AA
08:35:51:414 : OPTION BYTE PROGRAMMING VERIFICATION:
08:35:51:414 : Expected value for Option Byte "nSWboot0": 0x0, found: 0x1
08:35:51:414 : Option Byte Programming failed
08:35:51:415 : Failed to set nSWboot0=0 nboot1=1 nboot0=1
---------------------------------------------------------------------------------------------
I am trying to load
stm32wb5x_FUS_fw_1_0_2.bin
to start address 0x080EC000
on new stm32wb55RG
Even when trying to download a Hex file to program space 0x8000000
-----------------------
08:50:41:316 : Number of segments: 1
08:50:41:316 : segment[0]: address= 0x8000000, size= 0x8B3E
08:50:42:675 : Memory Programming ...
08:50:42:675 : Opening and parsing file: C-MX-WLB-AE-0013.hex
08:50:42:713 : File : C-MX-WLB-AE-0013.hex
08:50:42:714 : Size : 35646 Bytes
08:50:42:714 : Address : 0x08000000
08:50:42:714 : Erasing Segment <0> Address <0x08000000> Size <35646>Bytes
08:50:42:714 : Erasing memory corresponding to segment 0:
08:50:42:714 : Memory erase...
08:50:42:717 : halt ap 0
08:50:42:717 : w ap 0 reg 15 PC (0x20000000)
08:50:42:717 : w ap 0 reg 17 MSP (0x20000500)
08:50:42:718 : w ap 0 reg 16 xPSR (0x01000000)
08:50:42:718 : w ap 0 @0x20001000 0x00000200 bytes Data 0x00000000
08:50:42:718 : w ap 0 @0x20000000 0x00000004 bytes Data 0x00000000
08:50:42:953 : w ap 0 @0x20000004 0x00000BC8 bytes Data 0xFFFFFF80
08:50:42:953 : Erasing internal memory sectors [0 8]
08:50:42:953 : Init flashloader...
08:50:42:953 : halt ap 0
08:50:42:953 : w ap 0 reg 0 R0 0x00000001
08:50:42:953 : Loader sector erase...
08:50:42:954 : failed to erase memory
08:50:42:954 : failed to erase memory
---------------------------------------------------------------------------------------------------