Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A8s uploading errors
#1
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
Reply
#2
which BOARD model you are chosing in your arduino IDE?
Reply
#3
Hello its good to hear from you

am choosing "Nodemcu-32s"

(01-25-2023, 11:54 PM)admin Wrote: which BOARD model you are chosing in your arduino IDE?

Hello its good to hear from you

am choosing board     "Nodemcu-32s"
Reply
#4
do you using KinCony's product?
Reply
#5
yes KC868-A8S
Reply
#6
i think your screen photo's code is not from KinCony demo, what function you need to test with KC868-A8S board?
Reply
#7
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
Reply
#8
see this video: https://www.youtube.com/watch?v=lthKBGacyVs maybe will help you.
Reply
#9
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
Reply
#10
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.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)