Hello!
WIn11.
I have just tryed to install ESP toolchain and have follow the guide. When I compile to the target I get this error message, How can I solve this?
Monie
ESP toolcain!
-
- Posts: 73
- http://meble-kuchenne.info.pl
- Joined: Wed Oct 19, 2022 4:06 pm
- Has thanked: 1 time
-
- Matrix Staff
- Posts: 1457
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 513 times
- Been thanked: 473 times
Re: ESP toolcain!
Hello.
That could be caused by the ESP toolchain not being correctly installed.
If it does not work after rebooting your PC then Can you uninstall all, including python, and follow my post here
That could be caused by the ESP toolchain not being correctly installed.
If it does not work after rebooting your PC then Can you uninstall all, including python, and follow my post here
Martin
-
- Matrix Staff
- Posts: 1457
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 513 times
- Been thanked: 473 times
Re: ESP toolcain!
Hi.
First I would recommend uninstalling the toolcain and python and starting again.
Then the installation instructions, I would suggest downloading the toolchain form here instead.
You should have two separate directories.
one for esp and one for tools.
E.g I have:
Don't have the tools folder within the esp-idf folder, they must be kept separate.
Install IDF with a version lower than 4.2 e.g 4.1 release
If you are not sure on the installed versions including git and python, you will need to run ESP-IDF Command Prompt
This can be found on your desktop.
Alternatively, press your windows key and scroll down to ESP-IDF, select it, and you should see the ESP-IDF Command Prompt.
Type then the enter key
then the enter key
then the enter key
If you have the correct version of ESP IDF, you could try entering within the ESP-IDF command prompt
First I would recommend uninstalling the toolcain and python and starting again.
Then the installation instructions, I would suggest downloading the toolchain form here instead.
You should have two separate directories.
one for esp and one for tools.
E.g I have:
Code: Select all
C:\esp-idf
Code: Select all
C:\esp-idf-tools
Install IDF with a version lower than 4.2 e.g 4.1 release
If you are not sure on the installed versions including git and python, you will need to run ESP-IDF Command Prompt
This can be found on your desktop.
Alternatively, press your windows key and scroll down to ESP-IDF, select it, and you should see the ESP-IDF Command Prompt.
Type
Code: Select all
idf.py --version
Code: Select all
Git --version
Code: Select all
python --version
If you have the correct version of ESP IDF, you could try entering within the ESP-IDF command prompt
Code: Select all
install.bat esp32
Martin
-
- Matrix Staff
- Posts: 1265
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 279 times
Re: ESP toolcain!
For info, I've just installed Flowcode V9 and the 3rd party ESP toolchain on a fresh Win11 laptop and I can confirm it's working. I used the 4.1.3 release when given the options.
However, the installation did fail with a return code of 2 the first time I tried running the installer. I think this was because I set the installation going and then left the PC, so perhaps I missed the questions to install Git and PowerShell which were maybe auto-dismissed.
After restarting the PC and then running the installer again, I did get to say "yes" to the questions about Git and PowerShell, and the installer completed successfully. And after pointing Flowcode to the correct location of the ESP toolchain, I was able to successfully compile a simple ESP project.
Hopefully this info and medelec35's posts will help others who are having problems.
However, the installation did fail with a return code of 2 the first time I tried running the installer. I think this was because I set the installation going and then left the PC, so perhaps I missed the questions to install Git and PowerShell which were maybe auto-dismissed.
After restarting the PC and then running the installer again, I did get to say "yes" to the questions about Git and PowerShell, and the installer completed successfully. And after pointing Flowcode to the correct location of the ESP toolchain, I was able to successfully compile a simple ESP project.
Hopefully this info and medelec35's posts will help others who are having problems.
Re: ESP toolcain!
Hi!
I have now tryed to uninstall and reinstall the EspToll chain several time, I follow the guide step by step, still not possible to compile.
I have guide the parh via Wiev>global setting >location. Same error every time. Please help.
Monie
I have now tryed to uninstall and reinstall the EspToll chain several time, I follow the guide step by step, still not possible to compile.
I have guide the parh via Wiev>global setting >location. Same error every time. Please help.
Monie
- Attachments
-
- Test.msg.txt
- (1.71 KiB) Downloaded 51 times
Last edited by chipfryer27 on Wed Nov 30, 2022 9:54 pm, edited 1 time in total.
Reason: Delete sensitive information such as license etc in attached file
Reason: Delete sensitive information such as license etc in attached file
-
- Valued Contributor
- Posts: 977
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 105 times
- Been thanked: 516 times
Re: ESP toolcain!
The esp tools don't look to have installed correctly (export.bat and idf.py not found). If you try from a command line (Windows key, cmd) - have a look in the esp directory (which FC has as users\sun\.espressif\)
If there is a file 'install.bat' - try running that (so from command line just cd to the install directory and then type 'install' (without the quotes)
It's definitely a black art getting a setup working - I had to run the installation multiple times - so once you have it working make a backup!
Martin
If there is a file 'install.bat' - try running that (so from command line just cd to the install directory and then type 'install' (without the quotes)
It's definitely a black art getting a setup working - I had to run the installation multiple times - so once you have it working make a backup!
Martin
-
- Matrix Staff
- Posts: 1265
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 279 times
Re: ESP toolcain!
Hi Monie,
I'm sorry about the problems you are having. I wish we could make it easier, but that toolchain is ours to control.
Some thoughts - did you use the ESP installer that is on our website from this page? Did you receive and accept the prompts for Git and Windows PowerShell? What version of ESP-IDF did you install when prompted (v4.1.3 worked for me)? Were there any errors reported at any stage of the installation process?
When I successfully installed this yesterday, I followed our instructions exactly - including the locations (i.e. C:\esp-idf and C:\esp-idf-tools). Perhaps you could try that?
I'm sorry about the problems you are having. I wish we could make it easier, but that toolchain is ours to control.
Some thoughts - did you use the ESP installer that is on our website from this page? Did you receive and accept the prompts for Git and Windows PowerShell? What version of ESP-IDF did you install when prompted (v4.1.3 worked for me)? Were there any errors reported at any stage of the installation process?
When I successfully installed this yesterday, I followed our instructions exactly - including the locations (i.e. C:\esp-idf and C:\esp-idf-tools). Perhaps you could try that?
Re: ESP toolcain!
Hi Steve/Martin!
First I uninstall ESP and Pyton. Then I install the Steve´s version of ESP NOt help. THen I try to run Martin´s advice to install from ESP-4.3 CMD
same error. Could i be my Antivirus program ESET Internet SECURITY ?
Please.
Monie
First I uninstall ESP and Pyton. Then I install the Steve´s version of ESP NOt help. THen I try to run Martin´s advice to install from ESP-4.3 CMD
same error. Could i be my Antivirus program ESET Internet SECURITY ?
Please.
Monie
- Attachments
-
- Compiler Messages ESP32.jpg (63.39 KiB) Viewed 1743 times
-
- Error.jpg (22.9 KiB) Viewed 1756 times
-
- Matrix Staff
- Posts: 1265
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 279 times
Re: ESP toolcain!
I use ESET on some PCs and have not noticed it being a problem.
So are you saying that when you used the ESP installer I told you about, you received no errors during the lengthy installation process and also correctly received and accepted the 2 prompts for elevation (for Git and for Windows PowerShell)?
And also, did you install it in the locations in the instructions? - i.e. C:\esp-idf and C:\esp-idf-tools
So are you saying that when you used the ESP installer I told you about, you received no errors during the lengthy installation process and also correctly received and accepted the 2 prompts for elevation (for Git and for Windows PowerShell)?
And also, did you install it in the locations in the instructions? - i.e. C:\esp-idf and C:\esp-idf-tools