platformio / platform-espressif8266

Espressif 8266: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif8266
Apache License 2.0
336 stars 219 forks source link

Docs for upload_resetmethod are wrong #223

Open AndreKR opened 4 years ago

AndreKR commented 4 years ago

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

elbowz commented 1 year 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).