Loading...
Pages: [1]   Go Down
Author Topic: A stand alone programmer flashing using sd card  (Read 279 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
I'm new to the arduino platform however am feeling particularly adventurous.
I was wondering would it be possible / practical to use the arduino isp firmware and hack it to read from sd card
so that I can flash bootloader onto virgin chips without a plugging it into my pc. Ideally I also need to change
the fuses as virgin chips run at the default 1MHZ.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 108
Posts: 6609
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a sketch called optiLoader that will burn the Arduino optiboot loader on a bare chip without a PC:

https://github.com/WestfW/OptiLoader

You could build a shield with a ZIF programming socket and burn bootloaders almost as fast as you can press the reset button.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 270
Posts: 17040
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So the part being programmed does not need a xtal at all?
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

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 108
Posts: 6609
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So the part being programmed does not need a xtal at all?

If the chip is fresh it is already set to use the internal RC clock.  If you are re-using a chip you are supposed to supply a clock signal.  You can set an
Arduino timer to toggle a data pin at 8MHz and connect that to the XTAL1 pin of the target chip.

The SPI interface is supposed to be run at no faster than half the processor clock (assuming a processor clock <12MHz).  I'm not sure if the default clock counts as 8MHz (the raw speed) or 1MHz (the speed after the pre-scaler).  Probably best to assume 1 MHz.  An SPI speed of 512 KHz (SPI_CLOCK_DIV32) should be safe but for extra margin, try 256 KHz (SPI_CLOCK_DIV84) ,
Logged

Pages: [1]   Go Up
Print
 
Jump to: