Go Down

Topic: Can this be achieved (Loading a skech from an sd card) (Read 1 time) previous topic - next topic

cepa

All right guys, I am working on a project that requires me to load a sketch (.hex file) from an sd card. Is this possible?

The way I am thinking of doing is to write some sort of loader on to the atmega chip, the loader would have the ability to load sketches from the SD, if I reset the arduino, the loader would start up by default. Can this be achieved?

johnwasser

The bootloader section of memory can write into the application section of memory so it is theoretically possible.  Currently the bootloader doesn't provide a function that you can call from a sketch to write into the application space.  You would probably have to start with that.

Another option is to have an Arduino with an SD card act as an ICSP device (like the ArduinoISP sketch) and program a separate Arduino through the ICSP header. I'm pretty sure that has already been done.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Grumpy_Mike

The other option is to run bitlash from the SD card. It is an interpretive language.

cepa



Another option is to have an Arduino with an SD card act as an ICSP device (like the ArduinoISP sketch) and program a separate Arduino through the ICSP header. I'm pretty sure that has already been done.


so by that you mean that I would need two Arduinos connected. The first one boots up, flashes the second one, then the second one boots up and does everything I need.

Grumpy_Mike

#4
Nov 05, 2012, 10:40 pm Last Edit: Nov 05, 2012, 10:45 pm by Grumpy_Mike Reason: 1
No just the one arduino with a modified boot loader.

Go Up