NodeMCU: Failed uploading: uploading error: exit status 2
Posted: Sat Mar 04, 2023 1:33 am
Hi there,
First of all, I have no background in electronics. Before buying NodeMCU, I have done some very basic sensor interfacing using Raspberry Pi.
My purpose of buying NodeMCU is for home automation. I have an ESP8266 NodeMCU CP2102 Board. Here are some more information about my setup:
1. I am using Ubuntu.
2. I have already made USB connection to the controller.
3. I have downloaded Arduino IDE by following this tutorial: https://www.youtube.com/watch?v=MFencFdpV5g
This is the code I am using:
And this is the error I am getting when trying to upload the sketch:
Can you guys guide me to troubleshoot this?
First of all, I have no background in electronics. Before buying NodeMCU, I have done some very basic sensor interfacing using Raspberry Pi.
My purpose of buying NodeMCU is for home automation. I have an ESP8266 NodeMCU CP2102 Board. Here are some more information about my setup:
1. I am using Ubuntu.
2. I have already made USB connection to the controller.
3. I have downloaded Arduino IDE by following this tutorial: https://www.youtube.com/watch?v=MFencFdpV5g
This is the code I am using:
Code: Select all
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
delay(1000);
Serial.print('a');
}
void loop() {
// put your main code here, to run repeatedly:
}
And this is the error I am getting when trying to upload the sketch:
Code: Select all
. 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 232100 / 1048576 bytes (22%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 232100 code in flash
esptool.py v3.0
Serial port /dev/ttyUSB0
Failed uploading: uploading error: exit status 2
Can you guys guide me to troubleshoot this?