Could not enter REPL. Trying again with 3 second waiting time...

487 views
Skip to first unread message

Wolf-Rüdiger Schwoon

unread,
Feb 24, 2020, 5:05:27 AM2/24/20
to thonny
Hi

I'm playing around with the latest pip3 install form thonny. (3.2.7)

I've connected my esp32 chip via usb. Flashed it with the latest micropython firmware.

Putted this code in the editor window.

Code hier eingeben...import time
from machine import Pin
led
=Pin(1,Pin.OUT)
 
while True:
    led
.value(1)
    time
.sleep(0.5)
    led
.value(0)
    time
.sleep(0.5)

And ran it. Very nice. The led is blinking. But how to stop without unpluggin the chip.

Clicking on the stop sign brings me:

Could not enter REPL. Trying again with 3 second waiting time... Could not enter REPL. Giving up. Read bytes:
b''

What is the trick.? When i put the code in a main.py is was no more possible to connect to the chip. The only way was
to erase the flash with the cmd.:

Whats wrong??
$ esptool.py --port /dev/ttyUSB0 erase_flash




Aivar Annamaa

unread,
Feb 25, 2020, 2:52:51 AM2/25/20
to thonny
Hi!

Did you try Ctrl+C (or "Run => Interrupt execution")?

Best regards
Aivar

Wolf-Rüdiger Schwoon

unread,
Feb 25, 2020, 10:11:35 AM2/25/20
to thonny
Yes, no way...

For now every time i have to make changes at the main.py i need to erase and flash the chip...

Fred Ettner

unread,
Apr 23, 2020, 11:53:23 PM4/23/20
to thonny
I see this post is a little old. Wolf-Rudiger did you ever figure out a fix to this? I have similar issue after programming the board any type of disconnect will not let me reconnect without doing a complete erase and flash. I've tried numerous things but to no avail. Other IDE's have had the same issue for me. 
Thanks.

Reply all
Reply to author
Forward
0 new messages