esptool.py in 'C'
Posted: Wed Jan 30, 2019 1:44 pm
Does anyone have a port of esptool.py to C/C++?
I have a board with two micros. I have to (customer requirement) allow the ESP to be reprogrammed from the second micro.
I have a TTL serial port available and some spare I/O.
The obvious solution would be to port esptool.py to 'C' and run on the micro. The micro has limited RAM but has SD-CARD mass storage. Hopefully the solution would download from a stream rather than just malloc() & load a 4MB buffer - but I could wrap direct array access if needed.
Another option would be to use another serial bootloader if one is available. But then I would have to create partitions, check that checksums etc have been used and at the end of the day I would have a less secure loader.
I use Ethernet on the ESP and so would appreciate any thought on using RIO0 this way within a production design.
I have a board with two micros. I have to (customer requirement) allow the ESP to be reprogrammed from the second micro.
I have a TTL serial port available and some spare I/O.
The obvious solution would be to port esptool.py to 'C' and run on the micro. The micro has limited RAM but has SD-CARD mass storage. Hopefully the solution would download from a stream rather than just malloc() & load a 4MB buffer - but I could wrap direct array access if needed.
Another option would be to use another serial bootloader if one is available. But then I would have to create partitions, check that checksums etc have been used and at the end of the day I would have a less secure loader.
I use Ethernet on the ESP and so would appreciate any thought on using RIO0 this way within a production design.