It appears that when debugging ATmega64 targets using JTAG interface with the new JTAG ICE 3 in AVR Stuido 6 it looses the global interrupts enable bit sometimes when singlestepping?
Running 6.0.1966 sp2.
I do not have any code that ever permanently disables interrupts again but I do have a few routines using the ATOMIC macro. sei() happens after init and there is no use of cli() yet when i debug with run to breakpoint and then continue everything is fine, but singlestep over a simple "if (var==1)"-like test the sreg:i is cleared upon completion of step.
It doesn't always happen, but like every 1 of 4 steps or less.
I have a ISR ticking away in the background at every 20ms and it updates some counters and returns. It should not interfere with singlestep except cause it to take a detour, or atleast it used to do this on old debuggers/studio releases. I suspect debugger uses a workaround to this by disabeling the interrupts for the singlestep but fails to re-enable. Or something of that sort...
I definately suspect a bug here...
Can someone confirm?