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
EW
PostPosted: Sep 05, 2006 - 06:59 PM
Raving lunatic


Joined: Mar 01, 2001
Posts: 4953
Location: Rocky Mountains

A link to the AVR toolchain bug list can be found on the avr-libc home page, or here:

http://www.nongnu.org/avr-libc/bugs.html

This list contains GNU Binutils bugs, and AVR GCC bugs.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
dl8dtl
PostPosted: Sep 05, 2006 - 09:03 PM
Raving lunatic


Joined: Dec 20, 2002
Posts: 7276
Location: Dresden, Germany

The currently open bugs for avr-libc can be found here:

https://savannah.nongnu.org/bugs/?group=avr-libc

AVRDUDE:

https://savannah.nongnu.org/bugs/?group=avrdude

Finally AVaRICE (rather low volume, not many users are submitting
reports there):

http://sourceforge.net/tracker/?atid=425407&group_id=39505&func=browse

_________________
Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.
Please read the `General information...' article before.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
EW
PostPosted: Sep 05, 2006 - 09:48 PM
Raving lunatic


Joined: Mar 01, 2001
Posts: 4953
Location: Rocky Mountains

I've updated the master toolchain list to add the links (that Joerg gave above) to the avr-libc, avrdude, and avarice bug lists. I've also added a list of GDB bugs for the AVR target.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
BoltLatch
PostPosted: Jun 24, 2012 - 01:11 PM
Newbie


Joined: Jun 23, 2012
Posts: 2


This is my first foray into AVR micros. I gave up attempting to use AS6; too many hang-ups. I'm now rebuilding an old ATmega8a system using command-line avr-gcc, avr-as and avr-ld. Learning as I go, I've had to convert the original source directives from IAR to AVR-Gnu.

Presently, I'm stuck trying to generate a viable hex file from C and Assembly objects. Please anyone who's used avr-ld (or GNU ld), I could use your help. Post or send me sample linker scripts, if you have them.

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Jun 24, 2012 - 03:00 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18549
Location: Lund, Sweden

Quote:

This is my first foray into AVR micros. I gave up attempting to use AS6; too many hang-ups.

This is the second post where you claim this with no details.

I'm not saying that AS6 is without faults, but if you told us about them they might be resolved.

One way to get all the linker scripts would be to install the WinAVR package. Then you would also get the MFile utility, which has a template makefile where you can deduce what commands are needed to generate a valid Inte Hex file.

Personally, I've never actually invoked avr-ld literally, but have always relied on letting the compiler driver do this (i.e. avr-gcc).

In the MFile utility tempate makefile the link stage rule is

Code:
%.elf: $(OBJ)
   @echo
   @echo $(MSG_LINKING) $@
   $(CC) $(ALL_CFLAGS) $^ --output $@ $(LDFLAGS)


which might look like mumbo-jumbo, but essentially it does

Code:
avr-gcc <compiler_flags> <a_list_of_all_object_files> --output <name_of_ELF_output_file> <linker_flags>


Since the compiler flags will include the -mmcu flag the linker knows which linker script to pull. (I've never needed to tinker with an AVR linker script either).

The Hex file is produced by the avr-objcopy utility (using the ELF file as input).
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jun 25, 2012 - 09:58 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62292
Location: (using avr-gcc in) Finchingfield, Essex, England

Totally agree that you should use Mfile but if you don't want to download the whole of WinAVR get the .zip or tar.gz from here:

http://www.sax.de/~joerg/mfile/

You need tcl/tk to run it. To get a prebuilt copy for Windows go to http://www.tcl.tk/software/tcltk/8.0.html while for Linux use something like "apt-get install tcl" (Ubuntu).

In fact even without tcl/tk you can simply take the makefile_template file that is included and hand edit it for your own project (the Mfile utility just makes this editing a bit simpler using menu selections).

_________________
 
 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