Unable to Program ESP32 from Arduino IDE

Hello Everyone,
I am facing a problem with the ESP32 module I have.
Whenever I try to upload any program either using Arduino IDE or from VSCode with PlatformIO extension, I am getting the following error.

A fatal error occurred: MD5 of file does not match data in flash!
*** [upload] Error 2

And to fix this I have to remove some connections from the V5 pin of the ESP32 module.
For example, I have an ESP32 module connected with a DHT11 sensor, and when the sensor is connected then I can't program/upload (not always, but most of the time), and if I remove the DHT11 VCC pin from the ESP32 module V5, it started working.

Can anyone suggest to me what should I do to fix this issue?
A few months back, when I was using ESP32 with an ILI9341 Display Controller, then also I was facing the same issue.
Any help suggestion is really appreciated.

certain ESP32 pins have to be in a specified state during boot etc therefore you have to be careful what you connect to them
have a read of esp32-pinout-use-gpio-pins

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