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
neo_star
PostPosted: Apr 11, 2010 - 05:02 PM
Newbie


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
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
danni
PostPosted: Apr 11, 2010 - 06:19 PM
Raving lunatic


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
 
 View user's profile Send private message  
Reply with quote Back to top
neo_star
PostPosted: Apr 11, 2010 - 06:24 PM
Newbie


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.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
neo_star
PostPosted: Apr 11, 2010 - 06:26 PM
Newbie


Joined: Jul 09, 2009
Posts: 14


I posted this because some users may find using the command line a bit difficult.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Apr 12, 2010 - 02:13 PM
10k+ Postman


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.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
neo_star
PostPosted: Apr 15, 2010 - 02:32 PM
Newbie


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.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
neo_star
PostPosted: Apr 15, 2010 - 02:38 PM
Newbie


Joined: Jul 09, 2009
Posts: 14


A fusebit calculator

http://www.engbedded.com/fusecalc/

found this by just googling fusebit calculator
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Apr 15, 2010 - 02:55 PM
10k+ Postman


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

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
neo_star
PostPosted: Apr 15, 2010 - 02:56 PM
Newbie


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.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Apr 15, 2010 - 03:31 PM
10k+ Postman


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.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
neo_star
PostPosted: Apr 15, 2010 - 03:43 PM
Newbie


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.
 
 View user's profile Send private message Visit poster's website 
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