Debugger options

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
cepwin
 
Posts: 9
Joined: Wed Nov 29, 2017 10:08 pm

Debugger options

Post by cepwin »

I have a metro 328 on the way as well as a trinket and other avr/arm boards. I'm looking to be able to use atmel studio to debug and code. Is the segger jpeg edu a good option vs atmel-ice? Since I'm doing personal projects it seems its a much more economical option but I'm not 100% clear if I'm correct.
Thanks!

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Debugger options

Post by adafruit_support_mike »

The Segger will work with 32-bit microcontrollers, but not with 8-bit devices like the ATmega328 or the Trinket's ATiny85. For those, you need an SPI programmer like the USBtinyISP:

https://www.adafruit.com/product/46

User avatar
cepwin
 
Posts: 9
Joined: Wed Nov 29, 2017 10:08 pm

Re: Debugger options

Post by cepwin »

Thanks! I have that kit (haven't put it together yet) but I thought it was a programmer only, not a debugger. The description only mentions programming not debugging. Am I mistaken?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Debugger options

Post by adafruit_support_mike »

No, the USBtinyISP is only a programmer.

The ATmega328P uses Atmel/Microchip's DebugWire protocol, which among other things is a form of obfuscation. The messages going in and out of the chip are encoded, and the Atmel-ICE translates them to/from values the IDE can turn into human-readable information.

To debug the ATmega family, you pretty much need the Atmel-ICE and AVR Studio.

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”