"No Toolchain found for Target ESP32C3" / No compilers installed
"No Toolchain found for Target ESP32C3" / No compilers installed
I spent several hours trying to install the ESP-IDF under Windows 10. I followed the documentation exactly, except the documentation differs from what I actually see. I have tried online and offline installers. When the installation finishes I get a menu which says Completing the ESP-IDF Tools Setup Wizard and allows me to chose Run ESP-IDF Eclipse and/or Register the ESP-IDF tools
I do not see the menu described in the documentation. I have tried running the powershell and cmd as per the menu. When I ran those commands I got variations of
"Not using an unsupported version of tool cmake found in PATH: 3.17.3."
I modified my path so that the path to the IDF was first and those errors went away. I was then able to compile hello_world for esp-32 and esp-32s2. If I attempt
idf.py set-target esp32c3 (https://docs.espressif.com/projects/esp ... .html#id11 )
I get
Usage: C:\Users\bjpic\Desktop\esp-idf-5\tools\idf.py set-target [OPTIONS] {esp32|esp32s2}
Try 'C:\Users\bjpic\Desktop\esp-idf-5\tools\idf.py set-target --help' for help.
Error: Invalid value for '{esp32|esp32s2}': 'esp32c3' is not one of 'esp32', 'esp32s2'.
Running ESP-IDF Eclipse yields similar results except for esp32c3 I get
Build not configured correctly
and for esp32/esp32s2 it compiles, however, my include files and all the assorted things in them are flagged as unresolved. I consider this a separate issue.
Having done a search of my PC, there are no compilers for ESP32-C3 present.
Can somebody please help.
Thanks.
I do not see the menu described in the documentation. I have tried running the powershell and cmd as per the menu. When I ran those commands I got variations of
"Not using an unsupported version of tool cmake found in PATH: 3.17.3."
I modified my path so that the path to the IDF was first and those errors went away. I was then able to compile hello_world for esp-32 and esp-32s2. If I attempt
idf.py set-target esp32c3 (https://docs.espressif.com/projects/esp ... .html#id11 )
I get
Usage: C:\Users\bjpic\Desktop\esp-idf-5\tools\idf.py set-target [OPTIONS] {esp32|esp32s2}
Try 'C:\Users\bjpic\Desktop\esp-idf-5\tools\idf.py set-target --help' for help.
Error: Invalid value for '{esp32|esp32s2}': 'esp32c3' is not one of 'esp32', 'esp32s2'.
Running ESP-IDF Eclipse yields similar results except for esp32c3 I get
Build not configured correctly
and for esp32/esp32s2 it compiles, however, my include files and all the assorted things in them are flagged as unresolved. I consider this a separate issue.
Having done a search of my PC, there are no compilers for ESP32-C3 present.
Can somebody please help.
Thanks.
-
- Posts: 364
- Joined: Mon Jan 04, 2021 2:06 pm
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
Hi,
I looks you are using the ESP-IDF v4.2 (only supports ESP32 and ESP32-S2).
To support ESP32-C3, you'll need to upgrade to v4.3 or v4.4 (master).
I looks you are using the ESP-IDF v4.2 (only supports ESP32 and ESP32-S2).
To support ESP32-C3, you'll need to upgrade to v4.3 or v4.4 (master).
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
Geez. I followed exactly the instructions here https://docs.espressif.com/projects/esp ... -variables
You'd think the instructions for ESP32-C3 would be correct.
Thanks!
I'll give it a try.
You'd think the instructions for ESP32-C3 would be correct.
Thanks!
I'll give it a try.
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
Now when I try to run install.bat I get the error
ERROR: This script was called from a virtual environment, can not create a virtual environment again
I am perplexed by the multitude of conflicting and non-working installation instructions.
Can anybody point me to a (working) step by step ESP-IDF installation instruction which supports ESP32-C3?
Thanks
ERROR: This script was called from a virtual environment, can not create a virtual environment again
I am perplexed by the multitude of conflicting and non-working installation instructions.
Can anybody point me to a (working) step by step ESP-IDF installation instruction which supports ESP32-C3?
Thanks
-
- Posts: 364
- Joined: Mon Jan 04, 2021 2:06 pm
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
You can use git clone to get the latest version on master and then to use the install script manually.
We have another approach but we are still preparing a detailed guide on how to use: https://github.com/espressif/idf-env
Code: Select all
git clone --recursive https://github.com/espressif/esp-idf.git
Code: Select all
cd %userprofile%\esp\esp-idf
install.bat
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
Yes, I know. This is what happens
C:\Users\username\esp-idf>git checkout release/v4.3
Switched to a new branch 'release/v4.3'
Branch 'release/v4.3' set up to track remote branch 'release/v4.3' from 'origin'.
C:\Users\username\esp-idf>install
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache, dfu-util, idf-python-wheels
Skipping xtensa-esp32-elf@esp-2020r3-8.4.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2020r3-8.4.0 (already installed)
Skipping xtensa-esp32s3-elf@esp-2020r3-8.4.0 (already installed)
Skipping riscv32-esp-elf@1.24.0.123_64eb9ff-8.4.0 (already installed)
Skipping esp32ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping esp32s2ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping cmake@3.16.4 (already installed)
Installing openocd-esp32@v0.10.0-esp32-20210401
Downloading openocd-esp32-win32-0.10.0-esp32-20210401.zip to C:\Users\username\.espressif\dist\openocd-esp32-win32-0.10.0-esp32-20210401.zip.tmp
Done
Extracting C:\Users\username\.espressif\dist\openocd-esp32-win32-0.10.0-esp32-20210401.zip to C:\Users\username\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210401
Skipping ninja@1.10.2 (already installed)
Skipping idf-exe@1.0.1 (already installed)
Skipping ccache@3.7 (already installed)
Skipping dfu-util@0.9 (already installed)
Skipping idf-python-wheels@idf4.3_py3.9_2021-01-07 (already installed)
Setting up Python environment
ERROR: This script was called from a virtual environment, can not create a virtual environment again
C:\Users\username\esp-idf>
Note the error
EDIT I am trying again "clean"
EDIT I get exactly the same result.
Note that
git clone --recursive https://github.com/espressif/esp-idf.git
Installs into esp-idf, not esp/esp-idf, unless you run it from esp. Nonetheless,
cd %userprofile%\esp\esp-idf
install.bat
yields the same error
C:\Users\username\esp-idf>git checkout release/v4.3
Switched to a new branch 'release/v4.3'
Branch 'release/v4.3' set up to track remote branch 'release/v4.3' from 'origin'.
C:\Users\username\esp-idf>install
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache, dfu-util, idf-python-wheels
Skipping xtensa-esp32-elf@esp-2020r3-8.4.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2020r3-8.4.0 (already installed)
Skipping xtensa-esp32s3-elf@esp-2020r3-8.4.0 (already installed)
Skipping riscv32-esp-elf@1.24.0.123_64eb9ff-8.4.0 (already installed)
Skipping esp32ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping esp32s2ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping cmake@3.16.4 (already installed)
Installing openocd-esp32@v0.10.0-esp32-20210401
Downloading openocd-esp32-win32-0.10.0-esp32-20210401.zip to C:\Users\username\.espressif\dist\openocd-esp32-win32-0.10.0-esp32-20210401.zip.tmp
Done
Extracting C:\Users\username\.espressif\dist\openocd-esp32-win32-0.10.0-esp32-20210401.zip to C:\Users\username\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210401
Skipping ninja@1.10.2 (already installed)
Skipping idf-exe@1.0.1 (already installed)
Skipping ccache@3.7 (already installed)
Skipping dfu-util@0.9 (already installed)
Skipping idf-python-wheels@idf4.3_py3.9_2021-01-07 (already installed)
Setting up Python environment
ERROR: This script was called from a virtual environment, can not create a virtual environment again
C:\Users\username\esp-idf>
Note the error
EDIT I am trying again "clean"
EDIT I get exactly the same result.
Note that
git clone --recursive https://github.com/espressif/esp-idf.git
Installs into esp-idf, not esp/esp-idf, unless you run it from esp. Nonetheless,
cd %userprofile%\esp\esp-idf
install.bat
yields the same error
-
- Posts: 364
- Joined: Mon Jan 04, 2021 2:06 pm
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
The ERROR: This script was called from a virtual environment, can not create a virtual environment again means that you are trying to run the install from a virtual environment, created by the shortcuts after the installation process.
Can you try to use a new Console/PowerShell window? Not the ones created by ESP-IDF Installer.
Can you try to use a new Console/PowerShell window? Not the ones created by ESP-IDF Installer.
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
That is what I have been doing.
<windows key> R cmd
cd ing to the directory and running install.bat.
Bizarrely, when I installed the idf with the installer (i.e. the wrong one it told me to do with the ESP32-C3 instructions it did not complain but when I do it from git it does.
The git install does not appear to install python. but an earlier ESP-IDF install installed 3.8.7
C:\Users\bjpic\esp\esp-idf>python
Python 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:59:51) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Note that I am running on Windows 64, not Win32.
<windows key> R cmd
cd ing to the directory and running install.bat.
Bizarrely, when I installed the idf with the installer (i.e. the wrong one it told me to do with the ESP32-C3 instructions it did not complain but when I do it from git it does.
The git install does not appear to install python. but an earlier ESP-IDF install installed 3.8.7
C:\Users\bjpic\esp\esp-idf>python
Python 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:59:51) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Note that I am running on Windows 64, not Win32.
-
- Posts: 364
- Joined: Mon Jan 04, 2021 2:06 pm
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
I'm trying to help you, but I'm running Linux now and I cant test using the same scenario as yours.
Can you, kindly, try to add this command after the install .exe file from the command line?
For the v4.3
For master (v4.4)
You can define the version manually by using the argument /IDFVERSION=[VERSION].
This is documented at our GitHub: https://github.com/espressif/idf-installer
Can you, kindly, try to add this command after the install .exe file from the command line?
For the v4.3
Code: Select all
esp-idf-tools-setup-x.x.exe /IDFVERSION=[v4.3]
Code: Select all
esp-idf-tools-setup-x.x.exe /IDFVERSION=[master]
This is documented at our GitHub: https://github.com/espressif/idf-installer
Re: "No Toolchain found for Target ESP32C3" / No compilers installed
Thank you for the reply!
There is no program esp-idf-tools-setup-x.x.exe or of that general form on my system. I had versions of esp-idf-tools-setup-online-2.8, tools-setup-offline-2.8, etc., so I assumed that's what you meant.
When I run esp-idf-tools-setup-offline-2.8 /IDFVERSION=[v4.3] it offers me the option of setting up v4.2.1 or v4.1.1, exactly as per previous runs so I did not proceed.
However, I did happen upon this webpage https://github.com/espressif/idf-installer/releases and decided to try esp-idf-tools-setup-online-2.9-beta-05.exe.
This ran OK though I had to run install and export manually afterwards.
I can now run this
idf.py set-target esp32c3
and
idf.py build
successfully!
I have also flashed hello_world but I get garbage out of the serial port so I have to guess the proper baud rate.
Thanks for your help!
There is no program esp-idf-tools-setup-x.x.exe or of that general form on my system. I had versions of esp-idf-tools-setup-online-2.8, tools-setup-offline-2.8, etc., so I assumed that's what you meant.
When I run esp-idf-tools-setup-offline-2.8 /IDFVERSION=[v4.3] it offers me the option of setting up v4.2.1 or v4.1.1, exactly as per previous runs so I did not proceed.
However, I did happen upon this webpage https://github.com/espressif/idf-installer/releases and decided to try esp-idf-tools-setup-online-2.9-beta-05.exe.
This ran OK though I had to run install and export manually afterwards.
I can now run this
idf.py set-target esp32c3
and
idf.py build
successfully!
I have also flashed hello_world but I get garbage out of the serial port so I have to guess the proper baud rate.
Thanks for your help!
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 102 guests