I use following setup:
MacBook Pro, MacOS Ventura 13.4.1, Safari 16.5.1
ArduinoCreateAgent: 1.2.7-ventura-df758df
ESP8266 board ESP-01 with Programmer board ESP Prog v1.0 IOTMCU
Board: GenericESP8266 board
Port: /dev/cu.usbserial-14110
Every time I use WebEditor to program ESP8266 device ("Upload and Save" command) I get error:
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
I've found that WebEditor sends following string to upload compiled code: esptool -vv -cd ck -cb 115200 -cp /dev/cu.usbserial-14110 ...
- and I get an error.
I've checked logs and found that WebEditor uses esptool
utility ("esptool-ck" project on GitHub) and if I change flags and send (in local terminal window) string: esptool -vv -cd nodemcu -cb 115200 -cp /dev/cu.usbserial-14110 ...
everything works fine.
If I use Arduino IDE (2.1.1) - everything works perfect for the same Board and Port.
Is there a way to change settings (for WebEditor or ArduinoCreateAgent) to send -cd nodemcu
instead of -cd ck
during code uploading while using WebEditor?