From b2e0b584b2c36d07d60ceeff64f5df2b7449ace3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Mon, 14 Nov 2022 10:49:10 +0000 Subject: [PATCH] Fix setting reserving RAM for IDF allocation --- targets/ESP32/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/targets/ESP32/CMakeLists.txt b/targets/ESP32/CMakeLists.txt index 2d77c4b7aa..6c4313d78a 100644 --- a/targets/ESP32/CMakeLists.txt +++ b/targets/ESP32/CMakeLists.txt @@ -11,10 +11,12 @@ nf_set_esp32_target_series() # option to reserve RAM for IDF allocator option(ESP32_RESERVED_RAM_FOR_IDF_ALLOCATION "Reserved RAM for IDF allocation (in kBytes)") -if(NOT (ESP32_RESERVED_RAM_FOR_IDF_ALLOCATION EQUAL OFF)) + +if(NOT ESP32_RESERVED_RAM_FOR_IDF_ALLOCATION) unset(ESP32_RESERVED_RAM_FOR_IDF_ALLOCATION CACHE) set(ESP32_RESERVED_RAM_FOR_IDF_ALLOCATION "0" CACHE STRING "Setting default value for ESP32_RESERVED_RAM_FOR_IDF_ALLOCATION") endif() +message(STATUS "Reserved RAM for allocation by IDF: ${ESP32_RESERVED_RAM_FOR_IDF_ALLOCATION}k") # Define PLATFORM base path set(BASE_PATH_FOR_PLATFORM ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)