This question already has an answer here:

Is there a way of doing on-chip debugging of Arduino Uno (atmega328p) with gdb on the command line? I'm looking for something simplistic and excluding IDE solutions like Eclipse and Atmel Studio. I use VIM for programming and compile my code with a cmake build system provided by queezythegreat.

I had a look at my options but didn't get a clear answer to what tools I would need. Would gdb alone be enough or do I need something like openOCD?

Thank you for the help!


marked as duplicate by Chris Stratton, Finbarr, JRE, RoyC, W5VO Apr 24 at 13:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ Related, if not duplicate: electronics.stackexchange.com/questions/33948/… \$\endgroup\$ – Unknown123 Apr 20 at 13:19
  • \$\begingroup\$ Thanks for pointing that out. I had already looked at that post and the question/answers only consider debugging of MCU simulations. Also, the question is about six years old so I hoped to get an answer with currently available tools. \$\endgroup\$ – Kirjain Apr 20 at 13:28
  • 3
    \$\begingroup\$ Possible duplicate of AVR debugwire in Linux which actually has the details \$\endgroup\$ – Chris Stratton Apr 20 at 17:56