Re:Making a low level Linux debugger, part 3: our first program
by brokenmachine on Tuesday July 10, 2018 @09:27PM
(#17503728)
Thanks for the info. I did buy a knockoff J-Link but haven't got around to trying it yet.
I've only used the Arduino Mini/Micro so far (with Atmega328 or Atmega32u4). Is it possible to debug on those?
Re:Making a low level Linux debugger, part 3: our first program
by strong_silent_t on Wednesday July 11, 2018 @04:05PM
(#17509891)
Not sure, I haven't used that platform personally, there is probably a debugging interface to the chip but it will probably require different hardware/software.
I used the J-Link but I wanted to do it on Linux, so I used the JLink GDB Server along with the GDB build that comes with the Arduino IDE. It probably takes me a good 5 minutes to get everything set up, but the basic stuff works: breakpoints, stack trace, reading and writing memory locations.
The setup is a little convoluted, I'm not sure if there is a better way, but here are my notes: