Page 1 of 1

Opening USB serial REPL When Script Running

Posted: Mon Aug 06, 2018 4:12 pm
by bitninja
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.


Re: Opening USB serial REPL When Script Running

Posted: Tue Aug 07, 2018 2:15 am
by bitninja
OK, I think I have solved my problem. I was using a custom and was not aware of this change...

Once I added the new lines...

Code: Select all

import uos, machine
uart = machine.UART(0, 115200)
uos.dupterm(uart, 1)
to my, I was able use ampy again. I'm still testing though. Any insight into what's going on would be much appreciated.