Skip to content

Failed uploading: uploading error: exit status 2 #7822

@farrasathallah

Description

@farrasathallah

Board

wemos D1 mini kit esp32

Device Description

WhatsApp Image 2023-02-10 at 05 24 47
WhatsApp Image 2023-02-10 at 05 40 45
chip installed CH9102X

Hardware Configuration

nothing on my hardware only wemos D1 mini kit for ESP32/MH-ET LIVE MiniKit for ESP32
WhatsApp Image 2023-02-10 at 05 24 47
WhatsApp Image 2023-02-10 at 05 40 45

Version

other

IDE Name

Arduino IDE

Operating System

Windows 10

Flash frequency

40 Mhz

PSRAM enabled

yes

Upload speed

115200

Description

output always explains
Sketch uses 235049 bytes (17%) of program storage space. Maximum is 1310720 bytes.
Global variables use 21800 bytes (6%) of dynamic memory, leaving 305880 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port COM4
Connecting....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 34:86:5d:3b:f0:fc
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00049fff...
Compressed 17408 bytes to 12111...
Writing at 0x00001000... (100 %)
Wrote 17408 bytes (12111 compressed) at 0x00001000 in 1.1 seconds (effective 123.5 kbit/s)...
File md5: 0c75733ea00cb5c610741279c6b6c677
Flash md5: b46f156578d444f6cf50cd3f2b972657
MD5 of 0xFF is b6926aec61b1522486d923c30ffd5774

A fatal error occurred: MD5 of file does not match data in flash!
Failed uploading: uploading error: exit status 2
i don't use complicated sketch just use sample from sketch from arduino IDE to test my hardware

Sketch

// the setup function runs once when you press reset or power the board
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
}

Debug Message

Waiting for gdb server to start...[2023-02-10T00:18:10.354Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\\Users\\farras\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\openocd-esp32\\v0.11.0-esp32-20220706/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "c:\\Users\\farras\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2023110-1836-fop2fx.7os7s\\Blink" -f "C:/Users/farras/AppData/Local/Programs/arduino-ide/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f debug.cfg
Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
CDRTOSConfigure
Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6014, description '*', serial '*' at bus location '*'

[2023-02-10T00:18:12.644Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions