Skip to main content
Associate
Feb 25, 2026 10:41 AM UTC
Solved

Cannot HAL_FLASH Erase from 0x08080000 to 0x080F4000 (OpenBL)

Hello, 

I'm trying to DFU update some binaries into 1Mbyte STM32WB55CG Flash with OpenBootloader Custom APP. I've tried before with NUCLEO-WB55RG board without any problem, but with CG I just can erase/write until the first Block (512KB) of the memory. Always crashes from there.

I've checked the option bytes and FUS parameters and everything looks normal. I don't know if you have some idea why this behavior. In the post attached some captures. 

I've got this contact @Alan PORTE from a colleague, but any help will be welcome. Thank you.

FUS/NUCLEO-WB55RGFUS/NUCLEO-WB55RG

FUS-WB55CGFUS-WB55CG

OB/WB55CGOB/WB55CG

OB/NUCLEO-WB55RGOB/NUCLEO-WB55RG

DFU-ERRORDFU-ERROR

Sergi

 

 

Alan PORTEBest answer
ST Employee
Feb 25, 2026 3:14 PM UTC

Hi @domo94,

I don't think the issue is coming from STM32CubeProgrammer.
Here the CLI log from my STM32WB55CG (Nucleo-WB55 USB dongle):
image.png

Please, share a picture of the marking on your device package.
You will maybe need to go through quality.

Best Regards,
Alan
ST MCU Support Team

5 replies

ST Employee
Feb 25, 2026 2:44 PM UTC

Hi @domo94,

Thanks for the screenshots.
At first glance, I don't see anything blocking from your Option Bytes.
On my side, I did some tests with my P-Nucleo-WB55.USBDongle (which is a STM32WB55CGU6), and so far I'm not facing your issue. 

If you have a P-NUCLEO-WB55.USBDongle, then it’s worth a try.
Are you facing this problem with STM32CubeProgrammer too? Or only with dfu-util? 
Try to write or erase at 0x08080000 thanks to STM32CubeProgrammer.

Below dfu-util log of download test (not OpenBL) above 0x08080000:

image.png

In order to be fully aligned on the setup, please consider to share your code.

Best Regards,
Alan
ST MCU Support Team

domo94Author
Associate
Feb 25, 2026 2:55 PM UTC

Something interesting. When programming through CLI. uC info is wrong:

Says that CG has 512KB of NVM when it has 1MB:

WB55CGWB55CGNUCLEO-WB55RGNUCLEO-WB55RG

Sergi

Alan PORTEBest answer
ST Employee
Feb 25, 2026 3:14 PM UTC

Hi @domo94,

I don't think the issue is coming from STM32CubeProgrammer.
Here the CLI log from my STM32WB55CG (Nucleo-WB55 USB dongle):
image.png

Please, share a picture of the marking on your device package.
You will maybe need to go through quality.

Best Regards,
Alan
ST MCU Support Team

domo94Author
Associate
Feb 25, 2026 3:17 PM UTC

My bad, we bought a STM32WBCE. Big mistake. 

Thank you for your time.

Regards,

Sergi 

ST Employee
Feb 25, 2026 3:19 PM UTC

No worries, thanks for the prompt confirmation!

Don't hesitate to post any question/issue in the ST Community.

Best Regards,
Alan
ST MCU Support Team