2024-10-11 09:20 AM - edited 2024-10-11 09:39 AM
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"
These are my settings of memory protection:
When I try some options to apply I get this:
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:
This happens when I try mass erase:
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:
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?