Posts: 16
Threads: 4
Joined: Dec 2022
Reputation:
0
Hello, can someone please show me how to connect this error
A fatal error occurred: MD5 of this file does not match data in flash!
I have been trying to upload my code from arduino IDE but it keeps on complaining about that error
Posts: 6,259
Threads: 806
Joined: Oct 2020
Reputation:
151
which BOARD model you are chosing in your arduino IDE?
Posts: 6,259
Threads: 806
Joined: Oct 2020
Reputation:
151
do you using KinCony's product?
Posts: 6,259
Threads: 806
Joined: Oct 2020
Reputation:
151
i think your screen photo's code is not from KinCony demo, what function you need to test with KC868-A8S board?
Posts: 16
Threads: 4
Joined: Dec 2022
Reputation:
0
01-27-2023, 09:33 AM
(This post was last modified: 01-27-2023, 09:50 AM by Auxinne Paul.)
Hello
I recently received KC868-A8S board which I ordered from Aliexpress. I tested almost all sample codes for that board and it worked well but after uploading different sketches like 5 times that board stopped and cannot upload sketch from arduino IDE anymore, even it's sample kincony codes and it is complaining about "A fatal error occurred: MD5 of this file does not match data in flash!". Am having a presentation that am supposed to do with that board tommorow but am afraid that am running out of time and it does not work.
Regards
Sketch uses 198834 bytes (15%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13248 bytes (4%) of dynamic memory, leaving 314432 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port COM10
Connecting....
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:de:e2:ce:cc:60
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 16384.2 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 919.2 kbit/s)...
File md5: 24c9954f7afba562a71d33a45b047b4b
Flash md5: 3b73f40c27a57f309c8763475e434c20
MD5 of 0xFF is da0b27e9990919ee45c13d317593b99f
A fatal error occurred: MD5 of file does not match data in flash!
Failed uploading: uploading error: exit status 2
Posts: 16
Threads: 4
Joined: Dec 2022
Reputation:
0
01-27-2023, 04:32 PM
(This post was last modified: 01-27-2023, 04:38 PM by Auxinne Paul.)
C:\>python -m esptool --chip esp32 --port COM5 write_flash_status --non-volatile 0
esptool.py v4.4
Serial port COM5
Connecting.....
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:de:e2:ce:cc:60
Uploading stub...
Running stub...
Stub running...
Initial flash status: 0x0200
Setting flash status: 0x0000
After flash status: 0x0200
Hard resetting via RTS pin...
I did all that but still it doesnt work
C:\Users>python -m esptool --chip esp32 --port COM5 --baud 115200 --after hard_reset erase_flash
esptool.py v4.4
Serial port COM5
Connecting.....
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:de:e2:ce:cc:60
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...
Initial flash status: 0x0200
Setting flash status: 0x0000
After flash status: 0x0200
Hard resetting via RTS pin...
I think the problem is that the initial flash status is 0x0200 and after trying to set it to 0x0000 it still remains on 0x0200 as indicated above
Posts: 6,259
Threads: 806
Joined: Oct 2020
Reputation:
151
01-28-2023, 01:35 AM
(This post was last modified: 01-28-2023, 01:35 AM by admin.)
yes, not start begin 0x0 address, because KinCony's firmware have compiled begin at 0x0, but your own code BIN file should begin at 0x20000 will be ok.