HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
Loading...
Searching...
No Matches
stack_check.h File Reference

Memory check utilities: heap/stack stats and collision detection. More...

#include "sarmfsw.h"
Include dependency graph for stack_check.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  memory_res_t
 Memory health results structure. More...

Functions

FctERR stack_check (memory_res_t *const pMem)
 Stack check routine.

Detailed Description

Memory check utilities: heap/stack stats and collision detection.

Author
SMFSW
Note
Define STACK_CHECK symbol at project level to use stack analysis
_Stack_Fill_Value has to be defined in linker script with 32b value to fill stack with (eg: _Stack_Fill_Value = 0xB00BFACE;)

Function Documentation

◆ stack_check()

FctERR stack_check ( memory_res_t *const pMem)

Stack check routine.

Parameters
[in,out]pMem- Pointer to stack memory check results
Returns
Error code
Return values
ERROR_OKif stack is OK
ERROR_MEMORYif stack overflow detected
Here is the call graph for this function:
Here is the caller graph for this function: