Pages: [1]   Go Down
Author Topic: Reprogramming 328PU using Mega8 & SD card  (Read 453 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
Karma: 7
Posts: 436
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've built a FTDI board to get from USB to the arduino and it works perfectly but I am looking at doing the same with a Mega8 instead.  If I do build the interface with a Mega8 instead is it possible to make the Mega8 reprogram the sketch on the 328?  I am thinking of sticking an SD card on the board with the Mega8 and IF an SD card is installed into the SD card slot with a program called say it will pull the reset line low, release it and send the code from the file to the 328 to reprogram it.....

Sounds feasible to me when I came up with it.

Any ideas people?  Any issues?  I have my reasons smiley

Massachusetts, USA
Offline Offline
Tesla Member
Karma: 212
Posts: 8974
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, it is certainly possible for an ATmega8 and SD card to send a .HEX file from the SD card to the serial inputs of an Arduino with a 386p such that they are written to the 328p FLASH.  A good place to start might be the ArduinoISP which receives the same sort of STK500v1 messages that the bootloader is expecting to get over the serial link.

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: