user level: newbie +idiot
studio 4.14 build 589
WinAVR-20080610\bin\avr-gcc.exe
Jtag cable II
Hi need some direction on this:
optimization level -O0
Was debugging code fine then at some point I noticed that the code would start simulating several lines down from the beginning. I have attached a screenshot. The yellow arrow shoes where the debug starts after I hit "RUN" button.
I see that the previous port on,off instructions are missing in the dissasembler view. As if they were optimized out... HOWEVER , when I hit run the target DOES execute the code above the yellow arrow....(Leds blink twice- not just once)
Can not set a breakpoint at the first PORTC=0XFE; (of course)
There are many other areas of code where I have inserted asm volatile ("nops") , to try to troubleshoot this, but I can't even set a breakpoint on those....
An idiots summary: It seems that some code is not recognized by the debugger but it is actually being run...why?
any ideas where to start with this?
thanks in advance ;-)
[img]http://www.flickr.com/photos/284...@N08/6501578757/[img]