Arduino ide ERROR compile and upload sketch

Hi,
i did a sketch on my esp32 with arduino IDE
if i compiled only it is successfull
If i tryied to compile and upload it failed each time with that error

A fatal error occurred: MD5 of file does not match data in flash!
Failed uploading: uploading error: exit status 2

My arduino ide is : v2.1.0
Please help me
thanks

You can compile without a board attached to the USB port... check...
IDE >> TOOLS >> BOARD >> your board
IDE >> TOOLS >> PORT >> your port

1 Like

yes i can do that, but the problem is to upload the program on my board
Do you think my board is out of order ?

What do the TOOLS menu items say your board and port is?

Board info

image

the com serial is com5
i selected "ESP32 Dev module"

my board is this one

Regards

Your system does not recognize your board. (you can compile without any board connected)

You have installed the board manager installed? Here is a how-to:

i already followed that page , and i was able to upload a code on my esp32.
A code is already in my ESP32. It is running
But it is impossible for me to modify the running code and upload a new one.

I always have :
A fatal error occurred: MD5 of file does not match data in flash!
Failed uploading: uploading error: exit status 2

Do you think my board is out of order ?

Try:

  1. shorter USB cable or wires (less chance of noise).
  2. Slower baud (115200, 9600).

And, paste your errors here, using the < CODE > block.

Still the same
i ordered new ESP32 board
i think something is wrong on the current board

Let's wait the new one

Okay.

If you have access to another system, try the ESP32 there...

I think xfpd's suggestion of trying a lower upload baud rate is a good idea. I know you indicated you already tried it, but there is potential for confusion here because normally when we talk about setting a baud rate in the Arduino world we are talking about the sketch's serial port communication, which is set via the Serial.begin call in the sketch and the menu in the Arduino IDE Serial Monitor. But this time we are talking about the upload baud rate, which is set in a different way specific to the ESP32 boards.

If you haven't already, please try this @Bend94:

  1. Select Tools > Board > ESP32 Arduino > ESP32 Dev Module from the Arduino IDE menus.
  2. Select Tools > Upload Speed > 115200 from the Arduino IDE menus.
  3. Try uploading to your board again, just as you did before.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.