Open ivankravets opened 6 years ago
Maybe these can be used as a reference: https://www.avrfreaks.net/forum/tutsoftgcc-avr-debugging-using-gdb-and-avr-dragon-under-linux-ubuntu https://github.com/Lahorde/arduino_avr_template_avr_plugin/blob/master/README.md http://dspace.org.nz/?p=593
I don't see why this functionality couldn't be implemented into PlatformIO to simplify the whole process and make it a one-click procedure (as advertised) for debugging AVR.
hello, have you seen this? https://github.com/dcwbrown/dwire-debug
@aster94 I came across that today and was very hopeful of making use of it... buuuuut I was bummed to find that atmega16 doesn't have the capability to use it, only JTAG. I keep coming across avarice and may look into that more.
Hi @ivankravets , I would love to be able to debug on my arduino uno. Is there any progress on this feature? Thanks
Highly requested feature.
It looks like it would be possible to use AVaRICE debugger server to interface GDB with JTAG/ICE debugger. Someone on PlatformIO forums was already trying to use it with mixed results: https://community.platformio.org/t/atmega32-debugging-with-avarice-and-avr-gdb/15960
Hello, I would also like to see AVR debugger support in PlatformIO, even though I can debug just fine over the command line.
Attached 2 documents that document how to debug using ONLY open-source software the Atmega 328p and Atmega 2560 using USB AVR JTAGICE MKII-CN:
debugging-atmega328_README.pdf
debugging-atmega2560_README.pdf
If a developer of PlatformIO is interested, I am willing to ship a USB AVR JTAGICE MKII-CN FOR FREE as donation, but only to a developer that can prove (by commits) they are actively involved in the project. Thanks!
@ivankravets any updates about debugging AVR?
I'm the CI maintainer of the AVaRICE program now, which is supposed to be able to use several debugging probes (Atmel-ICE, AVR Dragon, mEDBG, eDBG, ...) to open a GDB server. After some testing on real hardware (got an ATMega328P XPlained Mini with mEDBG probe on the way) and packaging of binaries I'll then be excited to bring these improvements into PlatformIO for AVR debugging support.
In parallel I've asked Microchip to expand their Python libraries (microchip-pic-avr-tools/pyedbglib) with a possible GDB sever as another posibility here.
I am making slow but steady progress with AVaRICE on a ATMega328P XPlained Mini (mEDBG) board, incorporating a few patches, recompiling avr-gdb with XML support, and now I got PlatformIO + avarice + avr-gdb to load the firmware binary through debugWire, set a breakpoint and have it stop. Line by line debugging of the chip actually works.
Excited to test more and make it better.
Problems
So, Microchip is not interested in the free and multi-platform debugger for AVR.
You can try to reach them personally and ask about help https://microchipsupport.force.com/s/