Just started working with my Olimex JTAG programmer and I’m having some trouble.
Target = Mega162, Compiling on WinAVR, Using AVRStudio 4.10 for debugging. JTAG device is connected to laptop via USB serial adaptor.
I can get the target to load and run with functional breakpoints. The problem comes in when I try to pause, reload the program, restart execution, etc. in that I occasionally get the blue screen of death and my system restarts.
I have tried disabling things such as my anti-virus & firewall as well as testing two different USB adaptors. No difference. The frustrating thing is that there is no pattern… sometimes I can go an hour without a problem, sometimes it happens on the first run.
Has anyone else experienced this or have any advice?
So after another night of scratching my head, I think I may be onto something. The problem seems to be related to projects using mixed c/asm. Particularly when single-stepping or pausing execution through the asm parts.
This only seems to be so when debugging using COFF files; ELF files seem to be OK. In fact, when using COFF files, my assembly source file is not opened in AVR Studio.
Does anyone else here do mixed c/asm WinAVR projects?