FUS and Wireless Stack Programming Error
Hello
I'm working with a custom STM32WB55RG board which initially was working properly, reading documentation regarding failures and STM32WB Firmware Upgrade Service upgrade.
I tried to upgrade and follow the steps indicated, I also tried to follow several solutions that are in the forum but none of them succeeded to give me a solution.
I connect my card to the CubeProgrammer program.
16:37:27:317 : Disconnected
16:37:27:318 : Disconnected from device.
16:37:28:025 : UR connection mode is defined with the HWrst reset mode
16:37:28:135 : ST-LINK SN : 066AFF554857868367102407
16:37:28:135 : ST-LINK FW : V2J45M31
16:37:28:135 : Board : NUCLEO-WB55RG
16:37:28:135 : Voltage : 3.26V
16:37:28:135 : SWD freq : 4000 KHz
16:37:28:135 : Connect mode: Normal
16:37:28:135 : Reset mode : Software reset
16:37:28:135 : Device ID : 0x495
16:37:28:135 : Revision ID : Rev X
16:37:28:135 : flash loader C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/FlashLoader/0x495.stldr is loaded
16:37:28:135 : Debug in Low Power mode enabled.
16:37:28:334 : UPLOADING OPTION BYTES DATA ...
16:37:28:334 : Bank : 0x00
16:37:28:334 : Address : 0x58004020
16:37:28:334 : Size : 96 Bytes
16:37:28:335 : Bank : 0x01
16:37:28:335 : Address : 0x58004080
16:37:28:335 : Size : 8 Bytes
16:37:28:335 : UPLOADING OPTION BYTES DATA ...
16:37:28:335 : Bank : 0x00
16:37:28:336 : Address : 0x58004020
16:37:28:336 : Size : 96 Bytes
16:37:28:336 : Bank : 0x01
16:37:28:336 : Address : 0x58004080
16:37:28:336 : Size : 8 Bytes
16:37:28:336 : UPLOADING ...
16:37:28:336 : Size : 4 Bytes
16:37:28:337 : Address : 0x58004080
16:37:28:337 : Read progress:
16:37:28:337 : Data read successfully
16:37:28:337 : Time elapsed during the read operation is: 00:00:00.001
16:37:28:337 : UPLOADING ...
16:37:28:337 : Size : 1024 Bytes
16:37:28:337 : Address : 0x8000000
16:37:28:337 : Read progress:
16:37:28:341 : Data read successfully
16:37:28:341 : Time elapsed during the read operation is: 00:00:00.007
Firmware Upgrade Services Login

I verify in the memory address that the fus is found.

Pin configuration


Now I am going to program the Wireless Stack but it fails to program.
LOG
16:47:20:713 : Opening and parsing file: stm32wb5x_BLE_Stack_full_extended_fw.bin
16:47:20:726 : Memory Programming ...
16:47:20:726 : File : stm32wb5x_BLE_Stack_full_extended_fw.bin
16:47:20:728 : Size : 184.18 KB
16:47:20:730 : Address : 0x080C5000
16:47:20:733 : Erasing memory corresponding to segment 0:
16:47:20:736 : fail @0xFEEEFEEE
16:47:20:736 : Memory Erase via FlashLoader!
16:47:20:737 : Memory erase...
16:47:20:764 : halt ap 0
16:47:20:786 : Erasing internal memory sectors [197 243]
16:47:20:786 : Init flashloader...
16:47:20:787 : halt ap 0
16:47:20:789 : run ap 0
16:47:20:789 : halt ap 0
16:47:20:789 : Loader sector erase...
16:47:20:799 : run ap 0
16:47:20:800 : halt ap 0
16:47:20:803 : Error: failed to erase memory
16:47:20:832 : Error: failed to erase memory
16:47:20:853 : RUNNING Program ...
16:47:20:854 : Address: : 0x080C5000
16:47:20:854 : STLink read from (0x080C5000) returned: 0x00000020
16:47:20:855 : 2nd try fail!
16:47:20:855 : STLink read from (0x080C5004) returned: 0x00000020
16:47:20:859 : 2nd try fail!
16:47:20:860 : Warning: The core is locked up
16:47:20:889 : Start operation achieved successfully
Another recurring error that I have is that the +M0 address is at 00000000, in one of the forums and solutions say that I program it at 00008000 in the memory address 0x5800040C.
I can program it but it gets deleted again.
