I am a beginner with Arduino. I am trying to upload any basic script from my PC to an ESP01 through an Arduino UNO and Arduino IDE.
The code I am trying to upload is very basic:
void setup() {
// initialize LED_BUILTIN as an output pin.
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on
delay(1000);
digitalWrite(LED_BUILTIN, LOW); // turn the LED off
delay(1000);
}
I have followed various tutorials and have wired the ESP01 as follows
ESP01 | Arduino |
---|---|
Vcc | 3V3 |
EN | 3V3 |
GND | GND |
TX | TX |
RX (voltage divider to pull down to 3V3) | RX |
I00 | GND |
RST | 3V3 (switch off) / GND (switch on) |
I press 'Upload' in Arduino IDE, then press the reset button once on the ESP-01. The RX LED on the Arduino flashes in sync with the blue LED on the ESP-01. Then an error comes up and the code is not uploaded. The error log reads:
. Variables and constants in RAM (global, static), used 28104 / 80192 bytes (35%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1496 initialized variables
╠══ RODATA 920 constants
╚══ BSS 25688 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59667 / 65536 bytes (91%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 26899 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 232148 / 1048576 bytes (22%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 232148 code in flash
esptool.py v3.0
Serial port COM7
Connecting......
A fatal esptool.py error occurred: Invalid (unsupported) command 0x8