ESP32 flashing Arduino via SPI pins?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
liudr
Posts: 211
Joined: Tue Oct 17, 2017 5:18 am

ESP32 flashing Arduino via SPI pins?

Post by liudr » Thu Sep 19, 2019 8:51 pm

I use a version of avrdude to upload .hex files to arduino via SPI ins on raspberry pi 0w. I wish to move to ESP32 due to the lack of supplies of raspberry pi 0w. I wonder if anyone has done this already, on ESP32 in MicroPython, uploading intel .hex files to arduino via spi. Thanks.
I'm fairly comfortable with MicroPython although my experience with SPI is on arduino system via library calls only. If the above has not been done, is there any resource I can use to write my own MicroPython script? Thanks.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: ESP32 flashing Arduino via SPI pins?

Post by jimmo » Thu Sep 19, 2019 11:29 pm

Using SPI from MicroPython is very similar to using it from Arduino - there is a high level api in machine.SPI.

I don't know if ICSP for AVR needs any specific extensions to SPI though.

There are several pure-python parsers for the intel hex format.

User avatar
liudr
Posts: 211
Joined: Tue Oct 17, 2017 5:18 am

Re: ESP32 flashing Arduino via SPI pins?

Post by liudr » Sun Sep 22, 2019 6:01 pm

Thanks. I need to investigate it a bit more. Used ESP32 for a while with MicroPython, which is great, but never tried doing SPI with it, fearing it would be too slow. I'll post what I find on this subject.

Post Reply