The static call graph feature (MDK-ARM 3.40) is very nice to have, but I am having some problems getting the output I want. The problem is that the linker flags some functions as "UNUSED", and thus refuses to calculate/generate the max stack depth for these functions.
The functions in question are tasks in the RTX system, and thus they are called indirectly from the RTX kernel, which could possibly explain why, except:
This behaviour is only for two of my tasks, for the rest of them I do get the expected output in the static call graph document. These two tasks are not listed in the "Function pointers" section of the call graph document, but the other tasks are.
I am unable to see that I am doing anything different regarding these two tasks, other than the fact that they reside in the same source file as main().
Can anyone offer any advice on how to resolve this?
Regards -Oyvind