I have a program which hangs. The actual bug is quite interesting, and the bug is somewhere in the intersection of compiler directives, ISRs, FreeRTOS and USB hardware. But for the time being I'm more into finding a good debug method.
I have a Atmel JTAGICE mkII available. The code is built from the command line in Cygwin using make and some scripts. I have AVR32studio 2.6 installed but only use it as an editor.
Until now I've been able to find most issues by inserting some GPIO toggles viewed on my 'scope or single-letter printout to UART. This time around the bug is harder to find.
I hope you can suggest a toolchain which isn't too far from what I've got and which is able to show me where in the code the MCU hangs.