ESP32 MD5 fatal error? #1390
Unanswered
elaw01887
asked this question in
Q&A - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So... having had no luck with my other "weird SPI" LCD (see other post), I'm trying to get a different display working. This is on an ESP32 dev board, and the new display is a 480x320 TFT with ILI9486 controller and a parallel interface.
About 2/3 of the demos work. But the more "advanced" ones, usually those using DMA or sprites, almost always give a message saying "A fatal error occurred: MD5 of file does not match data in flash!".
I've spent a ton of time Googling, most info I see seems to point to the board being bad or the serial speed set too fast. But I've lowered the baud rate a lot, with no joy. And have run a large number of other sketches on this board (including, as I said above, many of the demos for this library) without encountering the issue.
Can anyone give me any ideas for fixing this?
I'll paste the compile output (edited because it was huge) below for those that are bored. ;^)
Thanks!
`Arduino: 1.8.15 (Windows 10), Board: "ESP32 Dev Module, Enabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
(Several hundred lines removed here)
Linking everything together...
"C:\Users\eric\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-gcc" -nostdlib "-LC:\Users\eric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/lib" "-LC:\Users\eric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/ld" -T esp32_out.ld -T esp32.project.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u esp_app_desc -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception -Wl,--start-group "C:\Users\eric\AppData\Local\Temp\arduino_build_835622\sketch\Transparent_Sprite_Demo_4bit.ino.cpp.o" "C:\Users\eric\AppData\Local\Temp\arduino_build_835622\libraries\TFT_eSPI\TFT_eSPI.cpp.o" "C:\Users\eric\AppData\Local\Temp\arduino_build_835622\libraries\SPI\SPI.cpp.o" "C:\Users\eric\AppData\Local\Temp\arduino_build_835622\libraries\FS\FS.cpp.o" "C:\Users\eric\AppData\Local\Temp\arduino_build_835622\libraries\FS\vfs_api.cpp.o" "C:\Users\eric\AppData\Local\Temp\arduino_build_835622\libraries\SPIFFS\SPIFFS.cpp.o" "C:\Users\eric\AppData\Local\Temp\arduino_build_835622\core\core.a" -lgcc -lesp_websocket_client -lwpa2 -ldetection -lesp_https_server -lwps -lhal -lconsole -lpe -lsoc -lsdmmc -lpthread -llog -lesp_http_client -ljson -lmesh -lesp32-camera -lnet80211 -lwpa_supplicant -lc -lmqtt -lcxx -lesp_https_ota -lulp -lefuse -lpp -lmdns -lbt -lwpa -lspiffs -lheap -limage_util -lunity -lrtc -lmbedtls -lface_recognition -lnghttp -ljsmn -lopenssl -lcore -lfatfs -lm -lprotocomm -lsmartconfig -lxtensa-debug-module -ldl -lesp_event -lesp-tls -lfd -lespcoredump -lesp_http_server -lfr -lsmartconfig_ack -lwear_levelling -ltcp_transport -llwip -lphy -lvfs -lcoap -lesp32 -llibsodium -lbootloader_support -ldriver -lcoexist -lasio -lod -lmicro-ecc -lesp_ringbuf -ldetection_cat_face -lapp_update -lespnow -lface_detection -lapp_trace -lnewlib -lbtdm_app -lwifi_provisioning -lfreertos -lfreemodbus -lethernet -lnvs_flash -lspi_flash -lc_nano -lexpat -lfb_gfx -lprotobuf-c -lesp_adc_cal -ltcpip_adapter -lstdc++ -Wl,--end-group -Wl,-EL -o "C:\Users\eric\AppData\Local\Temp\arduino_build_835622/Transparent_Sprite_Demo_4bit.ino.elf"
"C:\Users\eric\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0/esptool.exe" --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "C:\Users\eric\AppData\Local\Temp\arduino_build_835622/Transparent_Sprite_Demo_4bit.ino.bin" "C:\Users\eric\AppData\Local\Temp\arduino_build_835622/Transparent_Sprite_Demo_4bit.ino.elf"
esptool.py v3.0-dev
"C:\Users\eric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/gen_esp32part.exe" -q "C:\Users\eric\AppData\Local\Temp\arduino_build_835622/partitions.csv" "C:\Users\eric\AppData\Local\Temp\arduino_build_835622/Transparent_Sprite_Demo_4bit.ino.partitions.bin"
Using library TFT_eSPI at version 2.3.70 in folder: \home\dfs\Eric's Stuff~Arduino sketchbooks\libraries\TFT_eSPI
Using library SPI at version 1.0 in folder: C:\Users\eric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\SPI
Using library FS at version 1.0 in folder: C:\Users\eric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\FS
Using library SPIFFS at version 1.0 in folder: C:\Users\eric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\SPIFFS
"C:\Users\eric\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-size" -A "C:\Users\eric\AppData\Local\Temp\arduino_build_835622/Transparent_Sprite_Demo_4bit.ino.elf"
Sketch uses 251494 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16176 bytes (4%) of dynamic memory, leaving 311504 bytes for local variables. Maximum is 327680 bytes.
C:\Users\eric\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0/esptool.exe --chip esp32 --port COM7 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\eric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/partitions/boot_app0.bin 0x1000 C:\Users\eric\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/bin/bootloader_dio_80m.bin 0x10000 C:\Users\eric\AppData\Local\Temp\arduino_build_835622/Transparent_Sprite_Demo_4bit.ino.bin 0x8000 C:\Users\eric\AppData\Local\Temp\arduino_build_835622/Transparent_Sprite_Demo_4bit.ino.partitions.bin
esptool.py v3.0-dev
Serial port COM7
Connecting....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ac:67:b2:37:1b:74
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 7281.7 kbit/s)...
Hash of data verified.
Compressed 17120 bytes to 11164...
Writing at 0x00001000... (100 %)
Wrote 17120 bytes (11164 compressed) at 0x00001000 in 0.1 seconds (effective 1022.1 kbit/s)...
File md5: 24c9954f7afba562a71d33a45b047b4b
Flash md5: 9225fe32a5f39cdfc014233fb7230921
MD5 of 0xFF is da0b27e9990919ee45c13d317593b99f
A fatal error occurred: MD5 of file does not match data in flash!
A fatal error occurred: MD5 of file does not match data in flash!
`
Beta Was this translation helpful? Give feedback.
All reactions