| Author |
Message |
|
|
Posted: Dec 17, 2011 - 06:47 AM |
|

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! |
|
|
| |
|
|
|
|
|
Posted: Dec 17, 2011 - 08:50 AM |
|

Joined: Feb 12, 2005
Posts: 16296
Location: Wormshill, England
|
|
|
|
|
|
|
Posted: Dec 17, 2011 - 11:08 AM |
|


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! |
_________________
|
| |
|
|
|
|
|
Posted: Mar 13, 2012 - 05:31 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Mar 13, 2012 - 05:34 PM |
|


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. |
_________________
|
| |
|
|
|
|
|
Posted: Mar 13, 2012 - 08:32 PM |
|


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