ESP32 Compiling error

For general Flowcode discussion that does not belong in the other sections.
jollybv
Posts: 125
http://meble-kuchenne.info.pl
Joined: Mon Mar 08, 2021 11:25 am
Location: Cape Town South Africa
Has thanked: 40 times
Been thanked: 11 times

ESP32 Compiling error

Post by jollybv »

Hi guys I'm getting this error while trying to compile to the esp32 module. I have the Python 3.7 & 3.9 installed on my machine i have installed the esp-idf-tools-setup-offline-2.10 and set the global settings for the esp32 to the folder the esp-idf is in but cannot get this to compile
ESP32 .png
ESP32 .png (181.58 KiB) Viewed 4088 times
Not sure where to go from here to get it working

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: ESP32 Compiling error

Post by medelec35 »

Hi, Brian.
What I have found is python 3.7 when used to compile to ESP32 works.
Any higher version I have had issues with e.g lots of compile errors.
I would recommend, uninstalling v3.9
If that had caused an issue then it might be worth uninstalling all, then deleting the esp directories.
I would also delete the New folder that has the file name used for your project but has underscores.
E.g If your flowchart is within a folder called Power Monitor, when you compile for the first time a new folder called Power_Monitor will be created.
It's the newly created folder that will require deleting.
Then follow these instructions carfully .
If 3.7 is not a choice then install the nearest available version.
Martin

jollybv
Posts: 125
Joined: Mon Mar 08, 2021 11:25 am
Location: Cape Town South Africa
Has thanked: 40 times
Been thanked: 11 times

Re: ESP32 Compiling error

Post by jollybv »

Hi Martin

Thanks for the reply I have followed the flowcode esp32 tool chain installation many times with no luck the one thing i have noticed is that when you get ready to install section my files are loaded in different directory
esp32-2.png
esp32-2.png (54.59 KiB) Viewed 4062 times
My installation
esp32-3.png
esp32-3.png (22.54 KiB) Viewed 4062 times
The message I'm getting now when compiling and I've set the global settings location for the esp to F:\esp-idf
Compile 2.png
Compile 2.png (206.56 KiB) Viewed 4060 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: ESP32 Compiling error

Post by medelec35 »

Hi Brian,
Before installing, if deleted the folders you get the option to enter the path on the next install:
Setting up Paths.png
Setting up Paths.png (107.84 KiB) Viewed 4043 times
Was there not an option to add python to the environmental path?
Within windows search on the taskbar, type cmd then enter.
Enter python
If the path has a been enabled you will see something like:

Code: Select all

Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
If not recognised then the path will need setting up.
You can check the environmental path by enter ctrl z
then type path enter.
You need to make sure python is within the path.
If not, it will require adding.
Martin

jollybv
Posts: 125
Joined: Mon Mar 08, 2021 11:25 am
Location: Cape Town South Africa
Has thanked: 40 times
Been thanked: 11 times

Re: ESP32 Compiling error

Post by jollybv »

Hi Martin

I have created the folders and it has installed in them the only thing is that they on F drive esp-idf and esp-idf-tools.
I did select python when installing and if i go to add remove programs it is there. I have typed python int the cmd window and it returns
Python.png
Python.png (7.17 KiB) Viewed 4040 times
so not sure why it is not picking it up. do you think there is something wrong with the installer

LeighM
Valued Contributor
Posts: 394
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 69 times
Been thanked: 208 times

Re: ESP32 Compiling error

Post by LeighM »

Hi,
Could you run the "ESP-IDF Command Prompt" (not standard Cmd Prompt)
this should be on your desktop.
See if any errors are reported.
Then type
python --version
and see if Python runs and reports same version.

jollybv
Posts: 125
Joined: Mon Mar 08, 2021 11:25 am
Location: Cape Town South Africa
Has thanked: 40 times
Been thanked: 11 times

Re: ESP32 Compiling error

Post by jollybv »

Hi,
I have done that and everything is right
python version.png
python version.png (48.55 KiB) Viewed 4028 times
I'm really at a Los as I have done everything according to the installation instructions.

LeighM
Valued Contributor
Posts: 394
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 69 times
Been thanked: 208 times

Re: ESP32 Compiling error

Post by LeighM »

OK, thanks
Can you now re-try your project and post the msg.txt file?

jollybv
Posts: 125
Joined: Mon Mar 08, 2021 11:25 am
Location: Cape Town South Africa
Has thanked: 40 times
Been thanked: 11 times

Re: ESP32 Compiling error

Post by jollybv »

Its still the same telling me that i don't have python installed
compiler message.png
compiler message.png (238.38 KiB) Viewed 4026 times
ESP32_Blinker.msg.txt
(2.53 KiB) Downloaded 142 times

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ESP32 Compiling error

Post by BenR »

Hello,

Tha's very strange, is Python installed on a different hard drive? Might be worth checking that the Python executable is on your windows path just in case this is causing problems.

https://www.architectryan.com/2018/03/1 ... indows-10/

You can also maybe try launching the compilation from the ESP-IDF Command Prompt and see if this works or reports the same error. Just navigate to your project directory and then into the build folder created by Flowcode then type in the following command to compile and program. Change COM5 for your COM port.

idf.py flash -p COM5

CMD.jpg
CMD.jpg (107.59 KiB) Viewed 4023 times

As a last resort maybe try re-installing the idf but using the Python it packages with it. This includes things ike PySerial and other none standard libraries so maybe will include anything your currently potentially missing.

Post Reply