Checking memory usage of application


 I am using nRF52832 with SDK 12.2.0 and S132 softdevice. I am faciing some issues with the memory usage. When I declared an array of size 50 bytes, my application behaves inconsistently. If I am reducing the value, it seems to be working fine. Is there any way I can see the total memory useage of my program. I amusing Keil.

Waiting for a reply.

  • Hi Anjaly,


    You can check the .map file after you compile to see the use of memory. 

    You may consider increase the stack size just to check if it's a stack overflow issue. 

    Please make sure you have implemented Errata 108 in your start up code (system_nrf52.c). It's by default enabled in SDK v12.2