Hello!
How I can monitor Stack usage for osless build? As I undestand I can fill stack with FF or some another pattern and check not modified part. Maybe exist some standard library?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello!
How I can monitor Stack usage for osless build? As I undestand I can fill stack with FF or some another pattern and check not modified part. Maybe exist some standard library?
There is also the call_graph program in the cg_xml utility which calculates the worst case stack usage by processing the output from the armofd utility - see Finding out static stack usageAnthony F. Seely said:Offline, there is a different way to analyze at a function level with the 'armofd' utility
This simple function that return free user stack size
#define STACK_HEAD ((const uint32_t*)0x08000000) static uint16_t get_stack_free () { const uint32_t* p = STACK_HEAD; while (*p == 0) { p++; } return (uint16_t) ((p - STACK_HEAD) * 4); }