From ad88bd184fbc8e3a6e863ff97da0e6b665d79807 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Wed, 12 Mar 2025 10:52:07 +0800 Subject: [PATCH] fix(heap): fixed HEAP_PLACE_FUNCTION_INTO_FLASH disabled if heap impl in ROM --- components/heap/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/heap/Kconfig b/components/heap/Kconfig index d40b64fcee..cd4f89367a 100644 --- a/components/heap/Kconfig +++ b/components/heap/Kconfig @@ -120,12 +120,11 @@ menu "Heap memory debugging" 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 default n help Enable this flag to save up RAM space by placing the heap component in the flash memory 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. + or esp_heap_trace.h are called from IRAM ISR which runs when cache is disabled. endmenu