Can't Compile ESP32 (First time)

Post Reply
unity-control
Posts: 26
http://meble-kuchenne.info.pl
Joined: Wed Sep 08, 2021 10:36 pm
Has thanked: 15 times
Been thanked: 5 times

Can't Compile ESP32 (First time)

Post 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 238 times

LeighM
Matrix Staff
Posts: 231
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 38 times
Been thanked: 52 times

Re: Can't Compile ESP32 (First time)

Post 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)

unity-control
Posts: 26
Joined: Wed Sep 08, 2021 10:36 pm
Has thanked: 15 times
Been thanked: 5 times

Re: Can't Compile ESP32 (First time)

Post 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 205 times

BenR
Matrix Staff
Posts: 746
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 149 times
Been thanked: 235 times

Re: Can't Compile ESP32 (First time)

Post 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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel

unity-control
Posts: 26
Joined: Wed Sep 08, 2021 10:36 pm
Has thanked: 15 times
Been thanked: 5 times

Re: Can't Compile ESP32 (First time)

Post 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

Post Reply