ESP32 C6 mini compile does not work

For general Flowcode discussion that does not belong in the other sections.
Post Reply
stefan.erni
Valued Contributor
Posts: 1208
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

ESP32 C6 mini compile does not work

Post by stefan.erni »

Hi to All

I have a small problem with ESP32 C6 mini.
Compile to target does not work.

Program and txt:
ESP32_C6_post.fcfx
(9.14 KiB) Downloaded 280 times
ESP32_C6_post.msg.txt
(5.02 KiB) Downloaded 297 times

mnfisher
Valued Contributor
Posts: 1896
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 154 times
Been thanked: 894 times

Re: ESP32 C6 mini compile does not work

Post by mnfisher »

That compiled AOK for me after I set the pin for the LED to a different value (it seemed to be set as unconnected - although it also looked like maybe GPIO23. Setting it to GPIO23 was okay)

I am also using 5.3.2 which might make a difference?

Martin

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

Re: ESP32 C6 mini compile does not work

Post by stefan.erni »

Hi Martin

I have turned on the LED but still no compiling possible.
I will try on another computer with 5.3.2

=============================================================================
Python 3.7.3
git version 2.21.0.windows.1
ESP toolchain found at "C:\Users\Desktop\esp-idf-2\"
Building: ESP32_C6_post ...
IDF Version: v5.0.6 ...

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

Re: ESP32 C6 mini compile does not work

Post by stefan.erni »

Hi Martin

On the second computer it's not working even 5.2 and no Led

What about GIT?
ESP32_C6_post.msg.txt
(6.2 KiB) Downloaded 329 times

mnfisher
Valued Contributor
Posts: 1896
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 154 times
Been thanked: 894 times

Re: ESP32 C6 mini compile does not work

Post by mnfisher »

It's odd - then the only thing I am doing different is using a separate directory for each project.

One option is to try a full clean of the directory - as the Flowcode build leaves the majority of files pre-compiled (and if you previously used a different chip?)

So in a command prompt 'cd' to the project directory - then use:

C:\Espressif\frameworks\esp-idf-v5.3.2\export // Adjust the path according to your install
idf.py fullclean
idf.py build

Then try building from within FC again.

Martin

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

Re: ESP32 C6 mini compile does not work

Post by stefan.erni »

Hi Martin

I have tested with a simple program if I can compile to hex.
On both computers the C6 does not work

Not compiling to hex on both computer
ESP32-C6.fcfx
(7.11 KiB) Downloaded 249 times

Not compiling to hex on one computer, but compiling on the other it's ok
ESP32-C3.fcfx
(7.11 KiB) Downloaded 253 times

Compiling nice to hex on both computer ;)
ESP32.fcfx
(7.1 KiB) Downloaded 234 times
ESP32-S.fcfx
(7.1 KiB) Downloaded 268 times
ESP32-S2.fcfx
(7.11 KiB) Downloaded 245 times
ESP32-S3.fcfx
(7.11 KiB) Downloaded 252 times

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

Re: ESP32 C6 mini compile does not work

Post by stefan.erni »

Hi Ben

The ESP32-C3 works well.

I am still unable to compile to hex with the ESP32-C6 on any computer.

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

Re: ESP32 C6 mini compile does not work

Post by stefan.erni »

Hi Ben

The ESP32 and ESP32S3 work, but the ESP32C3 and ESP32C6 don't. What should I do?

Code: Select all

-- Found Git: C:/FC_ESP/esp-tools/tools/idf-git/2.44.0/bin/git.exe (found version "2.44.0.windows.1") 
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
fatal: not a git repository (or any of the parent directories): .git
-- ccache will be used for faster recompilation
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: C:/FC_ESP/esp-tools/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
.

-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/FC_ESP/esp-tools/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Check for working C compiler: C:/FC_ESP/esp-tools/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - broken
CMake Error at C:/FC_ESP/esp-tools/tools/cmake/3.24.0/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler
    "C:/FC_ESP/esp-tools/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe"
  is not able to compile a simple test program.
  It fails with the following output:
    Change Dir: C:/FC_ESP/mtxesp32_c3_sdkconfig/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):C:/FC_ESP/esp-tools/tools/ninja/1.11.1/ninja.exe cmTC_8d095 && [1/2] Building C object CMakeFiles\cmTC_8d095.dir\testCCompiler.c.obj
    FAILED: CMakeFiles/cmTC_8d095.dir/testCCompiler.c.obj 
    C:\FC_ESP\esp-tools\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin\riscv32-esp-elf-gcc.exe   -march=rv32imc_zicsr_zifencei -o CMakeFiles\cmTC_8d095.dir\testCCompiler.c.obj -c C:\FC_ESP\mtxesp32_c3_sdkconfig\build\CMakeFiles\CMakeTmp\testCCompiler.c
    riscv32-esp-elf-gcc.exe: fatal error: cannot execute 'as': CreateProcess: No such file or directory
    compilation terminated.
    ninja: build stopped: subcommand failed.
    
     



jgu1
Posts: 917
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 809 times
Been thanked: 202 times

Re: ESP32 C6 mini compile does not work

Post by jgu1 »

Hi Stefan!

I also can't compile your program and none of the C models eitther. I also use esp-idf-v5.3.1 like you do. I was told by Martitn (Medelec) a long time ago that esp-idf-v5.3.1 can't be used for the C models he told me, as far as I remember he said it should be esp-idf-v5.1 You can try searching here in the forum :)
unless something was updated in 5.3.1 Meanwhile I see that Martin use V.5.3,2 newer, what do you say Martin "mnfisher"? :)

Br Jorgen

Post Reply