Program ESP8266 Via raspberry pi serial
Posted: Tue Dec 06, 2022 9:33 am
Hello,
I've been developing recently on the gen4-IoD-32T LCD from 4d Systems that is using the Espressif ESP8266 SoC.
The "default" way to develop on that lcd is via Arduino IDE and through a gen4-IoD Programming Adaptor board that comes with the LCD. Well actually you start with their (4d systems) IDE, to generate the graphic files, but in the end everything is passed and handled by arduino.
This LCD is then connected to a raspberry pi (Rx,Tx,+5V,GND,Reset). So, I was able to use the flash_download_tool_3.9.3 on my computer, which sorts out the issue I would have in the future with mass deployment. But that leaves me with my second issue that I will have and that will be updating. At the moment, the only option I see is for each of our customers to have a computer with this tool installed, and then having to take each and every one of those LCDs to that computer to program them.
So, the only real option would be to program the LCDs via the raspberry pi. I had a look at what arduino does when it programs the LCD. Long story short I was able to get the files from AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/, throw them to a folder in my pc, make a batch file that calls python3 that calls update.py and it worked. I then tried putting those files in the raspberry pi and execute the upload.py with the same --switches arduino uses. My problem is that I don't have a way of telling esptool (upload.py calls this file in the end) on how to reset the ESP8266 so the poor raspberry is trying to connect and fails in the end:
"Connecting........_____....._____....._____"
Is there a way to achieve what I am trying to do, which is programming the LCDs without an adaptor board via RxTx and a reset pin?
Thank you for reading me.
I've been developing recently on the gen4-IoD-32T LCD from 4d Systems that is using the Espressif ESP8266 SoC.
The "default" way to develop on that lcd is via Arduino IDE and through a gen4-IoD Programming Adaptor board that comes with the LCD. Well actually you start with their (4d systems) IDE, to generate the graphic files, but in the end everything is passed and handled by arduino.
This LCD is then connected to a raspberry pi (Rx,Tx,+5V,GND,Reset). So, I was able to use the flash_download_tool_3.9.3 on my computer, which sorts out the issue I would have in the future with mass deployment. But that leaves me with my second issue that I will have and that will be updating. At the moment, the only option I see is for each of our customers to have a computer with this tool installed, and then having to take each and every one of those LCDs to that computer to program them.
So, the only real option would be to program the LCDs via the raspberry pi. I had a look at what arduino does when it programs the LCD. Long story short I was able to get the files from AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/, throw them to a folder in my pc, make a batch file that calls python3 that calls update.py and it worked. I then tried putting those files in the raspberry pi and execute the upload.py with the same --switches arduino uses. My problem is that I don't have a way of telling esptool (upload.py calls this file in the end) on how to reset the ESP8266 so the poor raspberry is trying to connect and fails in the end:
"Connecting........_____....._____....._____"
Is there a way to achieve what I am trying to do, which is programming the LCDs without an adaptor board via RxTx and a reset pin?
Thank you for reading me.