mpremote freezes after connect #14091
Unanswered
Dan-Essin
asked this question in
Using MicroPython
Replies: 1 comment 1 reply
-
There may be a modem manager running on debian, which grabs the device. Try de-installing the modem manager. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've been trying to make a web server with CircuitPython to no avail so it's time to try MicroPython.
Thonny has very little functionality when it comes to copying files to the rpi pico w so mpremote seems essential.
I've installed mpremote on Windows 11 and on Debian 12. It mis-behaves identically on both.
I've issues this command:
mpremote connect /dev/ttyACM1
Connected to MicroPython at /dev/ttyACM1
Use Ctrl-] or Ctrl-x to exit this shell
At this point on both platforms typing has no effect.
After a while on Debian this appeared on the terminal. I have no idea where this stuff came from because I just left the terminal idle.
pressed_keys: ['#']
False
Key pressed: #
pressed_keys: ['D']
False
Key pressed: D
Any attempt that I make to type into mpremote still has no effect.
IMHO, this is broken and makes it virtually impossible for me to use MicroPython since it basically precludes copying any work from the pico to a backup folder on the computer.
I'm obviously a novice at this so there is probably some obvious blunder that I have made.
Will someone please tell me what I've done wrong and how to fix it.
Thank you
While I was composing this on Debian, mpremote on Windows 11 apparently crashed and generated this:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\essin\AppData\Roaming\Python\Python311\site-packages\mpremote_main.py", line 6, in
sys.exit(main.main())
^^^^^^^^^^^
File "C:\Users\essin\AppData\Roaming\Python\Python311\site-packages\mpremote\main.py", line 536, in main
do_repl(state, argparse_repl().parse_args([]))
File "C:\Users\essin\AppData\Roaming\Python\Python311\site-packages\mpremote\repl.py", line 89, in do_repl
do_repl_main_loop(
File "C:\Users\essin\AppData\Roaming\Python\Python311\site-packages\mpremote\repl.py", line 10, in do_repl_main_loop
console_in.waitchar(state.transport.serial)
File "C:\Users\essin\AppData\Roaming\Python\Python311\site-packages\mpremote\console.py", line 99, in waitchar
while not (self.inWaiting() or pyb_serial.inWaiting()):
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\essin\AppData\Roaming\Python\Python311\site-packages\serial\serialutil.py", line 594, in inWaiting
return self.in_waiting
^^^^^^^^^^^^^^^
File "C:\Users\essin\AppData\Roaming\Python\Python311\site-packages\serial\serialwin32.py", line 259, in in_waiting
raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError()))
serial.serialutil.SerialException: ClearCommError failed (PermissionError(13, 'The device does not recognize the command.', None, 22))
That's probably because I unplugged the pico to carry to the linux box but since it doesn't show up as a usb device there is no way to cracefully eject it.
Beta Was this translation helpful? Give feedback.
All reactions