Closed
Description
On windows, it seems like there are timing issues with the reset to bootloader functions using the DTR and RTS circuit for esp32 because setDTR and setRTS are sent separately. Possible fix:
# issue reset-to-bootloader:
# RTS = either CH_PD or nRESET (both active low = chip in reset)
# DTR = GPIO0 (active low = boot to flasher)
self._port._dtr_state = False
self._port._rts_state = True
self._port._reconfigure_port()
time.sleep(0.05)
self._port._dtr_state = True
self._port._rts_state = False
self._port._reconfigure_port()
time.sleep(0.05)
self._port.setDTR(False)
I haven't scoped this or tested it because my v1 board has the transistor bug.