• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

FIX for Invalid BLE Library in Arduino IDE using ESP32

Q&A Forum › Category: Other › FIX for Invalid BLE Library in Arduino IDE using ESP32
0 Vote Up Vote Down
TekMason asked 5 years ago

After setting up the Arduino IDE (portable) for a DOIT ESP32 DEVKIT V1 board I noticed an error that displayed every time I compiled and uploaded a sketch:

Invalid library found in C:\arduino-1.8.5-esp32\hardware\espressif\esp32\libraries\BLE: C:\arduino-1.8.5-esp32\hardware\espressif\esp32\libraries\BLE

To fix this error:

  1. Close all Arduino IDE windows
  2. Run gitbash
  3. Change the current directory to <arduino_folder>/hardware/espressif/esp32.  c:/arduino-1.8.5-esp32/ is the path to my portable install. Yours may be different
    $ cd /c/arduino-1.8.5-esp32/hardware/espressif/esp32/
    user@machine MINGW64 /c/arduino-1.8.5-esp32/hardware/espressif/esp32 (master)
  4. Initialise (download) the sub-modules (BLE library)
    $ git submodule update --init
    Submodule 'libraries/BLE' (https://github.com/nkolban/ESP32_BLE_Arduino.git) registered for path 'libraries/BLE'
    Cloning into 'C:/arduino-1.8.5-esp32/hardware/espressif/esp32/libraries/BLE'...
    Submodule path 'libraries/BLE': checked out '6bad7b42a96f0aa493323ef4821a8efb0e8815f2'
    user@computer MINGW64 /c/arduino-1.8.5-esp32/hardware/espressif/esp32 (master)
    $ 

TM

Question Tags: ESP32 Arduino IDE Error
6 Answers
0 Vote Up Vote Down
TekMason answered 5 years ago

Ruis,
I noticed in some of the ESP32 videos you also have this error.
BTW is there any way to edit posts to the forum?
TM

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Sorry about that. As I said in a previous comment, the current Forum system is very limited and enabling editing caused some permission errors (I had to disable it).
 
I had that error in of the videos, because I’ve manually downloaded the library from GitHub with the download .zip button. Since the BLE library is linked to another repository, it didn’t download correctly causing that error.
 
However, if you’re on a clean installation and you follow the exact procedure in the course, it should automatically install the BLE library without further changes/tweaks. 
 
Thanks for letting me know about this issue and I’ll try to fix it or point anyone to this thread that has the same problem.

0 Vote Up Vote Down
TekMason answered 5 years ago

I used the Git Bash command line

git clone https://github.com/espressif/arduino-esp32.git esp32

which should in theory behave exactly the same as the Git GUI procedure outlined in the course.
If I get a moment I’ll test it with the GUI.
Thx,
TM

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Thanks for taking the time to post the solution!

0 Vote Up Vote Down
Paul G answered 5 years ago

FTW, as I also did a manual install from zips (couldn’t be bothered with git on the win pc I am doing the course on) I just grabbed the zip from https://github.com/nkolban/ESP32_BLE_Arduino/tree/af865a916795289c8e7e09b091ff2140c33fc3fe , unzipped it and moved the contents into the folder
<your arduino files>/hardware/espressif/arduino-esp32/libraries/BLE
Don’t know if this is going to cause BLE problems further down the line, but certainly got rid of err msg.

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hi Paul, it shouldn’t cause any issues, but you’ll have to manually update the libraries (meaning deleting everything and downloading with GitHub again to get the latest files).

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.