• 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

ESP32 Software install

Q&A Forum › Category: ESP32 › ESP32 Software install
0 Vote Up Vote Down
Thomas Perillo asked 7 years ago

I get errors when installing ESP32 software:
error: could not lock config file .git/config: Permission denied
fatal: Failed to register url for submodule path ‘libraries/AzureIoT’
I do have full admin privileges for C:/Users/User/Document/Arduino
The hardware and espressif folders are created but not the esp32 folder.
If I  download the zipped files from GitHub directly into the esp32 folder and run get.exe, the command window seems to run correctly.( downloading: xtensa-esp32-elf-win32 ect.,
When I attemts to validate the Wifi Scan example I get the following error:
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: “ESP32 Dev Module, Default, QIO, 80MHz, 4MB (32Mb), 115200, None”
exec: “C:\\Users\\User\\Documents\\Arduino\\hardware\\espressif\\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++”: file does not exist
Error compiling for board ESP32 Dev Module.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
 
Would appreciate any tips to Install the Esp 32 board software.

Question Tags: Software Install
28 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hello Thomas,

Did you run the get.exe file as an administrator? Can you re-run that file as an admin (right-click the file and select “Run as administrator”?

Then, re-open the Arduino IDE (try to open it as admin too) and try to upload the code again…

Let me know your results. Thanks for your patience!

0 Vote Up Vote Down
Marco Torrico answered 7 years ago

Hello, I have the same error!
exec: “C:\\Users\\Grace\\Documents\\Arduino\\hardware\\espressif\\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++”: file does not exist
Error compiling for board DOIT ESP32 DEVKIT V1.

0 Vote Up Vote Down
Marco Torrico answered 7 years ago

Finally,  WORKING!!!
change the newest git version.
from   Git-2.17.0-32-bit  — to –>  Git-2.18.0-32-bit
 

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

Marco,
Thanks for the update.
Rui,
I changed to the new git version like Marco suggested.  Got less errors but when I ran “get.exe” as administrator, “extensa” seemed to be downloading but I never saw the extraction message.  Also never saw any other files being compiled … esptool, mkspiffs, etc

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

Thanks for the tip Marco!

Thomas, sometimes those messages disappear very quickly and I think it probably downloaded everything properly. Does it compile your code now?

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

Hi Rui,
Unfortunately, the xtensa-esp3 code starts downloading but never compiles.  The command window disappears before the compiling begins or any other files are downloaded.  

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

Hi Rui,
I think the xtensa file compiled successfully.
 
When I try to run the wifi sketch I get an Arduino message saying:
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 921600, None”
exec: “C:\\Users\\User\\Documents\\Arduino\\hardware\\espressif\\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++”: file does not exist
Error compiling for board DOIT ESP32 DEVKIT V1.
However when I look in the bin folder I do see a file xtensa-esp32-elf-g++.exe
Can you take a look at the photo of my esp32 board.  Maybe I should be choosing another board?
Any other suggestions?
Tom

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

Hi Rui,
Disregard the previous message.  The scan network sketch seems to be working.  
 

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

Sorry for all the trouble and extra steps that you had to figure out… I’m not sure what’s happening in your use case and I can’t replicate that problem on my end.

Is it working now with all the examples?

What did you do differently this time? Any idea why it’s working now, so I can fix the installation guide?

Thanks for your patience Thomas!

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

Hi Rui,
I am a bit of a novice with all this stuff and was just trying to get into the lessons … so I have no insights on what I did.  In fact this morning I tried to run the Scan Networks sketch and it failed with multiple errors … and I did not change anything from yesterday.  So I ran a simple Blink Sketch (Pin = 2) that I found on the internet, and the blue board LED blinks (after getting some internet advise on how to fix the board not connecting — pressing the EN and Boot buttons in a certain sequence).  
 
Here is the error stuff when trying to run the Scan Networks sketch:
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: “ESP32 Dev Module, Default, QIO, 80MHz, 4MB (32Mb), 115200, None”
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\WiFi\examples\ScanNetworks\ScanNetworks.ino: In function ‘void setup()’:
ScanNetworks:35: error: ‘class WiFiClass’ has no member named ‘firmwareVersion’
String fv = WiFi.firmwareVersion();
^
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\WiFi\examples\ScanNetworks\ScanNetworks.ino: In function ‘void printEncryptionType(int)’:
ScanNetworks:100: error: ‘ENC_TYPE_WEP’ was not declared in this scope
case ENC_TYPE_WEP:
^
ScanNetworks:103: error: ‘ENC_TYPE_TKIP’ was not declared in this scope
case ENC_TYPE_TKIP:
^
ScanNetworks:106: error: ‘ENC_TYPE_CCMP’ was not declared in this scope
case ENC_TYPE_CCMP:
^
ScanNetworks:109: error: ‘ENC_TYPE_NONE’ was not declared in this scope
case ENC_TYPE_NONE:
^
ScanNetworks:112: error: ‘ENC_TYPE_AUTO’ was not declared in this scope
case ENC_TYPE_AUTO:
^
Multiple libraries were found for “WiFi.h”
Used: C:\Users\User\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\WiFi
exit status 1
‘class WiFiClass’ has no member named ‘firmwareVersion’
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

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

Sorry for taking so long to get back to you, but it’s been very hard to keep up with all the emails and questions for the past few days. I think you have multiple installations of your Arduino IDE in your system that is causing that problem…

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

Do you have the Arduino 1.8.10 installed? I think that version is not even available through the Arduino.cc website. I would probably remove all the Arduino installation and use the 1.8.5 portable version…

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

Thanks for the tip.  I had reinstalled Arduino at one point to make sure I had the most updated version.  Did not realize I installed some kind of beta version.  Installing the stable version should take care of some of the buggy behavior with the ESP board.

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

The “Multiple libraries were found” it’s a common warning message and sometimes you can ignore it… However, when it doesn’t allow you to compile your code it means that your Arduino IDE is not using the ESP32 Wi-Fi library, but it’s using the Arduino board Wi-Fi library resulting in failing to compile.

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

I think to solve all your problems and make it work more reliably, I would delete the entire espressif folder again, uninstall all the Arduino IDEs, download the Arduino IDE portable version 1.8.5, and re-install the ESP32 add-on.

If after that you keep having that same problem, please let me know, so we can figure out another solution. Thanks for your patience and collaboration throughout this process!

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

After doing what you suggested I got Git Gui: error
    Uninstalled the Arduino Program that was installed (I do have a Microduino still installed);  Searched all         folders in my computer for Arduino.exe locations and deleted some zipped folders with Arduino intallation folders.
    Deleted the hardware/espressif/esp32 folder in the sketchbook location C:/Users/User/Documents/Arduino
    Opened Git Gui as Admin, clicked on ‘clone existing repository’ and entered:
       Source Location: https://github.com/espressif/arduino-esp32.git
       Target Location: C/Users/User/Documents/Arduino/hardware/espressif/esp32
    Clicked on Clone and got an error message:
Failed to create repository
C/Users/User/Documents/Arduino/hardware/espressif/esp32:
C/Users/User/Documents/Arduino/hardware/espressif/esp32/.git: Permission denied
(I [User] have full privileges for the Arduino folder)
I’m guessing the next step is to download the espressif files directly from GitHub?

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

I honestly don’t know how you can have that error being printed, even if you’re running the Git GUI as an admin.

Yes, downloading the espressif files and move them to the /hardware/espressif/esp32 works.

The only disadvantage of doing that process is that you need to re-download the repository to keep it updated in the future, but it works just fine.

Do you have multiple users in your Windows PC? Are you using the main user with admin privileges?

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

I do have multiple users and I am using a user named “User” that has full privileges.
I downloaded the necessary software to the Administrator account. NOW, the GitGui seemed to work correctly (it  shows the  path to the repository.
However when I run the network scan sketch, I get error messages. (see below).
If I run an alternate network scan sketch  it displays networks (see below)
************************************************************************************************************************
ERROR MESSAGES ON WIFI EXAMPLE SKETCH
Arduino: 1.8.5 (Windows 10), Board: “ESP32 Dev Module, Default, QIO, 80MHz, 4MB (32Mb), 115200, None”
C:\Users\ADMINI~1\AppData\Local\Temp\arduino_modified_sketch_273507\ScanNetworks.ino: In function ‘void setup()’:
ScanNetworks:52: error: ‘class WiFiClass’ has no member named ‘firmwareVersion’
String fv = WiFi.firmwareVersion();
^
C:\Users\ADMINI~1\AppData\Local\Temp\arduino_modified_sketch_273507\ScanNetworks.ino: In function ‘void printEncryptionType(int)’:
ScanNetworks:117: error: ‘ENC_TYPE_WEP’ was not declared in this scope
case ENC_TYPE_WEP:
^
ScanNetworks:120: error: ‘ENC_TYPE_TKIP’ was not declared in this scope
case ENC_TYPE_TKIP:
^
ScanNetworks:123: error: ‘ENC_TYPE_CCMP’ was not declared in this scope
case ENC_TYPE_CCMP:
^
ScanNetworks:126: error: ‘ENC_TYPE_NONE’ was not declared in this scope
case ENC_TYPE_NONE:
^
ScanNetworks:129: error: ‘ENC_TYPE_AUTO’ was not declared in this scope
case ENC_TYPE_AUTO:
^
Multiple libraries were found for “WiFi.h”
Used: C:\Users\Administrator\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
‘class WiFiClass’ has no member named ‘firmwareVersion’
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
 
****************************************************************************************
ALTERNATE WIFI SCAN SKETCH
/*
 *  This sketch demonstrates how to scan WiFi networks.
 *  The API is almost the same as with the WiFi Shield library,
 *  the most obvious difference being the different file you need to include:
 */
#include “WiFi.h”
 
void setup()
{
    Serial.begin(115200);
 
    // Set WiFi to station mode and disconnect from an AP if it was previously connected
    WiFi.mode(WIFI_STA);
    WiFi.disconnect();
    delay(100);
 
    Serial.println(“Setup done”);
}
 
void loop()
{
    Serial.println(“scan start”);
 
    // WiFi.scanNetworks will return the number of networks found
    int n = WiFi.scanNetworks();
    Serial.println(“scan done”);
    if (n == 0) {
        Serial.println(“no networks found”);
    } else {
        Serial.print(n);
        Serial.println(” networks found”);
        for (int i = 0; i < n; ++i) {
            // Print SSID and RSSI for each network found
            Serial.print(i + 1);
            Serial.print(“: “);
            Serial.print(WiFi.SSID(i));
            Serial.print(” (“);
            Serial.print(WiFi.RSSI(i));
            Serial.print(“)”);
            Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?” “:”*”);
            delay(10);
        }
    }
    Serial.println(“”);
 
    // Wait a bit before scanning again
    delay(5000);
}

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

Hi Thomas,

I think I know what’s happening now and why you can’t compile Wi-Fi sketches. Your Arduino IDE is compiling the WiFi library for the Arduino board (instead of using the ESP32 WiFi library).

You probably never use any WiFi shield with your Arduino board, right? If you don’t use can you remove that folder/those folders from your Arduino IDE (move it to your desktop, for example)?

C:\Users\ruisantos\Downloads\arduino-1.8.5-windows\arduino-1.8.5\libraries\WiFi

And/or at

C:\Users\ruisantos\Documents\Arduino\libraries\libraries\WiFi

0 Vote Up Vote Down
Thomas Perillo answered 7 years ago

You are 100% correct.  I am a microcontroller novice and never used a WiFi shield on the Arduino.  
I found the ESP32 library folder at: C:\Users\User\Downloads\arduino-esp32-master\arduino-esp32-master and copied all the libraries to C:\Users\User\Documents\Arduino\libraries and now the WiFi example sketch works as you described in the tutorial.
Except for one thing.  I need to press the boot button when I see the ‘connecting … connecting …’ message in the Arduino message screen in order to get the board to connect.  I am using a Node MCU 36 pin board.  I have a Doit board on order.

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

I’m not sure why the WiFi library is installed in your system by default, because I don’t think it should…

With all my boards I don’t have to do that button press sequence, but I’ve realized that with some boards it’s necessary so I’ll be adding instructions about that in the next course update.

I’m also writing a new post on how to use the Atom text editor with PlatformIO IDE to program the ESP32. This will be alternative method that probably will avoid all those problems that you’ve faced in PC with different users permissions or multiple Arduino IDE installations.

Regards,
Rui

0 Vote Up Vote Down
Adam Kanis answered 7 years ago

Hi Rui,
I had the same issue. It was “stuck” during the get. It was executed as Administrator.
I may have a way ahead for others who are stuck, so i’m posting here.
Here is a screengrab:
Stuck during ESP32 software install with get

I gave up and closed that command box, then tried Git GUI using Remote, and when i tried to close Git GUI I had a .lock problem:
.lock problem with Git GUI
Tried multiple times to figure this one out, I think it was hitting No (or was it Yes) multiple times cleared the .lock.
The get.exe (with Administrator privileges) then worked fine (the text zips by really quick).
I confirmed the .lock clear by going to the directory with a Command Prompt and using dir /A .
My ESP32 boards are still on the boat from China, so haven’t confirmed that it all actually works yet, but I thought this might help others who are struggling with this.
–adam

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

Thanks Adam! I’ve never seen that message before.

Can you confirm that the ESP32 installation is working after clearing that file? Can you compile/upload code to your ESP32?

Thanks again!

0 Vote Up Vote Down
Adam Kanis answered 7 years ago

No joy.
Dev board came today, plugged it in and tried to upload the WiFiScan sketch.
I tried again starting at the Git Gui. Didn’t get the .lock issue, but still not installed.
looks like it didn’t install:
====================
Arduino: 1.8.5 (Windows 10), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 921600, None”
 
exec: “C:\\Users\\akani\\Documents\\Arduino\\hardware\\espressif\\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++”: file does not exist
Error compiling for board DOIT ESP32 DEVKIT V1.
 
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
==============================
I looked, and under tools/ , i have no folder named xtensa, so it really looks like it didn’t install.
BTW – does the combination of \\’s and /’s in the error message give us a hint?
–adam

0 Vote Up Vote Down
Adam Kanis answered 7 years ago

All my prior attempts were on my laptop. Now I decided to check things out on my desktop.
Installation went fine, no problems at all.  I noticed that during the _get_ action, things didn’t fly by superfast like during the failed installs on the laptop. Is there a way to get a log of what went down?
All 3 of the DOIT ESP32 DEVKIT V1’s I bought from Banggood functioned fine too once I updated the USB drivers
–adam

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

Hi Adam, I’m not sure why that happens, but it seems that sometimes the get.exe file is not run properly and it doesn’t download/install the necessary files to make the ESP32 add-on work. Unfortunately I can’t reproduce that error on my end or know how to fix that solution…

I think you’ll probably need to re-run the get.exe file to install everything and I’m not sure if you need to disable an anti-virus or plugin that is blocking the installation process.

I’m glad it’s working on your other computer.

0 Vote Up Vote Down
Adam Kanis answered 7 years ago

Just for grins, i uninstalled Arduino and deleted all the directories under hardware, then tried again.
Same problem.
Here’s something i hope somebody might be able to help me with:
I made a new VirtualBox VM with Linux Mint 19. The whole installation went really smoother . . .BUT . . . . i can’t figure out how to use the USB serial port in the VM. The serial port works fine under windows host (eg, i can use USB serial (COM7) to talk with non-ESP32 boards, like my Adafruit m0 boards), but i haven’t yet been able to communicate with the board in the Linux VM. Can anybody help? There are so many choices / options before and after the VM is started.
THanks. –adam

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

Hello Adam,

I honestly don’t have much experience with VMs, I only use Linux (Ubuntu) in dual-boot… I would consider taking a look at the new Unit about programming the ESP32 with Atom + PlatformIO IDE: https://rntlab.com/programming-esp32-with-atom-text-editor-and-platformio-ide/

This method also has it’s quirks, but from my experience it’s easier to install under Windows.

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.