Flashing Mega 2560 from SD Card

Hi everyone !

I'm searching for a while and I haven't yet found how to solve my problem.

I have a Arduino Mega 2560 and a SD Card Shield form Seeedstudio : SD Card shield V4.0 | Seeed Studio Wiki
I would like to flash my board with a file on a SD Card.

I tried to use 2boots bootloader ( https://github.com/brianrumburg/2boots-2560/tree/master/avr/2boots ) with no result.

I read this interressant topic : Flashing a sketch from SD card using 2boot bootloader - Programming Questions - Arduino Forum
but I could not make it work for me (even with my Duelmilanove board)

My SD Card : SDHC 4GB

Maybe I made something wrong and I would like to know what it is.
I put my files on github : GitHub - Titaninette/hardware

Please help me, I really need to do this (in fact, I would like to know before why it is not working on Duelmilanove board).

If you need any precision, please ask me.

Thanks !

I up this, I really need help please !!

Have you tried Nick Gammon's sketch for this?

Well I've just tried and it works ! Thank you so much ! :smiley:

There is no other way to do it? Cause the final of my project would be like a cellphone, which will check if there is an update on a server. I would like to have the SD Card directly plug on my Mega 2560, not using a second Arduino. Do you know about this?

That requires a bootloader rewrite to add SD card reading capability. Beyond my programming capability.

Yeah, that's what I thought. I tried this for a long time but I'm not able to rewrite a bootloader.

Thank you again :slight_smile: