When doing a project or building a device using components esp8266 for network or Arduino’s for processing, we have a core block that is connections and burning code to such devices to resolve espcomm mem failed error. However, when we get stuck in any of these steps, such as when a very common error of espcomm espcomm mem failed error occurs when burning code into a device, it becomes very difficult to complete the task. Having been through such issues myself, I’ve decided to share some troubleshooting tips.
Fix the problem espcomm mem failed error while uploading any type of code for ESP or Arduino.
I have been using the esp 01 module, which is one of the best in this price range, so while working with esp I have frequently encountered the upload mem failed error while uploading the code, which can be very frustrating. The same error occurs when working with Arduino or any other device in this category, so I’ve devised a solution that I’d like to share in the event that you’re also experiencing this issue.
Without further ado, I have my esp 01 linked to my Arduino IDE through USB ttl and I am attempting to upload a programme, a led blink programme, to my esp.
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
But it shows error that is upload mem failed after the sketch compilation it means our Arduino IDE is
unable to connect to our esp module so we can conclude that it is some connection issue over here.
For resolving this we will remove the usb and we will disconnect the rst pin if it is connected and now connect it with the ground pin as shown in the figure.
So since we have attached the rst pin to ground pin as per the diagram it will flush the program already in it and this will reset the device. And if we will again run the program after detaching the rst from gnd pin don’t forget to connect your USB and click on espcomm mem failed error UPLOAD button to upload the code. This will burn the code and you can check the running of the code as your led will start to blink so all this procedure will work well with Arduino also. For Arduino you will have to use the FLASH button and your work is done. Find more solution. Click me. . To start work ubuntu find here.