Merge branch 'ci/test_tsens_with_psram_config' into 'master'

test(tsens): set malloc internal threshold to zero

Closes IDF-13047

See merge request espressif/esp-idf!51782
This commit is contained in:
morris
2026-08-18 10:11:08 +08:00
3 changed files with 23 additions and 0 deletions

View File

@@ -15,3 +15,23 @@ if($ENV{CI_PIPELINE_ID})
endif()
project(test_temperature_sensor)
idf_build_get_property(elf EXECUTABLE)
if(CONFIG_COMPILER_DUMP_RTL_FILES)
set(TSENS_RTL_DIRS
${CMAKE_BINARY_DIR}/esp-idf/esp_driver_tsens
${CMAKE_BINARY_DIR}/esp-idf/esp_hal_ana_conv
${CMAKE_BINARY_DIR}/esp-idf/hal
)
string(JOIN "," TSENS_RTL_DIRS_JOINED ${TSENS_RTL_DIRS})
add_custom_target(check_test_app_sections ALL
COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
--rtl-dirs ${TSENS_RTL_DIRS_JOINED}
--elf-file ${CMAKE_BINARY_DIR}/test_temperature_sensor.elf
find-refs
--from-sections=.iram0.text
--to-sections=.flash.text,.flash.rodata
--exit-code
DEPENDS ${elf}
)
endif()

View File

@@ -3,3 +3,4 @@ CONFIG_TEMP_SENSOR_ISR_IRAM_SAFE=y
CONFIG_COMPILER_OPTIMIZATION_NONE=y
# silent the error check, as the error string are stored in rodata, causing RTL check failure
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

View File

@@ -0,0 +1,2 @@
CONFIG_SPIRAM=y
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=0