In an xmega project with display xplained, debugged using jtagice2, we have encountered a strange problem when using avrstudio. I remember that I have read about similar problems before where code behave different when device is debugged using studio and when it is running freely with no debugger connected, but I could not find the specific threads right now.
Case is that when code is debugged from studio, it behaves as expected, and its task is to write text to the display at given position.
But when we close down studio and disconnects jtag, re powering the device, the screen gets blanked every time text is to be written, then after a while text is written to display at correct position but everything else is gone.
First i thought that studio might have added breakpoints to code so we reprogammed the device, but with same result.
What i need is some input to start debugging and find the source of this behaviour. We thought it was related to uninitialized variables somehow, but this has been checked out. What could be the diference between running code using the debugger compared to run a fresh programmed device.
Thanks in advance