Pretty frustrated after several hours of experiments and research I'm running out of ideas what I could try.
Hope someone on this great forum can help or give me a hint.
Trying to do debugging on my atmega32U4 target using the AVR-dragon board and JTAG.
I have sucessfully done debugging on this project earlier, same configuration, except that it might have been with Atmel Studio 6 when I did the last debugging.
Now I'm using Atmel studio 7.
It's a C language Project.
Both, debug and release versions build without problem and a bunch of files are generated in the respective directories, including the elf file which I program into the target via Dragon/JTAG.
I can start the debugger, look at memory areas, but strange things happen:
1.) It does not break at the first instruction in main, it stops several lines before main in the middle of a comment block.
2.) Single stepping from there, it is advancing line by line in that comment text block.
3.) I can set Halt points but either it does not stopn there or it stops a places that should not be reached.
4.) In the watch window I can see some older variables, which have been used in the project for quite a while, but they do not always show the right values. I cannot see content of recently added variables ("unknown identifier")
It looks like something is messed up or no configured right in the project. Maybe the debugger works with old/previous symbol or mapping or linker information?
Any help is appreciated and I'd be happy to provide project and compiler setting etc.