Page 1 of 2

ESP32 C6 mini compile does not work

Posted: Tue Jul 08, 2025 2:55 pm
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 285 times
ESP32_C6_post.msg.txt
(5.02 KiB) Downloaded 300 times

Re: ESP32 C6 mini compile does not work

Posted: Tue Jul 08, 2025 5:00 pm
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

Re: ESP32 C6 mini compile does not work

Posted: Wed Jul 09, 2025 9:38 am
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 ...

Re: ESP32 C6 mini compile does not work

Posted: Thu Jul 10, 2025 1:50 pm
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 332 times

Re: ESP32 C6 mini compile does not work

Posted: Thu Jul 10, 2025 2:14 pm
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

Re: ESP32 C6 mini compile does not work

Posted: Fri Jul 11, 2025 9:11 am
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 254 times

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

Compiling nice to hex on both computer ;)
ESP32.fcfx
(7.1 KiB) Downloaded 237 times
ESP32-S.fcfx
(7.1 KiB) Downloaded 270 times
ESP32-S2.fcfx
(7.11 KiB) Downloaded 248 times
ESP32-S3.fcfx
(7.11 KiB) Downloaded 256 times

Re: ESP32 C6 mini compile does not work

Posted: Wed Mar 04, 2026 3:19 pm
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.

Re: ESP32 C6 mini compile does not work

Posted: Thu Apr 02, 2026 1:24 pm
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.
    
     



Re: ESP32 C6 mini compile does not work

Posted: Thu Apr 02, 2026 4:33 pm
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

Re: ESP32 C6 mini compile does not work

Posted: Tue Apr 14, 2026 12:13 am
by grout1
Any progress on the c6 compiler issues yet?