This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

detecting memory issues at runtime

I am using nrf52 with s132 and armgcc As I add functionality to the code I get to a stage where it fails. Linker runs OK but the result fails to execute.

The observable phenomenon is that I see nothing with Jlink, not even the first printf at the top of main.c

I can verify that it's a memory issue by changing the amount of ram reserved for static arrays.

My question is whether I can trap such things as stack overflow and get some information on what's happening?

I also need to analyse the build to identify any memory hogs. Any tools for that would be useful.

Thx.

Related