While uploading code to my ESP32 board I encountered the following error.
"Error compiling for board ESP32-WROOM-DA Module."
Regular codes upload fine.
The advised solution on the above page led me to a GitHub page, but I am not able to follow what they are talking in language which is absolutely alien to my ears.
In this comment the OP says that he copied the file from the zip folder downloaded from GitHub to this path C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2, but this path doesn't exist in my computer. I don't know where to paste this file and what to do next after that.
Someone please guide.
UPDATE 1
I am trying to communicate to a LCD.
Below is the code which failed to upload to my board.
#include <Arduino.h>
const byte rxPin = 16; //rx2
const byte txPin = 17; //tx2
HardwareSerial dwin(1);
unsigned char Buffer[9];
#define XX_add 0x61
unsigned char XX[8] = {0x5a, 0xa5, 0x05, 0x82, XX_add , 0x00, 0x00, 0x00};
void setup()
{
dwin.begin(115200, SERIAL_8N1, rxPin, txPin);
}
void loop()
{
sensor_data();
}
void sensor_data()
{
XX[6] = highByte(00.00);
XX[7] = lowByte(00.00);
dwin.write(XX, 8);
}
The error message is too large to post here, posting it below in comments.
UPDATE 2 :
So I found the path in my computer, and pasted the folder here C:\Users\Lenovo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\arduino-esp32-1.0.3-rc1, but for the OP on GitHub it had worked, for me it still doesn't.
This is where I have pasted the folder.