Skip to content

Commit 4d27e1a

Browse files
committed
change(freertos): vApplicationStackOverflowHook is now flashed in flash if option enabled
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH will now also place vApplicationStackOverflowHook in flash
1 parent db3946a commit 4d27e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/freertos/linker.lf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,12 @@ entries:
310310
# - Critical sections functions are always placed in internal RAM for better performance
311311
# - The following functions are also placed in internal RAM as they are called from vTaskSwitchContext, which is
312312
# also always placed in internal RAM
313-
# - vApplicationStackOverflowHook
314313
# - vPortSetStackWatchpoint
315314
# --------------------------------------------------------------------------------------------------------------
316315
if IDF_TARGET_ARCH_XTENSA = y:
317316
port:xPortStartScheduler (default)
318317
port:vPortEndScheduler (default)
318+
port:vApplicationStackOverflowHook (default)
319319
if FREERTOS_TASK_FUNCTION_WRAPPER = y:
320320
port:vPortTaskWrapper (default)
321321
if SOC_CPU_COPROC_NUM > 0:
@@ -342,14 +342,14 @@ entries:
342342
# - Critical sections functions are always placed in internal RAM for better performance
343343
# - The following functions are also placed in internal RAM as they are called from vTaskSwitchContext, which is
344344
# also always placed in internal RAM
345-
# - vApplicationStackOverflowHook
346345
# - vPortSetStackWatchpoint
347346
# - vPortCoprocUsedInISR is directly called from RISC-V assembly code with a direct branch instruction which
348347
# may be too far when placed in Flash. Hence, it is always placed in internal RAM
349348
# --------------------------------------------------------------------------------------------------------------
350349
if IDF_TARGET_ARCH_RISCV = y:
351350
port:xPortStartScheduler (default)
352351
port:vPortEndScheduler (default)
352+
port:vApplicationStackOverflowHook (default)
353353
port:uxInitialiseStackTLS (default)
354354
if FREERTOS_TASK_FUNCTION_WRAPPER = y:
355355
port:vPortTaskWrapper (default)

0 commit comments

Comments
 (0)