Why does uploading from the Arduino IDE to the ESP32 Dev Module (a Chinese knock-off with a CP2102) take so long (the LED just flashes for 38 seconds), and how can I reduce the compilation and upload time? I suspect it’s down to a poor bootloader, but is there any way to fix this?
Here are the logs
And here’s the code
Added after 7 [minutes]:
I’m also sending a screenshot
Here are the logs
Szkic używa 268595 bajtów (20%) pamięci programu. Maksimum to 1310720 bajtów.
Zmienne globalne używają 20792 bajtów (6%) pamięci dynamicznej, pozostawiając 306888 bajtów dla zmiennych lokalnych. Maksimum to 327680 bajtów.
esptool v5.1.0
Serial port COM5:
Connecting................
Connected to ESP32 on COM5:
Chip type: ESP32-D0WD-V3 (revision v3.1)
Features: Wi-Fi, BT, Dual Core + LP Core, 240MHz, Vref calibration in eFuse, Coding Scheme None
Crystal frequency: 40MHz
MAC: 48:e7:29:b7:69:b4
Uploading stub flasher...
Running stub flasher...
Stub flasher running.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00051fff...
Compressed 25184 bytes to 16080...
Writing at 0x00001000 [ ] 0.0% 0/16080 bytes...
Writing at 0x00007260 [==============================] 100.0% 16080/16080 bytes...
Wrote 25184 bytes (16080 compressed) at 0x00001000 in 1.8 seconds (111.6 kbit/s).
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000 [ ] 0.0% 0/146 bytes...
Writing at 0x00008c00 [==============================] 100.0% 146/146 bytes...
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (416.4 kbit/s).
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000 [ ] 0.0% 0/47 bytes...
Writing at 0x00010000 [==============================] 100.0% 47/47 bytes...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (651.1 kbit/s).
Hash of data verified.
Compressed 268736 bytes to 145617...
Writing at 0x00010000 [ ] 0.0% 0/145617 bytes...
Writing at 0x0001bb55 [==> ] 11.3% 16384/145617 bytes...
Writing at 0x00028af0 [=====> ] 22.5% 32768/145617 bytes...
Writing at 0x0002e302 [=========> ] 33.8% 49152/145617 bytes...
Writing at 0x000340a3 [============> ] 45.0% 65536/145617 bytes...
Writing at 0x000392a6 [===============> ] 56.3% 81920/145617 bytes...
Writing at 0x0003e868 [===================> ] 67.5% 98304/145617 bytes...
Writing at 0x000440ca [======================> ] 78.8% 114688/145617 bytes...
Writing at 0x0004c88e [==========================> ] 90.0% 131072/145617 bytes...
Writing at 0x000519c0 [==============================] 100.0% 145617/145617 bytes...
Wrote 268736 bytes (145617 compressed) at 0x00010000 in 13.2 seconds (162.9 kbit/s).
Hash of data verified.
Hard resetting via RTS pin...
And here’s the code
// Definicja pinu wbudowanej diody LED dla ESP32 NodeMCU
#define LED_PIN 2
void setup() {
// Ustawienie pinu jako wyjście
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH); // Włącz diodę (stan wysoki)
delay(500); // Czekaj pół sekundy (500 milisekund)
digitalWrite(LED_PIN, LOW); // Wyłącz diodę (stan niski)
delay(500); // Czekaj pół sekundy
}
Added after 7 [minutes]:
I’m also sending a screenshot