autostart arduino program from sd?

I look for a way to turn on the arduino and it should execute a program from uSD card. So I could change the SD card and start with another program. Especially I would like to autostart the arduino and it should restart even after a power fail and restart the actual program from SD card automatically.

I found a thread “Running a sketch code from sd card?” from 2009:
http://forum.arduino.cc/index.php/topic,3908.0.html
But that ended without a solution. Ther is a full fleged OS - but that needs some expensive touchscreen etc. At least I do not need the overhead of interactivity of an OS.

I could not find some other postings or solution that possibly can fit to that topic? Does eventually somebody know such a solution …?

Is there any solution?

Kind Regards

I guess if you could write your own bootloader that reads the SD rather than reading from USB?

Bitlash would be the way to do that. You would need to write a sketch that implemented all the features available in all of your sketches - the Bitlash script would then contain the application logic and you could install a different script by updating the SD contents.

If you need to actually upload a completely new sketch from the SD card, Bitlash won’t do that and you’d need an SD card bootloader or piggy-back Arduino system. I’m pretty sure Nick Gammon has discussed both of these approaches.

Bitlash would be the way to do that.

That's exactly the proposal of the thread from 2009 http://forum.arduino.cc/index.php/topic,3908.0.html Obviously that is not such easy because no one has done that yet? I hoped that there has been done some previous work to start at. I just browsed the manual and on page 5 of the manual indeed there is a description of autostart a function at boot. That might be a strting point. Looks easy but sometimes problems might be found in the details.

I guess if you could write your own bootloader that reads the SD rather than reading from USB?

Concerning the bootloader, the bootloader source one can find at

http://code.google.com/p/arduino/source/browse/#svn/trunk/hardware/bootloaders

If it really is a good idea for a dummy to touch the bootloader? http://forum.arduino.cc/index.php?topic=187931.0

Regards

btwo: Obviously that is not such easy because no one has done that yet? I hoped that there has been done some previous work to start at.

Booting Bitlash off an SD card is a standard feature of Bitlash, so I don't understand why you think nobody has done it yet.

Booting Bitlash off an SD card is a standard feature of Bitlash, so I don't understand why you think nobody has done it yet.

Thank you very much indeed!

That helps a lot!

Regards