AVR chip debugging....suggestions/tips/tricks?

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
winneymj
 
Posts: 15
Joined: Mon Apr 25, 2011 7:51 pm

AVR chip debugging....suggestions/tips/tricks?

Post by winneymj »

Hi,
I have been working with Arduino UNO for a a couple of years and during this time the "Serial.println()" methodology of debugging has been sufficient.
Now that I have started working with ATtiny chips and also creating my own circuits with my embedded AVR chips....I have noticed that the Serial output kind of debugging has its limitations.
I have been playing with interrupts and timers and they can often get very upset with Serial output halting the processing completely.
I have connected LED's to pins to also give me a clue of where the code is executing....but again this is not ideal.
I do see that Atmel Studio 6 allows for step by step debugging of a chip.
Does anyone have experience with doing this kind of debugging?
What debugger device should I consider.....general tips?

Thanks
Mark

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: AVR chip debugging....suggestions/tips/tricks?

Post by adafruit_support_rick »

I use the Atmel JTAGICE3 - it's inexpensive and it works.

User avatar
lyndon
 
Posts: 281
Joined: Tue Mar 29, 2011 5:28 pm

Re: AVR chip debugging....suggestions/tips/tricks?

Post by lyndon »

Second recommendation for JTAGICE. Mine was free ;-)

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

Return to “Microcontrollers”