I'm developing with the GNU and AVRStudio (JTAGICE). When I compile my
project with the provided makfile template, create the ext coff
file and
load it into AVRStudio460 the GUI does not show the PC inicator
(yellow
arrow) where it should be but some lines above
E.g. I have a code that looks like this:
01:void subfunc(void)
02:{
03: ..do something..
04:}
05:
06:void main(void)
07:{
08: subfunc();
09:}
After loading it into AVRStudio the yellow arrow points to line 04!
but not
line 06 or 07.
I took a look into .lss and .map files as well as into the disassembly
window of AVRStudio and it seems that there were no "debug entries"
generated to the function "init code" of main. The only entries are
for line
04 (return) and line 08 (subfunc call).
This problem occurs not only for the main function but also for all
functions. You can imagine that stepping through such a mess is no
fun.
Maybe I make a mistake with the compiler options. Does anybody have a
solution for this problem?