From d0099b214bd07c18bcca2acac599954fffef48ac Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Fri, 8 Nov 2019 15:18:00 +0800 Subject: [PATCH] feat(freertos): add option to link freertos to IRAM --- components/freertos/Kconfig | 6 ++++++ components/freertos/linker.lf | 3 +++ 2 files changed, 9 insertions(+) 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)