micropython / micropython/micropython

mpremote: enter_raw_repl: not working with micropython v1.26

Open
#17,918 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug tools
Dominant language
C
Stars
22.1k
Forks
9k
Avg merge
6d 4h
Merged PRs (30d)
16

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in mpremote's transport_serial.py and reproduce the issue with mpremote cp process_handler.py :/process_handler.py on MicroPython v1.26 with an ESP32-S3. Trace how enter_raw_repl handles the raw REPL and reboot sequence, including the reported CTRL-A before CTRL-D requirement. Done means the command copies the file without a TransportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.