@@ -13,6 +13,7 @@ ESP32-S2 Toolchain
1313==================
1414
1515The toolchain used to build ESP32-S2 firmware can be either downloaded or built from the sources.
16+
1617It is **highly ** recommended to use (download or build) the same toolchain version that is being
1718used by the NuttX CI.
1819
@@ -26,20 +27,12 @@ check for the current compiler version being used. For instance:
2627 # Build image for tool required by ESP32 builds
2728 ###############################################################################
2829 FROM nuttx-toolchain-base AS nuttx-toolchain-esp32
29- # Download the latest ESP32 GCC toolchain prebuilt by Espressif
30- RUN mkdir -p xtensa-esp32-elf-gcc && \
31- curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz" \
32- | tar -C xtensa-esp32-elf-gcc --strip-components 1 -xJ
33-
34- RUN mkdir -p xtensa-esp32s2-elf-gcc && \
35- curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32s2-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz" \
36- | tar -C xtensa-esp32s2-elf-gcc --strip-components 1 -xJ
37-
38- RUN mkdir -p xtensa-esp32s3-elf-gcc && \
39- curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32s3-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz" \
40- | tar -C xtensa-esp32s3-elf-gcc --strip-components 1 -xJ
30+ # Download the latest ESP32, ESP32-S2 and ESP32-S3 GCC toolchain prebuilt by Espressif
31+ RUN mkdir -p xtensa-esp-elf-gcc && \
32+ curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20241119/xtensa-esp-elf-14.2.0_20241119-x86_64-linux-gnu.tar.xz" \
33+ | tar -C xtensa-esp-elf-gcc --strip-components 1 -xJ
4134
42- For ESP32-S2, the toolchain version is based on GGC 12 .2.0 (``xtensa-esp32s2 -elf-12 .2.0_20230208 ``)
35+ For ESP32-S2, the toolchain version is based on GGC 14 .2.0 (``xtensa-esp -elf-14 .2.0_20241119 ``)
4336
4437The prebuilt Toolchain (Recommended)
4538------------------------------------
@@ -48,20 +41,20 @@ First, create a directory to hold the toolchain:
4841
4942.. code-block :: console
5043
51- $ mkdir -p /path/to/your/toolchain/xtensa-esp32s2 -elf-gcc
44+ $ mkdir -p /path/to/your/toolchain/xtensa-esp -elf-gcc
5245
5346 Download and extract toolchain:
5447
5548.. code-block :: console
5649
57- $ curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-12 .2.0_20230208 /xtensa-esp32s2 -elf-12 .2.0_20230208 -x86_64-linux-gnu.tar.xz" \
58- | tar -C xtensa-esp32s2 -elf-gcc --strip-components 1 -xJ
50+ $ curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-14 .2.0_20241119 /xtensa-esp -elf-14 .2.0_20241119 -x86_64-linux-gnu.tar.xz" \
51+ | tar -C xtensa-esp -elf-gcc --strip-components 1 -xJ
5952
6053 Add the toolchain to your `PATH `:
6154
6255.. code-block :: console
6356
64- $ echo "export PATH=/path/to/your/toolchain/xtensa-esp32s2 -elf-gcc/bin:$PATH" >> ~/.bashrc
57+ $ echo "export PATH=/path/to/your/toolchain/xtensa-esp -elf-gcc/bin:$PATH" >> ~/.bashrc
6558
6659 You can edit your shell's rc files if you don't use bash.
6760
0 commit comments