← index #8002Issue #6338
Related · high · value 2.406
QUERY · ISSUE

ESP32, Mac Os, Enter raw repl failes

openby fanselauopened 2021-11-17updated 2021-11-29
port-esp32

Hi there,

I was using the micropython 1.17 firmware on an ESP32 and was trying to load a file into memory with the pyboard.py tool. I was doing the same thing on a Linux machine (where the serial port was /dev/tty.USB0) but for some reason the same fails on Mac OS (serial port /dev/tty.usbserial-0001) with the following error:
b'\x9a\x82\xc2\x82\xa2\x82\x82bb\x95\xb9\xe94292\r\nentry 0x400806b0\r\nMicroPython v1.17 on 2021-09-02; ESP32 module with ESP32\r\nType "help()" for more information.\r\n>>> ' Traceback (most recent call last): File "/Users/luca/mambaforge/bin/mpremote", line 8, in <module> sys.exit(main()) File "/Users/luca/mambaforge/lib/python3.9/site-packages/mpremote/main.py", line 414, in main pyb.enter_raw_repl() File "/Users/luca/mambaforge/lib/python3.9/site-packages/mpremote/pyboard.py", line 340, in enter_raw_repl raise PyboardError("could not enter raw repl") mpremote.pyboard.PyboardError: could not enter raw repl

Looking at the pyboard file, it suggest that the activation of the "raw repl" mode is unsuccessful, which is weird since i can use "mpremote connect /dev/tty.usbserial-0001" to get into the normal repl and the use Ctrl-B to access the raw repl mode.

On further investigation it seems like the write does not actually reach or gets interpreted by the microcontroller.

Thanks in advance for any recommendation or resources that might be useful to fix this issue

CANDIDATE · ISSUE

Ampy stops the running program in esp 32 micro python

closedby notyetgroundedopened 2020-08-14updated 2020-08-26
port-esp32

Not able use ampy and run python program at the same time . When I use any ampy command it gives an error could not enter raw repl or it executives ampy command and stops the running program . How to use ampy command while program is running in esp wroom 32? Is it possible to run program on one core and use repl from other core?
Thanks in advance

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied