| Author |
Message |
|
|
Posted: Apr 11, 2010 - 05:02 PM |
|

Joined: Jul 09, 2009
Posts: 14
|
|
I found a new way to write fuse bits using WinAVR
Pls see the attachment for proof that it works.
just look at the following lines in the middle of the pic in the attachment.
Code:
AVRDUDE_FLAGS += -U lfuse:w:0xff:m
AVRDUDE_FLAGS += -U hfuse:w:0xd9:m
0xff is the lower fusebit setting and
0xd9 is the higher fusebit setting that i have set.
u can change those to the fuse bit that u have calculated.
so just add the above lines to the makefile.
To calculate fuse bits google fuse bit calculator. |
Last edited by neo_star on Apr 15, 2010 - 02:55 PM; edited 2 times in total
|
| |
|
|
|
|
|
Posted: Apr 11, 2010 - 06:19 PM |
|

Joined: Sep 05, 2001
Posts: 2497
|
|
I would avoid unneeded fuse bit changing.
Typically the fuse bits are constant for a whole project.
They must only be written once on a fresh AVR.
Peter |
|
|
| |
|
|
|
|
|
Posted: Apr 11, 2010 - 06:24 PM |
|

Joined: Jul 09, 2009
Posts: 14
|
|
| Then i think the line can be commented out in the make file once written into a fresh avr. |
|
|
| |
|
|
|
|
|
Posted: Apr 11, 2010 - 06:26 PM |
|

Joined: Jul 09, 2009
Posts: 14
|
|
| I posted this because some users may find using the command line a bit difficult. |
|
|
| |
|
|
|
|
|
Posted: Apr 12, 2010 - 02:13 PM |
|


Joined: Jul 18, 2005
Posts: 62281
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
In what sense is this a Tutorial? It just seems to be some random jottings and teaches nothing about how the 0xFF and 0xD9 values are determined.
Moderator. |
_________________
|
| |
|
|
|
|
|
Posted: Apr 15, 2010 - 02:32 PM |
|

Joined: Jul 09, 2009
Posts: 14
|
|
|
clawson wrote:
In what sense is this a Tutorial? It just seems to be some random jottings and teaches nothing about how the 0xFF and 0xD9 values are determined.
Moderator.
yeah it does not teach, but as a beginner myself i found it very hard to burn fuse bits using winavr without going to command line. i think u would appreciate wat i have done if u look the following terrible post for burning fuse bits using winavr.
http://www.avrfreaks.net/index.php?name ... mp;t=61161
i am pretty confident that u can find wat i have done even if u google it. |
|
|
| |
|
|
|
|
|
Posted: Apr 15, 2010 - 02:38 PM |
|

Joined: Jul 09, 2009
Posts: 14
|
|
|
|
|
|
|
Posted: Apr 15, 2010 - 02:55 PM |
|


Joined: Jul 18, 2005
Posts: 62281
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
Quote:
yeah it does not teach,
Then I fear you have mistaken the purpose of the Tutorials Forum |
_________________
|
| |
|
|
|
|
|
Posted: Apr 15, 2010 - 02:56 PM |
|

Joined: Jul 09, 2009
Posts: 14
|
|
|
clawson wrote:
Quote:
yeah it does not teach,
Then I fear you have mistaken the purpose of the Tutorials Forum
i think u have not read the entire post. just saw the first line and commented on it.
please look at the edited post. is that convincing.
the purpose of this post is not to teach what fuse bits are bit how to burn them into the chip. |
|
|
| |
|
|
|
|
|
Posted: Apr 15, 2010 - 03:31 PM |
|


Joined: Jul 18, 2005
Posts: 62281
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| Ah the old RetroDan trick of going back and editing the first post eh? Please yourself. |
_________________
|
| |
|
|
|
|
|
Posted: Apr 15, 2010 - 03:43 PM |
|

Joined: Jul 09, 2009
Posts: 14
|
|
|
clawson wrote:
Ah the old RetroDan trick of going back and editing the first post eh? Please yourself.
i am truly sorry i did not see the other tutorials posted here and they are really very descriptive. i should have been very descriptive. i assure future post will be flawless. as always comments are welcome. |
|
|
| |
|
|
|
|
|