platform-espressif8266 icon indicating copy to clipboard operation
platform-espressif8266 copied to clipboard

Docs for upload_resetmethod are wrong

Open AndreKR opened this issue 5 years ago • 1 comments

Is this the correct GitHub project for documentation issues?

On https://docs.platformio.org/en/latest/platforms/espressif8266.html#reset-method it says:

ck - RTS controls RESET or CH_PD, DTR controls GPIO0

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

AndreKR avatar Jul 18 '20 14:07 AndreKR

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).

elbowz avatar Jan 20 '23 11:01 elbowz