Page 1 of 1

Can't Compile ESP32 (First time)

Posted: Wed Oct 20, 2021 4:23 pm
by unity-control
HI guys,

I've followed the document "ESP_Installation_Instructions.pdf". First time compile I get the following error:

Code: Select all

Device:        ESP.ESP32.ESP32
Generated by:  Flowcode v9.2.0.33
Date:          Wednesday, October 20, 2021 17:05:52
Users:         1
Registered to: unity-control (61547677)
Licence key: E73XRB
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat  "c:\esp-idf\" "Flowcode_ESP32_TEST" "D:\Projects\Gaming\Unity\FC9\" esp32s_sdkconfig 

D:\Projects\Gaming\Unity\FC9>REM CRC: ...

D:\Projects\Gaming\Unity\FC9>REM REVISION: 4.0 

D:\Projects\Gaming\Unity\FC9>REM GUID: 955EA920-4961-4C53-BA6B-EF4AF66BB4C2 

D:\Projects\Gaming\Unity\FC9>REM DATE: 29\03\2021 

D:\Projects\Gaming\Unity\FC9>REM DIR: FCD\ESP\Batch\esp32_build.bat 
Building Flowcode_ESP32_TEST ...
'"c:\esp-idf\export.bat"' is not recognized as an internal or external command,
operable program or batch file.
'idf.py' is not recognized as an internal or external command,
operable program or batch file.

Build Failed

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1

Autoclose turned off


FINISHED
global_settings.jpg
global_settings.jpg (51.19 KiB) Viewed 1992 times

Re: Can't Compile ESP32 (First time)

Posted: Thu Oct 21, 2021 7:55 am
by LeighM
Can you check if there is a directory esp-idf on the root of drive C
It might be installed on your desktop? (e.g. C:\Users\xxxxx\Desktop\esp-idf)

Re: Can't Compile ESP32 (First time)

Posted: Fri Oct 22, 2021 10:26 am
by unity-control
Hi Leigh,

Thanks for this, I have checked and there is a folder there and some files inside...
esp_idf_folder.jpg
esp_idf_folder.jpg (15.29 KiB) Viewed 1959 times

Re: Can't Compile ESP32 (First time)

Posted: Fri Oct 22, 2021 11:13 am
by BenR
Hello,

There are two folders that are installed during the toolchain installation. The ESP-IDF folder and the ESP-IDF-Tools folder.

The folder you are showing there is the ESP-IDF-Tools folder but you need to be pointing Flowcode to the ESP-IDF folder. If you set both folders to be in the same place then it might not have liked that.

Maybe uninstall and re-install the toolchain and make a note of the directories you select.

I have the following directories for the toolchain but they can be just about anything as long as there are no spaces in the path.

D:\Dev\FlowcodeV9\Compilers\esp-idf
D:\Dev\FlowcodeV9\Compilers\esp-idf-tools

Re: Can't Compile ESP32 (First time)

Posted: Fri Oct 22, 2021 2:54 pm
by unity-control
Hi Ben,

Many thanks for clarifying, I was doing something wrong, I now got the 2 separate folders under c:\dev and compilation works perfectly well!

Thanks again!
R