diff --git a/arch/arm/src/armv7-m/Kconfig b/arch/arm/src/armv7-m/Kconfig index 750229be19..b8c3cb8179 100644 --- a/arch/arm/src/armv7-m/Kconfig +++ b/arch/arm/src/armv7-m/Kconfig @@ -115,12 +115,18 @@ config ARMV7M_STACKCHECK default n depends on ARMV7M_HAVE_STACKCHECK ---help--- - This check uses R10 to check for a stack overflow within each function - call. This has performances and code size impacts, but it will be able to - catch hard to find stack overflows. + This check uses R10 to check for a stack overflow within each + function call. This has performances and code size impacts, but it + will be able to catch hard to find stack overflows. - Currently only available only for the STM32 architecture. The changes - are not complex and patches for other architectures will be accepted. + Currently only available only for the STM32, SAM3/4 and SAMA5D + architectures. The changes are not complex and patches for + other architectures will be accepted. + + This option requires that you are using a GCC toolchain and that + you also include -finstrument-functions in your CFLAGS when you + compile. This addition to your CFLAGS should probably be added + to the definition of the CFFLAGS in your board Make.defs file. config ARMV7M_ITMSYSLOG bool "ITM SYSLOG support"