How to use the GDB (Gnu Debugger) and OpenOCD for microcontroller debugging – from the terminal?
As I remember it I had some trouble with the straight load command too, so I switched to “flash write_image erase my_project.hex 0 ihex” .. obviously I was using hex files but it looks like elf files should work to, see http://openocd.org/doc/html/Flash-Commands.html … the good thing about this command is it also erases only the … Read more