cancel
Showing results for 
Search instead for 
Did you mean: 

Error during flashing STM32WB5MMGH6U with cubeProgrammer.

zax
Visitor

Hi,
I tried to flash stm32wb5mm-dk board with cubeProgrammer with image of 900kB. I am getting error message " Sector Erase operation has failed at least for one of the specified existing sectors"

zax_0-1728661689906.png

These are my settings of memory protection:

zax_1-1728661757435.pngzax_2-1728661828640.png

When I try some options to apply I get this:

zax_3-1728661897234.png

I tried to change RDP level from 1 to 0 but nothing changed. I also tried with st-utilty but nothing again. 
In one moment I lost connection between MCU and ST-link(The interface firmware FAILED to reset/halt the target MCU) but I managed to fix it with connecting BOOT0 and VDD. After that I couldn't even read memory:

zax_4-1728662174140.png

This happens when I try mass erase:

zax_5-1728662206748.png

I tried with updating st-link firmware, different versions of cubeProgrammer and st-utilty, different cables, additional power supply but still nothing. 
These are some messages when I try to flash:

zax_6-1728662689291.pngzax_7-1728662700117.png

I am not even able to download image from cubeIDE anymore.
After all these attempts, I ordered one more DK, and I Immediately tried to flash board with cubeProgrammer but It failed again! I tried mass erase with that new board and it was successful, but again failed to flash image. In one moment durring trying to flash and settings changing I lost connection with MCU but this time BOOT0 and VDD doesn't help. Is there any chance to make it work again?
For both boards I for sure know that I didn't change RDP level to 3.
Only one thing has left, and that one is J-LINK and tag-connect connector (I don't have it still) ... 
I really can't believe that new boards can't be flashed.

 

IS THERE ANY CHANCE TO FIX THIS?

0 REPLIES 0