Go Down

Topic: How to make an Arduino-compatible minimal board (Read 6075 times) previous topic - next topic

crchisholm

#30
May 15, 2012, 10:14 pm Last Edit: May 15, 2012, 10:21 pm by crchisholm Reason: 1
Ok according to avrdude using -v my fuses are currently....
lfuse = 0x62
hfuse = 0xD9
efuse = 0x7  (07 I guess)

according to the simulator in AVR Studio, I need lfuse to be FF, so it seems that I should be able to use avrdude to make the changes like this...

avrdude -c usbasp -p m328p -U lfuse:w:0xff:m

I am assuming that this will change the lfuse and leave efuse and hfuse as they are.  

Does this seem to be the right direction?  
(it almost seems that I should be able to do it in AVR Studio, but don't know how to get it to recognize my usbasp)
Charlie R Chisholm

Nick Gammon

Yes that should do it.

My AVR uploader sketch, described here:

http://www.gammon.com.au/forum/?id=11638

... can now be used to change fuses.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

crchisholm

So...I do the avrdude as outlined above and the final message is an error.  I'm think "Oh crap!"  Then I realize that if it changed the fuse, it would expect the occilator and even though it communicated long enough to change the fuse, it couldn't communicate after tha to give the rest of the message.

Plugged it into the board that was running so slow and it does exactly what I wanted.

Thank you again.  I love it when a forum plan comes together.

Charlie
Charlie R Chisholm

CrossRoads

Nick,
Can you add to your program to support 1280 boards too?

http://arduino.cc/forum/index.php?topic=100881.new;topicseen#new
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Nick Gammon

My recent sketches all support that chip.

The ATmega640, ATmega1280, ATmega1281, ATmega2560 and ATmega2561. Amongst others.

You can get them all in a batch from here:

https://github.com/nickgammon/arduino_sketches

Just click the Downloads button.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up