Pages: 1 2 [3]   Go Down
Author Topic: How to make an Arduino-compatible minimal board  (Read 4116 times)
0 Members and 1 Guest are viewing this topic.
St Petersburg, FL
Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
« Last Edit: May 15, 2012, 03:21:56 pm by crchisholm » Logged

Charlie R Chisholm

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

St Petersburg, FL
Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Charlie R Chisholm

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 443
Posts: 23837
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

http://arduino.cc/forum/index.php?topic=100881.new;topicseen#new
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: 1 2 [3]   Go Up
Jump to: