Problems with OpenOCD
I just developed the product and meet the deadline, released the code to Testing.
Now I need to make some changes, but I can’t get the debugger to run on the Nucleo-32.
I keep getting “Error erasing flash with vFlashErase packet”.
The OpenOCD console reports:
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Error: Target not halted
Error: failed erasing sectors 0 to 5
Error: flash_erase returned -304
Error: address + si
I ran ST-LINK and erased the code on the processor, the erase was successful, the processor (STM32L031K6) is now blank.
I’ve unplugged the Nucleo board several times and I’ve reboot the computer 3 times.
I don’t know if rebooting helps, but I don’t know anything else I can do.
Part of the frustration is that there is no information on what to do or what could be wrong, it took some digging to figure out that OpenOCD was causing problems.
We need some information on how to debug this issue - how these pieces work together.
It’s all just a mystery.
-Matt