Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am not sure if this question has been asked before but here's what I wanted to do.

I have a Arduino Nano, which I need to update with a new sketch. The plan is to be able to use another Arduino (maybe a Nano again), with an SD card reader and a sketch loaded as HEX file on it. Then connect both using a 4 pin RX/TX/5V/GND and upload the sketch from the transmitter to the receiver. Is it possible?

I am not sure how to do this; I know I can use one Arduino as an ISP to update other, but I am thinking of streaming the hex file to the other. Has anyone done this, any hints would be extremely helpful.

share|improve this question
    
You can find some great info here: forum.arduino.cc/index.php?topic=351358.0 and gammon.com.au/forum/?id=11638 – Mikael Patel Jan 8 at 9:47
    
Thanks. I will look at these and get back. – Joshua Jan 10 at 18:31

There's actually a library for that as well! See here and here.

share|improve this answer

See What happens when code is uploaded using the bootloader?

There is a graphic on that page (reproduced below) which shows the general idea of what happens when you program using Tx/Rx after reset.

Optiboot programming

You could delve into the specs for the STK500 protocol (see linked page) and make your second Arduino follow that, to program from the SD card file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.