Hello eveyone,
I wrote a C code in Atmel Studio for ATmega32. Now I want to debug it in proteus. When I use assembly code I can easily see the Assembly code to do "step in" "step over" and use a breakpoint etc. But when it comes to C programing, I cant see any code to debug it. I load .elf code in proteus.
Could anyone give me a help on this issue? How can I debug a C code in proteus?
- - - Updated - - -
I just found the problem my self!!
First, when you are going to build a new project you should choose "Create Firmware project" and define the microcontroller device, then choose WinAVR as a compiler on the same page...
If WinAVR is not installed already, click on compiler and install it!
easy ! peasy! but take me one day to realize that
Glad you have solved it, but that error message (or one very like it) can also occur when an error is detected within library code where only the object library has been linked in. Such library code typically does not have source code within your project. The key is to look at the PC and the linker map. (When I read the title, this was what sprang to my mind.)
Same (apparent) error but very different cause.
Susan