Stack guard

nRF5 SDK v17.0.2

Functions for enabling stack violation control. More...

Macros

#define STACK_SIZE (((int32_t)(STACK_TOP)) - (int32_t)((void *)(STACK_BASE)))
#define REAL_STACK_SIZE STACK_SIZE
#define NRF_STACK_GUARD_INIT () NRF_SUCCESS

Functions

ret_code_t nrf_stack_guard_init (void)
Function for initializing the Stack Guard Page. More...

Detailed Description

Functions for enabling stack violation control.

Function Documentation

ret_code_t nrf_stack_guard_init ( void )

Function for initializing the Stack Guard Page.

Note
When this module is enabled, the usable stack size is reduced by NRF_STACK_GUARD_CONFIG_SIZE .