I tried to flash MicroPython (v1.17) on my ESP-12F today, but it does not work correctly.
After booting I will get the following output:
Code: Select all
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x40100000, len 30668, room 16
tail 12
chksum 0x20
ho 0 tail 12 room 4
load 0x3ffe8000, len 996, room 12
tail 8
chksum 0x88
load 0x3ffe83f0, len 1064, room 0
tail 8
chksum 0xd8
csum 0xd8
Fatal exception (0):
epc1=0x4020e838, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x4020e838, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
[.... last two lines in an endless loop ....]
Code: Select all
$ esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py v3.1
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 98:cd:ac:2f:02:e8
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 0.0s
Hard resetting via RTS pin...
Code: Select all
$ esptool.py --port /dev/ttyUSB0 --baud 19200 write_flash --flash_size=detect 0 esp8266-1m-20210902-v1.17.bin
esptool.py v3.1
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 98:cd:ac:2f:02:e8
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 0x0020
Compressed 589912 bytes to 389772...
Wrote 589912 bytes (389772 compressed) at 0x00000000 in 207.2 seconds (effective 22.8 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
I tried it several times with different speeds and different versions.
I also tried to flash another firmware (Tasmota) on the chip, which worked without problems.
So I tried to flash the MicroPython firmware with the Tasmota flash tool, but it made no difference.
Any ideas what to try next?
Regards
Sven