Page 1 of 1

esp compile error

Posted: Tue Jan 16, 2024 3:05 pm
by noovas
Hello,
I am new with Flowcode 10 (free version). I have experience with Flowcode 6 but this was long time ago.....

So, when I try to compile to target I have this error:
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj

what I have found till now is if I have even just one component macro I receive this error.
Maybe I am doing something wrong or I should install something additional, or maybe component macros are not for the free version?
I appreciate any help.
thanks


===================
Python 3.7.3
git version 2.21.0.windows.1
ESP toolchain found at "C:\Users\User\Desktop\esp-idf\"
=========================

Re: esp compile error

Posted: Tue Jan 16, 2024 3:31 pm
by medelec35
Hello.
Can you post your Project name.fcfx project file and Project name.msg.txt fie

Re: esp compile error

Posted: Wed Jan 17, 2024 6:25 am
by noovas
medelec35 wrote:
Tue Jan 16, 2024 3:31 pm
Hello.
Can you post your Project name.fcfx project file and Project name.msg.txt fie
Hello, medelec35
project name is: Flowcode2.fcfx
attached file is the .txt file

Re: esp compile error

Posted: Wed Jan 17, 2024 8:38 am
by medelec35
Hello.
Cam you post your .fcfx project file, please.

Re: esp compile error

Posted: Wed Jan 17, 2024 9:11 am
by noovas
inside there is just one component macro (in my case PWM enable)

Re: esp compile error

Posted: Wed Jan 17, 2024 10:35 am
by medelec35
Hello.
After selecting PWM:0 Timer:0 Pin:A from the PWM Timer properties, your project compiled for me.
Can you give that a try and attach the latest .msg.txt if still not compiling for you.
At least now compiling will be a lot quicker as it won't be the first time of compiling.
noovas wrote:
Tue Jan 16, 2024 3:05 pm
Maybe I am doing something wrong or I should install something additional, or maybe component macros are not for the free version?
Flowcode 10 is free for makers and hobbyists.
That means all the components are now free and there are no code size restrictions, unlike all the other versions of Flowcode.

Re: esp compile error

Posted: Wed Jan 17, 2024 11:14 am
by noovas
I have tried many times with different projects, different versions of Python. Few times I reinstall and the ESP toolchain, but without success.
If the project contains output, loops and delays it compiles without problem (making a led flash is not a problem and it uploads ).
here is latest .txt report....

Re: esp compile error

Posted: Wed Jan 17, 2024 11:45 am
by BenR
Hello,

This is the error you're getting.
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_PWM.c:48:8: error: no macro name given in #define directive
48 | #define
It looks like you need to go to Help -> Library Updates and get the latest files. Hopefully that should allow you to compile.

Re: esp compile error

Posted: Wed Jan 17, 2024 12:00 pm
by noovas
Hello BenR and thank you for the help!!!
Actually thank you very much, it is working now!! :D