Page 1 of 1

Esp32 update attached arduino?

Posted: Thu Aug 22, 2019 5:35 am
by brolly759
Is there a way to use the esp32 to update a connected arduino over serial ? I know it sounds redundant but I have an RF module made and uses an arduino core and i want to be able to update the module if theres any updates available online. Is there a similar function like avrdude to program a 328p?

Thanks!

Re: Esp32 update attached arduino?

Posted: Thu Aug 22, 2019 7:37 am
by rodmcm
You can program an arduino through the serial port so you should be able to make the ESP32 act as a data pipe, however you've got to get the new compiled program out of the IDE into the BT or WIFI connection to the ESP.

Re: Esp32 update attached arduino?

Posted: Thu Aug 22, 2019 3:00 pm
by lbernstone

Re: Esp32 update attached arduino?

Posted: Thu Aug 22, 2019 9:24 pm
by brolly759
A pipe is not really what I am looking for. I am looking for more of a way to have the esp32 get a HEX file from the cloud and store it locally and push it to the ATMEGA328P.

The link looks interesting but I see it uses SPI to program the chip instead of serial. having SPI always connected between the 2, I dont know how it will effect the RFM69HCW over SPI to ATMEGA328P and the SPI to ESP32 for updating if there will be any issues.