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.
-
You can find some great info here: forum.arduino.cc/index.php?topic=351358.0 and gammon.com.au/forum/?id=11638Mikael Patel– Mikael Patel2016年01月08日 09:47:02 +00:00Commented Jan 8, 2016 at 9:47
2 Answers 2
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.
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.