logo elektroda
logo elektroda
X
logo elektroda

A fatal error occurred: MD5 of file does not match data in flash!-esp32

Lucek20 6456 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19756944
    Lucek20
    Level 6  
    So I have a problem with ESP32 wroom32 devkit - I can't upload any sketch via IDE 1.8.14. I get such an error
    Compressed 444368 bytes to 242347...
    Writing at 0x00010000... (6 %)
    Writing at 0x00014000... (13 %)
    Writing at 0x00018000... (20 %)
    Writing at 0x0001c000... (26 %)
    Writing at 0x00020000... (33 %)
    Writing at 0x00024000... (40 %)
    Writing at 0x00028000... (46 %)
    Writing at 0x0002c000... (53 %)
    Writing at 0x00030000... (60 %)
    Writing at 0x00034000... (66 %)
    Writing at 0x00038000... (73 %)
    Writing at 0x0003c000... (80 %)
    Writing at 0x00040000... (86 %)
    Writing at 0x00044000... (93 %)
    Writing at 0x00048000... (100 %)
    Wrote 444368 bytes (242347 compressed) at 0x00010000 in 3.0 seconds (effective 1179.9 kbit/s)...
    File  md5: 42d8fbe2bcb0358245f457bf7579b417
    Flash md5: 2dfaf728a5b8629751028cd51a3528ca
    MD5 of 0xFF is 5ac87dca24ac96e1b8cb3b2e630e4be3

    The problem appeared after adding "soc / rtc_wdt.h" and rtc_wdt_feed () to the sketch; - Good advice from the internet for "Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)" problem. The program did not upload, so I deleted what I added, but still it is not possible to upload the sketch.

    ESP32 works with the old program, but resets every now and then - about 2 minutes
    12:16:01.810 -> Guru Meditation Error: Core  1 panic'ed (IllegalInstruction). Exception was unhandled.
    12:16:01.810 -> Memory dump at 0x40105078: 00007005 00000004 02ad2083
    12:16:01.810 -> Core 1 register dump:
    12:16:01.810 -> PC      : 0x4010507c  PS      : 0x00060530  A0      : 0x800e9f6a  A1      : 0x3ffb1d90  
    12:16:01.810 -> A2      : 0xa0000000  A3      : 0x40341999  A4      : 0x00000004  A5      : 0x00000002  
    12:16:01.858 -> A6      : 0x3ffb1dd8  A7      : 0x00000055  A8      : 0x800e904c  A9      : 0x00000000  
    12:16:01.858 -> A10     : 0xa0000000  A11     : 0x40341999  A12     : 0x00000007  A13     : 0x00000001  
    12:16:01.858 -> A14     : 0x00060520  A15     : 0x00000000  SAR     : 0x0000000b  EXCCAUSE: 0x00000000  
    12:16:01.858 -> EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  
    12:16:01.858 -> 
    12:16:01.858 -> ELF file SHA256: 0000000000000000
    12:16:01.858 -> 
    12:16:01.858 -> Backtrace: 0x4010507c:0x3ffb1d90 0x400e9f67:0x3ffb1dd0 0x400e02b2:0x3ffb1e10 0x400ea365:0x3ffb1fb0 0x40086e4e:0x3ffb1fd0
    12:16:01.905 -> 
    12:16:01.905 -> Rebooting...
    12:16:01.905 -> ets Jun  8 2016 00:22:57
    12:16:01.905 -> 
    12:16:01.905 -> rst:0xc (SW_CPU_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
    12:16:01.905 -> configsip: 0, SPIWP:0xee
    12:16:01.905 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    12:16:01.905 -> mode:DIO, clock div:1
    12:16:01.905 -> load:0x3fff0018,len:4
    12:16:01.905 -> load:0x3fff001c,len:1044
    12:16:01.905 -> load:0x40078000,len:10124
    12:16:01.905 -> load:0x40080400,len:5856
    12:16:01.905 -> entry 0x400806a8
    12:16:02.755 -> 
    12:16:02.755 -> SPIFFS available!
    12:16:02.802 -> 
    12:16:02.802 -> Fonts found OK.


    Another thing is not working - I can not read the saved data from "eeprom"
    Error when trying to upload fonts:
    A fatal error occurred: MD5 of file does not match data in flash!
    SPIFFS Upload failed!


    ESP connected only to USB,
  • ADVERTISEMENT
  • Helpful post
    #2 19757105
    khoam
    Level 42  
    Install first Exception Stack Trace Decoder so that you know more precisely where the program is crashing down: Link .
    Second, clean fully flash. Most likely something went wrong with the partitions.
    Third (this is a loose suggestion), use the EEPROM library instead of Preferences : Link . The EEPROM emulation library for ESP32 has been discontinued and full of bugs for a long time.
    Fourth, the thread should be placed in the department ESP8266 and ESP32 and IoT :)
  • #3 19759154
    Lucek20
    Level 6  
    A strange thing happened. After coming from work, I sit down to what you wrote, but I think that I will check the esp again, and here's a surprise, everything is spinning and running. I have no idea what happened. Nobody has fumbled since I left for work at my desk, everything is as it was. Normally miracles.
ADVERTISEMENT