[riot-notifications] [RIOT-OS/RIOT] boards/common/esp8266: Set RTS and DTR to 0 on pyterm. (#16305)

iosabi notifications at github.com
Sat Apr 10 22:56:59 CEST 2021

### Contribution description

When flashing the ESP8266 with the flash tool it is possible to connect
RTS to the reset line and DTR to GPIO0 to automatically reboot the
device into flash mode and then reboot the device again into normal

pyterm leaves these two signals unset unless we specify a --set-rts=0 or
1, and the value of these lines would depend on the UART driver.

This patch explicitly sets RTS and DTR to 0 (high level) in the
Makefile.include config so `make term` releases the reset line,
otherwise the device may be left in reset mode after pyterm starts.

### Testing procedure

Using an FTDI FT2232H-based UART adapter, connect RX,TX as normal, then RTS to the reset pin, DTR to the GPIO0 and follow these steps:

`make BOARD=esp8266-esp-12x -C tests/lwip flash term`

Type `help` in the terminal and see the list of commands. Without this patch the device may be left on reset mode and not respond to commands.

### Issues/PRs references

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * boards/common/esp8266: Set RTS and DTR to 0 on pyterm.

-- File Changes --

    M boards/common/esp8266/Makefile.include (4)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210410/5c1fd135/attachment.htm>

More information about the notifications mailing list