First off, I’m really enjoying the first few posts here on Interrupt! Thank you for taking the time to publish clear guides on these topics.
A couple of comments on the above post:
First up, it took me way longer than I’d care to admit to figure out how to use the openocd.cfg you created in the post. For anyone who is eqaully clueless, you can stick the cfg file whereever you plan on running openocd from, and you use the command
openocd -f openocd.cfg
to actually run it.
Also, I found that on my system, I needed to combine the following lines:
# Flash the firmware
# Read it back and verify it
# Reset the board
into a single line:
program your-firmware-file.bin verify reset
To properly execute the verification and target reset. It gave an error otherwise.
I’m really looking forward to seeing the rest of this series!