ESP32 C6 mini compile does not work

For general Flowcode discussion that does not belong in the other sections.
grout1
Posts: 6
http://meble-kuchenne.info.pl
Joined: Tue Apr 26, 2022 11:41 pm

Re: ESP32 C6 mini compile does not work

Post by grout1 »

When you say a small problem with the c6 not compiling, I see it more of a major problem.
I upgraded to the full esp package so I could use the Zigbee functions of the c6. I am not an expert I,m afraid.
If simply following the tool chain installation notes, and still not getting it working leads me to give up. I must say I don't understand why only the free ESP32 works.
Just a thought. :?

mnfisher
Valued Contributor
Posts: 1918
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 156 times
Been thanked: 902 times

Re: ESP32 C6 mini compile does not work

Post by mnfisher »

I don't have an issue compiling for the C6.

I'm not sure why others are getting issues?

A few things to try.

1) Make sure that target is set correctly. Use 'idf.py set-target esp32c6' and if it doesn't complete successfully try deleting the 'build' directory.
2) I'm actually using v5.5 of the toolset - but 5.3 'should' work as well.
3) I don't use the usual Flowcode setup or batch file (read the instructions is usually well down the list ;-) of things to do) So I have used the default espressif installer (and have several frameworks installed) - I use the batch file at https://www.flowcode.co.uk/forums/viewt ... 557#p18557 - the drawback is that I need to alter it to use the correct COM port each time I plug a new board in (there is surely a way around this)
The toolset isn't keen on changing targets - and needs a complete rebuild each time you do so - FC's default batch neatly uses a pre-built directory for compilation (which speeds up compilation) - however doesn't play as nicely with espressif components. The batch I use uses a separate directory for each project - I found that the 'setting up environment' takes more time on my PC - so it's a bit quicker (just does it once for compile / upload rather than twice) after the first compile.
4) Try compiling from the command line (framework/export then idf.py build - need to find the directory 'framework')

Stefan - output seems to imply it can't find the compiler??
Jorgen - what errors do you get
Grout1 - can you post the compiler message?

Martin

stefan.erni
Valued Contributor
Posts: 1209
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 223 times
Been thanked: 240 times

Re: ESP32 C6 mini compile does not work

Post by stefan.erni »

Hi Martin, Hi Jorgen, Hi Grout
Stefan - output seems to imply it can't find the compiler??
Yes, exactly.
But the compiler is there, and the DLLs are there too.
Somehow it just doesn't work.
I'm using the latest toolchain installer from FC11. (Flowcode_Compiler_ESP_5.3a.msi)
With an older version, the ESP32C3 still compiled, but now it doesn't anymore. ESP32C6 never compiled.

But the ESP32S3 works great.

mnfisher
Valued Contributor
Posts: 1918
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 156 times
Been thanked: 902 times

Re: ESP32 C6 mini compile does not work

Post by mnfisher »

Odd, if it uses the same batch file - have you checked compiler config menu?

It doesn't seem to get far enough for another explanation?

jgu1
Posts: 920
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 811 times
Been thanked: 203 times

Re: ESP32 C6 mini compile does not work

Post by jgu1 »

Hi again

Maybe usefull, don´t know if rigth, try to see what medelec wrote in the end of this tread:

https://www.flowcode.co.uk/forums/viewt ... gu1#p19870

I have same result as stefan.erni, I also use 5.3

grout1
Posts: 6
Joined: Tue Apr 26, 2022 11:41 pm

Re: ESP32 C6 mini compile does not work

Post by grout1 »

Hi mnfisher. attached is my text log file.
Thanks grout1.
Attachments
simpleblink.msg.txt
(6.37 KiB) Downloaded 25 times

mnfisher
Valued Contributor
Posts: 1918
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 156 times
Been thanked: 902 times

Re: ESP32 C6 mini compile does not work

Post by mnfisher »

It looks like the default flowcode installation doesn't include the risc-v compiler - the other targets use an extensa processor...

Try running 'install.bat' which is found in the framework directory. I can't test this as my setup does include this - again i used the default espressif installer with no changes to the options...

There might be an option for this - that is changed??

Martin

Post Reply