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
nleahcim
PostPosted: Dec 17, 2011 - 06:47 AM
Raving lunatic


Joined: Feb 19, 2003
Posts: 2233
Location: Seattle, WA

Hi - I haven't used AVR Studio in a while... Last I remember I had to manually set fuse bits. Is there any way for the fuse bits to be set at the same time that my code is loaded on an AVR?

Thanks!
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
david.prentice
PostPosted: Dec 17, 2011 - 08:50 AM
10k+ Postman


Joined: Feb 12, 2005
Posts: 16296
Location: Wormshill, England

Yes.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
clawson
PostPosted: Dec 17, 2011 - 11:08 AM
10k+ Postman


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

If using avr-gcc you can use this:

http://www.nongnu.org/avr-libc/user-man ... _fuse.html

otherwise AS4 has a dialog where you can create a composite "production ELF file" from code, eeprom and flash settings which are all combined into the same file.

If you are lucky AS5 also has this. If you are even more lucky it may work!

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
pblase
PostPosted: Mar 13, 2012 - 05:31 PM
Wannabe


Joined: Nov 02, 2006
Posts: 57


AS5 seems to generate the .elf file automatically from the .hex and .eep files, at the same time. I can't find any place to tell it to add the fuses to the .elf file. If somebody could point me to the proper dialog I would be grateful.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 13, 2012 - 05:34 PM
10k+ Postman


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

Quote:

AS5 seems to generate the .elf file automatically from the .hex and .eep files, at the same time.

avr-gcc has always done that. One way to get fuse info in there too is to follow exactly the link I gave in the previous post. But this is setting fuses programmatically not through a fancy GUI.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
meolsen
PostPosted: Mar 13, 2012 - 08:32 PM
Resident


Joined: Jul 27, 2011
Posts: 541
Location: Atmel, Norway

To add to clawsons answer, this is also in the documentation for Atmel Studio. See http://www.atmel.no/webdoc/atmelstudio/ ... emoryTypes

_________________
:: Morten
 
 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