diff --git a/components/freertos/Kconfig b/components/freertos/Kconfig index d8141f8a..9515e8ae 100644 --- a/components/freertos/Kconfig +++ b/components/freertos/Kconfig @@ -70,6 +70,12 @@ config FREERTOS_GLOBAL_DATA_LINK_IRAM help Link FreeRTOS global data(.bss .data COMMON) from DRAM to IRAM. +config FREERTOS_CODE_LINK_TO_IRAM + bool "Link FreeRTOS code to IRAM" + default n + help + Link FreeRTOS code from Flash to IRAM. + config FREERTOS_TIMER_STACKSIZE int "Timer stack size" default 2048 diff --git a/components/freertos/linker.lf b/components/freertos/linker.lf index ed64d9e0..3b688f2b 100644 --- a/components/freertos/linker.lf +++ b/components/freertos/linker.lf @@ -10,3 +10,6 @@ entries: timers (iram_bss) freertos_hooks (iram_bss) impure(iram_bss) + + if FREERTOS_CODE_LINK_TO_IRAM = y: + * (noflash_text)