mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
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:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
CONFIG_SPIRAM=y
|
||||
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=0
|
||||
Reference in New Issue
Block a user