From 4879bac36c7c0ebcbca1ea20b1b0a03a5765333c Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Sat, 13 Jan 2024 19:45:11 +0400 Subject: [PATCH] feat(ulp): use --mcpu=esp32s3 for esp32s3 --- components/ulp/cmake/toolchain-esp32s3-ulp.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/ulp/cmake/toolchain-esp32s3-ulp.cmake b/components/ulp/cmake/toolchain-esp32s3-ulp.cmake index 0e2c218509..514c32e6bd 100644 --- a/components/ulp/cmake/toolchain-esp32s3-ulp.cmake +++ b/components/ulp/cmake/toolchain-esp32s3-ulp.cmake @@ -8,9 +8,8 @@ set(CMAKE_CXX_COMPILER "xtensa-esp32s3-elf-g++") set(CMAKE_ASM_COMPILER "esp32ulp-elf-as") set(CMAKE_LINKER "esp32ulp-elf-ld") -# Use ESP32-S2 ULP tools here, because ESP32-S3 uses the same ULP coprocessor type set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "${CMAKE_ASM${ASM_DIALECT}_COMPILER} \ - --mcpu=esp32s2 -o -c ") -set(CMAKE_EXE_LINKER_FLAGS "-A elf32-esp32s2ulp -nostdlib" CACHE STRING "ULP Linker Base Flags") + --mcpu=esp32s3 -o -c ") +set(CMAKE_EXE_LINKER_FLAGS "-A elf32-esp32s3ulp -nostdlib" CACHE STRING "ULP Linker Base Flags") set(CMAKE_ASM_LINK_EXECUTABLE "${CMAKE_LINKER} \ -o ")