I’m programming the ESP32 Thing in Arduino IDE 2.0.0, and I’m trying to implement BLE, but I get compile errors with BLE sketches. I’ve attached the errors text file.
A randomly selected non BLE ESP32 Example sketch compiles and downloads without errors. The example sketch tested was:
Examples\Examples for Sparkfun ESP32 Thing\ESP32\HallSensor
But when I try to compile an ESP32 Example BLE sketch such as:
Examples\Examples for Sparkfun ESP32 Thing\ESP32 BLE Arduino\BLE_Scan, I get compile errors as show in the attached text file.
I tried reinstalling the IDE and it didn’t help. I also get the same errors using the Arduino 1.8.12 IDE.
I can’t tell if this is a library file path issue, or an issue with the Sparkfun libraries, or what. I Googled this issue and searched the forum, but didn’t find anything that solved my problem.
Can you tell what I need to do to correct this?
ESP32 Thing BLE sketch compile errors.txt (4.4 KB)
I haven’t seen that before, but almost every time I have a compile error for esp32 it’s because arduino has gotten the board definitions mixed up somehow; try wiping the board def folder like so https://support.arduino.cc/hc/en-us/art … rduino-IDE (delete the add’l files folder and re-install the board definitions) and try again
First of all, thanks for the reply.
I followed the link you gave. They mention “removing additional files” and you said “delete the add’l files folder”, but I don’t have an “additional files” folder. Are you referring to the “libraries” folder? My libraries folder has 51 subfolders in it. Maybe that’s part of my problem.
Thanks.
Yep…just wipe it all and reinstall as needed is usually the fastest way to get it going again…I’ve had to do it 3-4x per year lol
I will delete the library files this weekend and try it all again. Thanks.
You were right. I emptied the libraries folder, reinstalled the ESP32 libraries upon startup of the IDE (2.0.1), and now the ESP32 apps compile no problem. I guess years of accumulating library files somehow got things screwed up. Thanks so much for the advice!