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
mpremote: unable to execute fs commands - mpremote.transport.TransportError: could not enter raw repl
Port, board and/or hardware
esp32 wroom
MicroPython version
MicroPython v1.23.0 on 2024-06-02; Generic ESP32 module with ESP32
mpremote 1.24.0
Reproduction
mpremote fs ls failed with
mpremote.transport.TransportError: could not enter raw repl
Expected behaviour
expected
mpremote fs ls
ls :
0 mrequests/
Observed behaviour
b'MicroPython v1.23.0 on 2024-06-02; Generic ESP32 module with ESP32\r\nType "help()" for more information.\r\n>>> '
Traceback (most recent call last):
File "/opt/homebrew/bin/mpremote", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/mpremote/main.py", line 538, in main
handler_func(state, args)
File "/opt/homebrew/lib/python3.11/site-packages/mpremote/commands.py", line 294, in do_filesystem
state.ensure_raw_repl()
File "/opt/homebrew/lib/python3.11/site-packages/mpremote/main.py", line 480, in ensure_raw_repl
self.transport.enter_raw_repl(soft_reset=soft_reset)
File "/opt/homebrew/lib/python3.11/site-packages/mpremote/transport_serial.py", line 139, in enter_raw_repl
raise TransportError("could not enter raw repl")
mpremote.transport.TransportError: could not enter raw repl
Additional Information
My temporary workaround is additional time.sleep(1) at line
https://github.com/micropython/micropython/blob/0e490b7c8f32bb72c516985abe67147b9385dc34/tools/mpremote/mpremote/transport_serial.py#L125
before flush input.
Code of Conduct
Yes, I agree