Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By RIN67630
#94444 Hi
I want to compile my project on a PC exporting the compiled binary, move this .bin file to a distant Raspberry Pi on another LAN over VNC and finally upload that file to a Wemos D1 Mini that is connected over /dev/ttyUSB0.

Can someone put me on the right track for that last step?
I find tons of confusing ways to upload on an ESP32, many obsolete, many for ESP modules without USB.

What is the current way to do it from a .bin file over /dev/ttyUSB0 on a Raspberry Pi?

Thank you for your advice.
Regards
User avatar
By RIN67630
#94589 OK i am supposed to use esptool.py

So my command would have been something like:

Code: Select allpython3 esptool.py -p /dev/ttyUSB0 write_flash 0x0000 BasicOTA-GW-FM-7390.ino.d1_mini.bin


The answer is:
Code: Select allesptool.py v3.3
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 84:cc:a8:b1:1a:8e
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x0004dfff...
Compressed 318976 bytes to 230571...
Wrote 318976 bytes (230571 compressed) at 0x00000000 in 21.0 seconds (effective 121.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...


which looks apparently fine.
But i uploaded the example code for OTA (with my credentials) and it does not seem to show up in the Arduino IDE.

Is the offset 0x0000 the right one?
I cound'nt find any indication of what this offset code should be.