Hello,
I have a question about stack usage. I use nRF51822 SoC, 12.2 SDK & IAR 7.60.1. I am interested in stack usage. Have you done any estimations? Or may be you have any recommendations?
IAR has two options:
- Runtime stack usage tracking
- Static stack usage analysis
My question is dealt with static analysis. When linker option 'Enable stack usage analysis' is enabled:
- There are a lot of functions in Nordic SDK with recursion ('The following functions make up recursion nest 0, which has no maximum recursion depth specified') and..
- IAR prompts me a warning like 'Warning[Ls017]: [stack usage analysis] the program contains at least one instance of recursion for which stack usage analysis has not been able to calculate a maximum stack depth. One function involved is "evt_send" in
peer_manager.o [1]. A complete list of all recursion nests is in the map file.'
Could you tell me please how do you make such estimates?
Best, Artem