1

I'd really like to be able to debug on i.e. an Atmega328p on Linux with Eclipse as described on avr-eclipse.sourceforge.net

After quite some research, it seems an JTAGICE mkII should work fine with both avrdude and AVaRICE. But a JTAGICE mkII seems outdated and is quite expensive, besides the clones from Kee Electronics and Waveshare which seem to work fine.

The latest AVaRICE from SVN supports JTAGICE3 but as far as I could find out only with firmware 2.x. There is also the Atmel-ICE Basic but even though it looks similar I was told it is not a JTAGICE3 so it probably won't work with AVaRICE.

So, the only way is to go for one of those JTAGICE mkII clones or is there anything else that works on Linux with Eclipse?

Torsten Römer
  • 487
  • 2
  • 7
  • 18
  • In case anyone is still looking for a way to debug AVRs on Linux, see my comment on https://electronics.stackexchange.com/questions/563910/what-is-the-best-way-to-debug-an-avr-microcontroller-using-the-command-line#comment1541137_563910. Bloom supports the MPLAB SNAP, which is a fairly cheap debug tool. Also works with the Atmel-ICE and the Power Debugger. Disclaimer: I am the author of Bloom. – navnav Sep 27 '21 at 23:16

2 Answers2

1

I own ICE, but I do not remeber is it working properly in Eclipse. Avrdude is friendly with ice but only as programmer.

Check please here:

http://www.avrfreaks.net/forum/atmel-ice-and-linux

a_edx
  • 11
  • 4
  • Interesting thread which confirms what I found out but I wonder why nobody mentions the JTAGICE mkII clones since I have read that at least the Kee Electronics one works. And I really don't feel like debugging or even developing on Windows. – Torsten Römer Feb 23 '16 at 20:39
1

To provide a partial answer to my own question:

I have contacted both Kee Electronics and Waveshare about Linux compatibility of their JTAGICEmkII clones. Waveshare just pointed me to a tiny FAQ that says nothing about Linux compatibility, and Kee Electronics said their debugger is fully compatible with the JTAGICEmkII on Windows but they don't have personal experience with Linux.

So I got myself a used Atmel JTAGICEmkII and tried it out.

It works fine as programmer, and also debugging works (also in Eclipse), besides that execution won't stop at the breakpoints, which I think is related to debugWire. A usable workaround is to set permanent breakpoints.

Here is a related question with some details.

For anyone interested, I've written down all I have learned about AVR debugging (with debugWire) on Linux with Eclipse here.

I'll be happy to try out any suggestion and update the document.

Torsten Römer
  • 487
  • 2
  • 7
  • 18