ESP32-C3 / ESP32-H2 / EPS32-S3 how to build

wupperpi
Posts: 8
Joined: Sun Nov 24, 2019 4:27 pm

ESP32-C3 / ESP32-H2 / EPS32-S3 how to build

Postby wupperpi » Sun Feb 11, 2024 1:15 pm

I'm trying to flash ESP32-C3 / ESP32-H2 / EPS32-S3 with ESP-IDF (Version 5.1.2). I've done

Code: Select all

idf.py set-target esp32c3
idf.py menuconfig
idf.py build
The process ist terminating with (ESP32-C3 / ESP32-H2)
In file included from C:/Users/s/Espressif/esp-idf-v5.1.2/components/cxx/cxx_exception_stubs.cpp:6:
c:\users\ts\espressif\esp-idf-tools\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\riscv32-esp-elf\include\c++\12.2.0\cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
EPS32-S3
C:/Users/s/Espressif/esp-idf-v5.1.2/components/cxx/cxx_guards.cpp:9:
c:\users\ts\espressif\esp-idf-tools\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\xtensa-esp32s3-elf\include\c++\12.2.0\cxxabi.h:50:10: fatal error: bits/cxxabi_tweaks.h: No such file or directory
50 | #include <bits/cxxabi_tweaks.h>
What am I doing wrong? Are these targets currently not supported? ESP32-H series should be.

joseMiguel
Posts: 22
Joined: Sun Oct 25, 2020 11:43 pm

Re: ESP32-C3 / ESP32-H2 / EPS32-S3 how to build

Postby joseMiguel » Sun Feb 11, 2024 4:00 pm

Hello,

Do you work on Linux or Windows?
Do you use VSCode or EClipse.

1) If you use VSCode
1.a) Have you set the environment variables :
IDF_PATH, IDF_TOOLS_PATH, EXTENSION_PATH, ...

1.2) Do you type
install.bat or install.sh,
export.bat or export.sh

1.3) THEN, you can type :
idf.py build

Regards

José Michel
José Michel

wupperpi
Posts: 8
Joined: Sun Nov 24, 2019 4:27 pm

Re: ESP32-C3 / ESP32-H2 / EPS32-S3 how to build

Postby wupperpi » Mon Feb 12, 2024 9:56 am

Hello José Michel,
thank you so much for your replay.
- I'm using Windows 11
- I have installed esp-idf via online-installer
- I do not use Eclipse or VSCode
- The environment variable IDF_PATH, IDF_TOOLS_PATH is set correctly.
There are no other environment variables.
- I start the esp-idf via the Desktop-Terminal-Link, created by setup-process
Setting PYTHONNOUSERSITE, was not set
Using Python in C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\python_env\idf5.1_py3.11_env\Scripts\
Python 3.11.2
Using Git in C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\idf-git\2.43.0\cmd\
git version 2.43.0.windows.1
Checking Python compatibility
Setting IDF_PATH: C:\Users\udobr.LAPTOP-HP\Documents\Espressif\esp-idf-v5.1.2

Adding ESP-IDF tools to PATH...
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\cmake\3.24.0\bin
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\ninja\1.10.2\
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\idf-exe\1.0.3\
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\ccache\4.8\ccache-4.8-windows-x86_64
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\tools\dfu-util\0.11\dfu-util-0.11-win64
C:\Users\udobr.LAPTOP-HP\Documents\Espressif\esp-idf-v5.1.2\tools

Checking if Python packages are up to date...
Constraint file: C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\espidf.constraints.v5.1.txt
Requirement files:
- C:\Users\udobr.LAPTOP-HP\Documents\Espressif\esp-idf-v5.1.2\tools\requirements\requirements.core.txt
Python being checked: C:\Users\udobr.LAPTOP-HP\Documents\Espressif\ESP-IDF-Tools\python_env\idf5.1_py3.11_env\Scripts\python.exe
Python requirements are satisfied.

Detected installed tools that are not currently used by active ESP-IDF version.
For removing old versions of ccache, cmake, idf-driver, openocd-esp32, riscv32-esp-elf, riscv32-esp-elf-gdb, xtensa-esp-elf-gdb, xtensa-esp32-elf use command 'python.exe C:\Users\udobr.LAPTOP-HP\Documents\Espressif\esp-idf-v5.1.2\tools\idf_tools.py uninstall'
For free up even more space, remove installation packages of those tools. Use option 'python.exe C:\Users\udobr.LAPTOP-HP\Documents\Espressif\esp-idf-v5.1.2\tools\idf_tools.py uninstall --remove-archives'.


Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build


C:\Users\udobr.LAPTOP-HP\Documents\Espressif\esp-idf-v5.1.2>
- build esp32 ist working fine

Any additional idea?
Regards
Udo

wupperpi
Posts: 8
Joined: Sun Nov 24, 2019 4:27 pm

Re: ESP32-C3 / ESP32-H2 / EPS32-S3 how to build

Postby wupperpi » Tue Feb 13, 2024 8:29 am

Tried with VS-Code, same problem
no paths established

Who is online

Users browsing this forum: dzungpv and 103 guests