Forums

AVR Studio 4 debugging issues

Started by Unknown August 10, 2007
Hi, I am a beginner at using the atmega chip.  I am using codevision
to compile, AVR bootloader V2.1 to execute my program, but for
troubleshooting, my AVR Studio 4 is not working correctly.

When I open my project to debug, it does not list my source files.  I
want to be able to step through my program and check where it breaks.
I seem to only be able to see the disassembler.  I can open my source
file after the project is opened, but it doesn't appear to be linked
to the project.

Can anyone help me on this?  I've searched all through the internet,
is there any online manuals for using Studio AVR 4?  Also, not sure
what Win AVR is, do I need it?  Also, I don't have GCC, and I don't
really understand what that is, or if I need it.

The following is the log when I open my project:

Loaded plugin STK500
gcc plug-in: No WinAVR installation found. The AVR GCC plug-in can
still be used if you set up your own build tools.
Loaded plugin Atmel AVR Assembler
Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles
\AT90USB1287.xml
Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles
\AT90USB1287.xml
AVR Simulator: Please wait while configuring simulator...
AVR Simulator: AT90USB1287 Configured OK
Coordinator: The object file does not contain source code information.
Loaded objectfile: C:\cvavr\lib\atmel\m128_ex\M128_Dev.hex
Coordinator: The object file does not contain source code information.
Loaded objectfile: C:\cvavr\lib\atmel\m128_ex\M128_Dev.hex
Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles
\AT90USB1287.xml
AVR Simulator: Please wait while configuring simulator...
AVR Simulator: AT90USB1287 Configured OK
Coordinator: The object file does not contain source code information.
Loaded objectfile: C:\cvavr\lib\atmel\m128_ex\M128_Dev.hex

Thanks for your help on this.

Justin

In news:1186782896.672038.216810@d30g2000prg.googlegroups.com
timestamped Fri, 10 Aug 2007 21:54:56 -0000, jjurek3@gmail.com posted:
|----------------------------------------------------------------------|
|"Hi, I am a beginner at using the atmega chip.  I am using codevision |
|to compile, AVR bootloader V2.1 to execute my program, but for        |
|troubleshooting, my AVR Studio 4 is not working correctly.            |
|                                                                      |
|When I open my project to debug, it does not list my source files.  I |
|want to be able to step through my program and check where it breaks. |
|I seem to only be able to see the disassembler.  I can open my source |
|file after the project is opened, but it doesn't appear to be linked  |
|to the project.                                                       |
|                                                                      |
|[..]                                                                  |
|                                                                      |
|The following is the log when I open my project:                      |
|                                                                      |
|[..]                                                                  |
|Coordinator: The object file does not contain source code information.|
|Loaded objectfile: C:\cvavr\lib\atmel\m128_ex\M128_Dev.hex            |
|Coordinator: The object file does not contain source code information.|
|Loaded objectfile: C:\cvavr\lib\atmel\m128_ex\M128_Dev.hex            |
|[..]                                                                  |
|Coordinator: The object file does not contain source code information.|
|Loaded objectfile: C:\cvavr\lib\atmel\m128_ex\M128_Dev.hex            |
|                                                                      |
|Thanks for your help on this.                                         |
|                                                                      |
|Justin"                                                               |
|----------------------------------------------------------------------|

These hex files do not seem to have symbolic debugging information so
AVR Studio can not determine which source files correspond to the
machine code. Do not blame this on AVR Studio. Please check
Codevision's documentation for how to easily debug your
programs. Perhaps Codevision is supplied with a tutorial. I doubt that
the files which Codevision would produce for symbolic debugging would
be hex files.

|----------------------------------------------------------------------|
|"Can anyone help me on this?  I've searched all through the internet, |
|is there any online manuals for using Studio AVR 4?  Also, not sure   |
|what Win AVR is, do I need it?  Also, I don't have GCC, and I don't   |
|really understand what that is, or if I need it."                     |
|----------------------------------------------------------------------|

You do not need GCC. It is an alternative to Codevision. You do not
need WinAVR, it is basically GCC and some related things. It seems
that GCC with or without WinAVR would be somewhat tricky for you at
this stage.

Regards,
Colin Paul Gloster