- Wed Jan 17, 2018 2:09 pm
#73224
NickLD wrote:The first thing that comes to mind is that your boot pins aren't correctly configured (GPIO 0,2, and 15).
Are you using a dev board or one of the raw modules??
Second though is that it might be Flash corruption, but I feel that might be a bit unlikely.
Thanks for your reply.
I'm using a raw module. I'm fairly confident now that my GIO pins are set up correctly because they originally were not (I was not aware of GPIO15) and I could not talk to the bootloader. But now that part works.
Tonight I've tried using esptool.py instead of the esptool that shipped with the Arduino stuff.
Well the results are the same, sadly. I can't boot my own program. I tried a NodeMCU build, and that also did not work. But surprisingly flashing a file named AiThinker_ESP8266_DIO_32M_32M_20160615_V1.5.4.bin works.
I tried verifying the flash contents using esptool.py.
The verification is OK just after the flash but is NOT OK after power off/power on or even only a reset.
Code: Select all
simon@nordiste:~/essais/arduino-1.8.5/tools/esptool$ ./esptool.py --port /dev/ttyUSB0 write_flash -fm dio --verify 0x0000 /tmp/arduino_build_568335/blink.c.ino.bin
esptool.py v2.3-dev
Connecting........_____...
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0240
Compressed 253952 bytes to 184893...
Wrote 253952 bytes (184893 compressed) at 0x00000000 in 16.4 seconds (effective 124.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 0x0240
Verifying 0x3e000 (253952) bytes @ 0x00000000 in flash against /tmp/arduino_build_568335/blink.c.ino.bin...
-- verify OK (digest matched)
Hard resetting...
*** HERE I DO RESET OR POWER OFF ***
Code: Select allsimon@nordiste:~/essais/arduino-1.8.5/tools/esptool$ ./esptool.py --port /dev/ttyUSB0 verify_flash 0x0000 /tmp/arduino_build_568335/blink.c.ino.bin
esptool.py v2.3-dev
Connecting.....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Verifying 0x3e000 (253952) bytes @ 0x00000000 in flash against /tmp/arduino_build_568335/blink.c.ino.bin...
-- verify FAILED (digest mismatch)
A fatal error occurred: Verify failed.