| Author |
Message |
|
|
Posted: Aug 06, 2008 - 06:15 AM |
|

Joined: Mar 16, 2008
Posts: 66
|
|
I get this error in AVR Studio when I try to connect in JTAGICE mk2 debug mode. Using atmega640
Coordinator: error loading object file
Not sure what this means...
Thank you in advance for any tips or advise for my situation. |
|
|
| |
|
|
|
|
|
Posted: Aug 06, 2008 - 06:23 AM |
|

Joined: Apr 01, 2004
Posts: 3812
Location: New Mexico
|
|
|
|
|
|
|
Posted: Aug 06, 2008 - 06:31 AM |
|


Joined: Nov 22, 2002
Posts: 7346
Location: Tangent, OR, USA
|
|
Coordinator is a term used by 802.15.4/Zigbee. It sounds like Studio thinks you are trying do load through a Raven?
Jim |
_________________ Jim Wagner
Oregon Research Electronics, Consulting Div.
Tangent, OR, USA
|
| |
|
|
|
|
|
Posted: Aug 06, 2008 - 05:24 PM |
|

Joined: Mar 16, 2008
Posts: 66
|
|
| Nope not trying to do a load through Raven. |
|
|
| |
|
|
|
|
|
Posted: Aug 06, 2008 - 05:43 PM |
|


Joined: Jul 18, 2005
Posts: 34381
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| Silly question but does the object file exist? Or is this simply telling you that you had build errors? If you do a clean and build what happens and specifically does the Build tab report success? |
_________________
|
| |
|
|
|
|
|
Posted: Aug 07, 2008 - 05:05 AM |
|

Joined: Mar 16, 2008
Posts: 66
|
|
|
clawson wrote:
Silly question but does the object file exist? Or is this simply telling you that you had build errors? If you do a clean and build what happens and specifically does the Build tab report success?
Glad you mentioned it. AVR Studio was not finding the elf file because I am using a Makefile that was not generated by AVR Studio. I was using a Makefile included with the source code I downloaded from the SoR website. So I had to do the following to get the object file (Axon.elf) recognized in the build configuration:
under debug menu set the debug platform and device to JTAGICE mkii.
Then change the following lines in Admin's makefile (from SoR forum):
# Debugging format.
# Native formats for AVR-GCC's -g are stabs [default], or dwarf-2.
# AVR (extended) COFF requires stabs, plus an avr-objcopy run.
DEBUG = dwarf-2
The option DEBUG='stabs' must be changed to 'dwarf-2' so that the object file can be used by the debugger.
AND
In configuration properties you have to set up the location where the object file (i.e. Axon.elf) is located in the filesystem if you use Admin's makefile (from SoR forum).
'clean' before you build your object file.
And then you build and debug away with jtag. |
|
|
| |
|
|
|
|
|