Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
vidamelanie
PostPosted: Aug 06, 2008 - 06:15 AM
Wannabe


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.
 
 View user's profile Send private message  
Reply with quote Back to top
kmr
PostPosted: Aug 06, 2008 - 06:23 AM
Raving lunatic


Joined: Apr 01, 2004
Posts: 3791
Location: New Mexico

That's a new one to me. If you don't get an answer here on the forum, you can send email to avr@atmel.com to get support from Atmel on your question.

_________________
Kevin Rosenberg
http://b9.com
http://kevin.hypershots.com
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
ka7ehk
PostPosted: Aug 06, 2008 - 06:31 AM
Raving lunatic


Joined: Nov 22, 2002
Posts: 6429
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
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
vidamelanie
PostPosted: Aug 06, 2008 - 05:24 PM
Wannabe


Joined: Mar 16, 2008
Posts: 66


Nope not trying to do a load through Raven.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Aug 06, 2008 - 05:43 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 28299
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?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
vidamelanie
PostPosted: Aug 07, 2008 - 05:05 AM
Wannabe


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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits