Closed Josverl closed 2 years ago
@jakobrosenberg , note that it is worth the effort to test if the same fix would be needed on mac/linux, or if that the serialport interface behaves differently these by convention. I just fixed it for windows as there were no reports of the same on other platforms.
a quick test on debian/arm64 does not show the same issue.
Hi @Josverl . Did we merge your fix?
That fix has been in V1 since some 4 years:
For V2 the serialport interface has been outsourced
to micropython-ctrl-cont for which I raised this PR as I think you have seen.
Thanks for merging https://github.com/jakobrosenberg/micropython-ctl/pull/1, I did a quick test using the updated module and generic ESP32 and ESP8266 boards and that indeed avoids the MCU to wait in the bootloader
.vscode\extensions\pycom.pymakr-preview-2.13.0> npm install micropython-ctl-cont
then connect and reset
MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32
Type "help()" for more information.
>>> import machine;machine.reset()
WebREPL is not configured, run 'import webrepl_setup'
MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32
Type "help()" for more information.
>>>
also verified to work for the hardware reset
menu option.
fixed by : 4f0741124bada03c3aecc83a3fc888cccaac4e28
What are the steps to reproduce this issue?
What happens?
What were you expecting to happen?
Any logs, error output, etc?
yes , for both ESP32 , ESP8266
Similar with an ESP8266
Note that on both MCUs a MicroPython
import machine; machine.reset()
continues to work. As this does only reset the VM, rather than the chip , it is a clear indication that the strapping pins are set Low. ( signals are usually inverted on the autoflash interfaces).Any other comments?
I fixed this same issue in v1 by setting dtr and rts high according to the ESP docs
What versions of software are you using?
Operating system: Windows 11 Pymakr version: Vnext