On OSX, mpremote.transport.TransportError: could not enter raw repl
mpremote can't seem to enter raw repl:
% mpremote ls
b'MicroPython v1.20.0-745-g30ba5e11e-dirty on 2024-01-23; ESP32 module (spiram) with ESP32\r\nType "help()" for more information.\r\n>>>
Traceback (most recent call last):
File "/Users/danielmcshan/Library/Python/3.9/bin/mpremote", line 8, in <module>
sys.exit(main())
File "/Users/danielmcshan/Library/Python/3.9/lib/python/site-packages/mpremote/main.py", line 528, in main
handler_func(state, args)
File "/Users/danielmcshan/Library/Python/3.9/lib/python/site-packages/mpremote/commands.py", line 110, in do_filesystem
state.ensure_raw_repl()
File "/Users/danielmcshan/Library/Python/3.9/lib/python/site-packages/mpremote/main.py", line 470, in ensure_raw_repl
self.transport.enter_raw_repl(soft_reset=soft_reset)
File "/Users/danielmcshan/Library/Python/3.9/lib/python/site-packages/mpremote/transport_serial.py", line 155, in enter_raw_repl
raise TransportError("could not enter raw repl")
mpremote.transport.TransportError: could not enter raw repl
but mpremote connects fine:
% mpremote
Connected to MicroPython at /dev/cu.usbserial-210
Use Ctrl-] or Ctrl-x to exit this shell
MicroPython v1.20.0-745-g30ba5e11e-dirty on 2024-01-23; ESP32 module (spiram) with ESP32
Type "help()" for more information.
>>>
% sw_vers
ProductName: macOS
ProductVersion: 13.0
BuildVersion: 22A380
% python3 --version
Python 3.9.6
% mpremote --version
mpremote 1.22.0
mpremote: enter_raw_repl: not working with micropython v1.26
Port, board and/or hardware
esp32-s3, mpremote
MicroPython version
micropython v1.26 with ESP32-S3
Reproduction
mpremote cp process_handler.py :/process_handler.py
Expected behaviour
Should copy
Observed behaviour
mpremote.transport.TransportError: could not enter raw repl
Additional Information
I observed that from being in raw REPL, you cannot initiate a reboot with CTRL-D any more like it was in earlier micropython version.
For reboot, you now need to leave the raw REPL with CTRL-A first before being able to reboot with CTRL-D.
So the behavior of enter_raw_repl in transport_serial.pymight need modification.
Code of Conduct
Yes, I agree