From 85590928b6c39dae7e67ee56f30e6dae5a1c6c80 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 2 Aug 2023 08:02:37 -0400 Subject: [PATCH] [esp32 m5-stack light] move freertos functions to flash instead of iram (#28455) * Move freertos functions out if iram. This is because linkage fails with out of IRAM. Following https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/performance/ram-usage.html#optimizing-iram-usage * Add newline at the end of the file --------- Co-authored-by: Andrei Litvin --- examples/lighting-app/esp32/sdkconfig_m5stack.defaults | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/lighting-app/esp32/sdkconfig_m5stack.defaults b/examples/lighting-app/esp32/sdkconfig_m5stack.defaults index 95d805aa75b55e..be4c85a9c4bb14 100644 --- a/examples/lighting-app/esp32/sdkconfig_m5stack.defaults +++ b/examples/lighting-app/esp32/sdkconfig_m5stack.defaults @@ -65,3 +65,7 @@ CONFIG_RMT_SUPPRESS_DEPRECATE_WARN=y # Enable HKDF in mbedtls CONFIG_MBEDTLS_HKDF_C=y + +# Optimize IRAM +CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y +