micropython/tools
Jos Verlinde 9f74ffb6eb tools/pyboard.py: Fix ESPxx boards hanging in bootloader after reset.
This is a follow up to d263438a6e, which
solved one problem (reset on disconnect) but introduced a second one (hang
in bootloader).

To solve both probles, False/False is needed for DTR/RTS for ESPxx, but
that would then block stm32 and others.  Any unconditional combination of
DTR/RTS ends up blocking normal operation on some type of board or another.

A simple overview (for windows only):

  DTR          CTS            ESP8266/ESP32          STM32/SAMD51/RP2040
  unspecified  unspecified    Reset on disconnect    OK
  True         False          Hang in bootloader     OK
  False        False          OK                     No Repl
  True         True           Reset on disconnect    No Repl
  False        True           Reset on disconnect    No Repl

  serial.manufacturer:        wch.cn/Silicon Labs    Microsoft

  serial.description:         USB-SERIAL CH340 /     USB Serial Device
                              CP210x USB to UART
                              Bridge

The updated logic will only set the DTR/RTS signals for boards that do not
use standard Microsoft drivers (based on the manufacturer).  It would also
be possible to check against a list of known driver manufactures (like
wch.cn or Silicon Labs) but this would require a list of known drivers for
all ports.

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
2023-04-04 13:30:05 +10:00
..
autobuild tools/autobuild: Create .uf2 file for seeed_xiao_nrf52. 2022-12-19 16:16:12 +11:00
mpremote all: Fix Python comparison to None and True, and use "not in". 2023-03-10 13:32:24 +11:00
.gitattributes micropython-upip: Mark as binary file and re-commit. 2015-06-06 23:09:23 +03:00
.gitignore tools: check-in errordeveloper/tinytest@eb2dbc858f 2014-05-08 01:41:21 +03:00
cc1 tools: Add C middle-processor to make builtin tables proper hash tables. 2015-12-31 00:24:33 +00:00
ci.sh tools/ci.sh: Add unix, stm32 and rp2 ports to code size check. 2023-02-20 11:26:23 +11:00
codeformat.py shared/tinyusb: Further refactor static USB device implementation. 2022-11-11 16:47:36 +11:00
codestats.sh tests,tools: Update path to unix micropython executable. 2022-08-18 11:47:58 +10:00
dfu.py tools/dfu.py: Make tool work with python3 when parsing DFU files. 2021-11-01 15:46:59 +11:00
file2h.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
gen-changelog.sh Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc. 2015-10-12 00:06:25 +01:00
gen-cpydiff.py all: Keep msvc build output in build/ directories. 2022-12-13 17:18:53 +11:00
insert-usb-ids.py ports: Rename USBD_VID/PID config macros to MICROPY_HW_USB_VID/PID. 2021-08-07 23:13:55 +10:00
makemanifest.py tools/makemanifest.py: Fix printing of mpy_cross.CrossCompileError. 2022-11-02 14:06:18 +11:00
manifestfile.py tools/manifestfile.py: Replace recursive glob with os.walk. 2022-09-30 17:34:03 +10:00
metrics.py unix/variants: Remove variant suffix from executable filename. 2022-08-11 13:34:34 +10:00
mpy-tool.py tools/mpy-tool.py: Initialize line_info_top. 2023-02-01 13:17:22 +11:00
mpy_bin2res.py tools/mpy_bin2res: Tools to convert binary resources to Python module. 2017-07-27 14:41:27 +03:00
mpy_cross_all.py all: Remove MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE. 2021-09-16 16:04:03 +10:00
mpy_ld.py py/persistentcode: Introduce .mpy sub-version. 2022-09-19 23:19:55 +10:00
pyboard.py tools/pyboard.py: Fix ESPxx boards hanging in bootloader after reset. 2023-04-04 13:30:05 +10:00
pydfu.py all: Update Python formatting to latest Black version 21.12b0. 2021-12-09 12:09:40 +11:00
tinytest-codegen.py py/formatfloat: Format all whole-number floats exactly. 2022-07-26 22:23:47 +10:00
uf2conv.py all: Fix Python comparison to None and True, and use "not in". 2023-03-10 13:32:24 +11:00
uf2families.json tools/uf2conv.py: Update to latest version. 2022-02-02 23:43:58 +11:00
uncrustify.cfg tools: Add note about uncrustify versions. 2022-10-04 14:34:54 +11:00
verifygitlog.py tools/verifygitlog.py: Add additional help for subject line issues. 2022-10-07 00:26:31 +11:00