Open AndreKR opened 4 years ago
I confirm the same behavior: with a bare ESP8266 (12e), where RTS controls RESET and DTR controls GPIO0, you need to use the following setting:
upload_resetmethod = nodemcu
I also need to set, I don't know if this is related:
monitor_rts = 0
monitor_dtr = 0
to allow serial monitoring (i.e. pio device monitor
).
However, the device will ALWAYS be reset before the start of the monitor (not good).
Is this the correct GitHub project for documentation issues?
On https://docs.platformio.org/en/latest/platforms/espressif8266.html#reset-method it says:
However, to get this logic, you have to set
nodemcu
:https://github.com/platformio/platform-espressif8266/blob/520839176fcc8082d3223c5e9f0e4840bd3753d9/builder/main.py#L129-L139
Only then you get the esptool option
--before default_reset
, which will use RTS and DTR as described here