Ok, let's assume you have a compiled program - probably Circle.hex - in your working folder. primer1 is connected, openocd is runnung. telnet to openocd with
Get som info about primer flash (optional, but nice too see)
stm32x is locked after boot, so unock it:
Now you can flash your hex file:
If command sometimes fails, just retry both lines. Now you can start gdb to debug the program:
gdb sends commands with "monitor" prefix directly to openocd, so the "monitor reset" will be "reset".
Here's a console dump from the beginning of a gdb session:
Happy coding :-)
Last edited by zwieblum (2009-02-13 10:27:05)