I discovered the ATmega1284P's use JTAG for debugging instead of debugWire, although the data sheet mentions debugWire. The JTAG connector on my ICE is 0.050 pin spacing, so I ordered some 2x5 0.050 x 0.050 headers and some .050 grid perfboard, so I can make a little board to connect to the bare ATmega1284P with the ICE. I have never used JTAG, so once I get it wired up and go to debug does it work like debugWire and set/unset the JTAGEN and OCDEN fuses for me, or do I do it manually. Are there any special tricks required that I should know about. I am programming the ATmega1284P with ISP and my AVRISP mkII and that is all good, but no debugging except with JTAG, hence the current project. Any comments in advance appreciated. Otherwise, I expect to have questions as I move along the JTAG path. Should be fun.
Thanks in advance,