ESP-01 gets stuck and hot

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
a Fancy Name
Posts: 3
Joined: Sun Feb 20, 2022 5:45 am

ESP-01 gets stuck and hot

Post by a Fancy Name » Sun Feb 20, 2022 11:16 am

Dear All,

using an UART to USB converter based on CH340 I successfully flashed the firmware onto esp-01. However, when I try to use it in normal mode I cannot connect to it and after plugging in it gets hot. Thus I assume it gets stuck at some process. The same happens on two identical esp-01 boards. How could I fix it?

More details:
For flashing I use esptool. First I erase the flash. Afterwards I use the following command (I tried some modifications, but it ends up with the same sitation)

Code: Select all

esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect --verify -fm dio 0 ~/Documents/esp/bin/esp8266-1m-20220117-v1.18.bin 
The binary is obtained from (as my chip has 1Mb of memory)

https://micropython.org/download/esp8266-1m/

The output from flashing is

Code: Select all

esptool.py v3.2
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 44:17:93:15:9e:87
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Flash will be erased from 0x00000000 to 0x00090fff...
Flash params set to 0x0220
Compressed 591524 bytes to 391472...
Wrote 591524 bytes (391472 compressed) at 0x00000000 in 37.6 seconds (effective 126.0 kbit/s)...
Hash of data verified.

Leaving...
Verifying just-written flash...
(This option is deprecated, flash contents are now always read back after flashing.)
Flash params set to 0x0220
Verifying 0x906a4 (591524) bytes @ 0x00000000 in flash against /home/milord/Documents/esp/bin/esp8266-1m-20220117-v1.18.bin...
-- verify OK (digest matched)
Hard resetting via RTS pin...
Then after replugging (and unconnecting GPIO0 with GND) if I try to use rshell via

Code: Select all

rshell -p /dev/ttyUSB0
it gets stuck at

Code: Select all

Using buffer-size of 32
Connecting to /dev/ttyUSB0 (buffer-size 32)...
Trying to connect to REPL 
Using ampy via

Code: Select all

ampy -p /dev/ttyUSB0 mkdir test
hangs, too.

I also tried to use thonny IDE and if I set up the interpreter to micropython on my device, I obtain an error that device is busy or not responding.

I have managed to access repl on other esp boards with 4Mb flash via similar commands.

I would be grateful for any suggestions what goes wrong here.

Best regards.

Shards
Posts: 39
Joined: Fri Jun 25, 2021 5:14 pm
Location: Milton Keynes, UK

Re: ESP-01 gets stuck and hot

Post by Shards » Sun Feb 20, 2022 6:23 pm

I suspect you have a problem with your UART to USB converter. I flashed a 1mb ESP-01 using your command and a CH340 converter and it worked as you describe. However, I could then connect fine using rshell, Thonny and picocom. Using Thonny you do need the micropython(ESP8266) interpreter selected.

Things getting hot suggests a wiring issue somewhere.

a Fancy Name
Posts: 3
Joined: Sun Feb 20, 2022 5:45 am

Re: ESP-01 gets stuck and hot

Post by a Fancy Name » Sun Mar 06, 2022 2:53 pm

Thank you for the quick reply.

I find it a bit surprising because the converter worked properly while flashing. I have not ordered a new one yet. However, if you managed to get repl running the converter seems to be the reason.

Thank you for checking my commands on your hardware.

a Fancy Name
Posts: 3
Joined: Sun Feb 20, 2022 5:45 am

Re: ESP-01 gets stuck and hot

Post by a Fancy Name » Sun Mar 13, 2022 8:30 pm

I have just tried a new identical adapter. The problem is still the same, so I assume this is not due to a faulty adapter. Any other suggestions?

Post Reply