Micropython shell stuck after I tried installing webrepl

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
joelhoro
Posts: 5
Joined: Wed Feb 27, 2019 2:37 pm

Micropython shell stuck after I tried installing webrepl

Post by joelhoro » Wed Feb 27, 2019 2:54 pm

Just got my first ESP8266, I flashed micropython and could get a working python shell through serial. I ran 'import webrepl_setup', and after reset, even though I do get a shell, there is an error message (see below), and the shell is not responsive. Tried resetting many times, CTRL-C / D / Z, nothing works. Tried erasing flash and starting again, doesn't fix it (i.e. it is worse than the very first time I flashed micropython - are some settings stored in EEPROM, and if so, how to wipe them out?).

Funnily enough, I see the mp AP, I can connect to it and get an IP. I get a ping from 192.168.4.1, but when running the webrepl client, I get no response.

To the very least I would like to be able to get back to the stage where I had a python repl through serial, but I can't even get there?


#######################################################
o▒▒bp2cܜb▒OSError: [Errno 2] ENOENT

MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
#######################################################

FWIW here's what I used to flash

#######################################################
>> esptool.py --port COM3 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20180511-v1.9.4.bin
esptool.py v2.6
Serial port COM3
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: bc:dd:c2:25:1b:eb
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0240
Compressed 604872 bytes to 394893...
Wrote 604872 bytes (394893 compressed) at 0x00000000 in 9.1 seconds (effective 529.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
#######################################################

joelhoro
Posts: 5
Joined: Wed Feb 27, 2019 2:37 pm

Re: Micropython shell stuck after I tried installing webrepl

Post by joelhoro » Wed Feb 27, 2019 3:41 pm

Quick follow-up, when connecting from my phone, using ESP8266Loader, I do have access to the REPL. On my computer I was using putty, which may have an issue sending stuff (although it did work when I first flashed MP).

Post Reply