I'm using proteus7 to simulate an atmega16 communication with a simple LCD. As said in proteus7, I should provide .elf or .cof for source code level debug. I'm using WinAVR2008 in WinXP, and the default Makefile:
DEBUG = dwarf-2
Well, proteus7 accept the .elf, and can show some of the source code, but the code line and PC pointer are totally wrong.
Next, I try "make coff", but get warning:
avr-objcopy: main.elf: no recognized debugging information. Using this .cof in protues7 will get error "Access violation in LOADER.DLL or AVR.DLL".
Finally I have tried DEBUG = stubs, avr-objcopy didn't compliant any more, but the access violation still occurred in protues.
Anyone got the same behavior? So, how to conquer the problem? Thank you.