(Studio Ver 7.0.2397, ATMega1284p, JTAGICE mkII)
Sometimes my debugging goes fine and other times it can take a long time to program flash (goes in spurts with delays of 10 seconds or more before the "percent complete" counter starts moving again).
I also have times where the debug session terminates with "The application is in break mode" for no reason I can find.
"step over" and "step in" seem to take forever sometimes (10-20 seconds).
There will be times when I can't get the JTAG to connect at all. Then after many tries at combinations of a) power off/on the target board, b) power off/on the JTAGICE, restart Atmel Studio, etc. it will start working for awhile.
I'm thinking that, for whatever reason, there are data errors between the target and the JTAGICE but they will come and go.
It seems like, even when it can't program flash reliably, reading the fuses seems to work - but, I assume that's a very short exchange so may get fewer errors.
I got this JTAGICE mkII years ago. It's in what looks like a 'standard' blue "AVR Studio" semi-clear case but I can't swear that it wasn't some kind of knockoff.
This is getting very annoying and greatly impeding my progress.
Can anyone think of why this would be happening?
Failing a solution - I don't see me moving away from ATMega's for a long time. What would be the best JTAG device for me to get for use with Studio?
Thanks in advance ...
(a frustrated) Chuck Hackett