mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
73fab03e31
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 mode. 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.
8 lines
272 B
Makefile
8 lines
272 B
Makefile
# configure the serial interface
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|
|
|
# Set RTS and DTR to 0 to release reset when RTS is connected to the reset pin
|
|
# and DTR to GPIO0.
|
|
PYTERMFLAGS += --set-rts 0 --set-dtr 0
|