diff --git a/components/heap/Kconfig b/components/heap/Kconfig index 48382f1206..e593e4707a 100644 --- a/components/heap/Kconfig +++ b/components/heap/Kconfig @@ -119,6 +119,15 @@ menu "Heap memory debugging" features will be added and bugs will be fixed in the IDF source but cannot be synced to ROM. + config HEAP_TLSF_CHECK_PATCH + bool "Patch the tlsf_check_pool() for ROM HEAP TLSF implementation" + depends on HEAP_TLSF_USE_ROM_IMPL && IDF_TARGET_ESP32C2 && ESP32C2_REV_MIN_FULL < 200 + default y + help + ROM does not contain the patch of tlsf_check_pool() allowing perform + the integrity checking on used blocks. The patch to allow such check + needs to be applied. + config HEAP_PLACE_FUNCTION_INTO_FLASH bool "Force the entire heap component to be placed in flash memory" depends on !HEAP_TLSF_USE_ROM_IMPL @@ -129,13 +138,4 @@ menu "Heap memory debugging" Note that it is only safe to enable this configuration if no functions from esp_heap_caps.h or esp_heap_trace.h are called from ISR. - config HEAP_TLSF_CHECK_PATCH - bool "Patch the tlsf_check_pool() for ROM HEAP TLSF implementation" - depends on IDF_TARGET_ESP32C2 && ESP32C2_REV_MIN_FULL < 200 - default y - help - ROM does not contain the patch of tlsf_check_pool() allowing perform - the integrity checking on used blocks. The patch to allow such check - needs to be applied. - endmenu