I have just notice a recent issue I have been having using ampy to access a Wemos D1 Mini. It seems that with the latest build, the behavior has changed such that when an ampy command is run and the device is "busy" running a script... the opening of the serial port fails.
I believe that before, opening the port would somehow interrupt the running script, and allow the device to enter a serial REPL.
Does anybody know how MicroPython behaves under these conditions and what might have changed?
I'm running Windows 10 and compiling my own binary with the latest code.
Thanks.
Opening USB serial REPL When Script Running
Re: Opening USB serial REPL When Script Running
OK, I think I have solved my problem. I was using a custom boot.py and was not aware of this change...
https://github.com/micropython/micropython/pull/3784
Once I added the new lines...
to my boot.py, I was able use ampy again. I'm still testing though. Any insight into what's going on would be much appreciated.
https://github.com/micropython/micropython/pull/3784
Once I added the new lines...
Code: Select all
import uos, machine
uart = machine.UART(0, 115200)
uos.dupterm(uart, 1)