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

Region Ram Overflow with Stack(Compilation Error)

I am working in a custom board which is having nrf1822 chip and I am using Softdevice s130 2.0.1 , SDK 11.0.0, RAM available is 16Kb where soft device uses 5kb of RAM,heap size is 2048 bytes and remaining is 9kb. I am trying to declare a buffer(4kb) globally which throws compilation error ie( Ram Overflowed with stack).Plz help me out.

Parents
  • Assuming that your project setup is ok this means that static memory allocation exceeds available free space. You can find memory usage of each symbol by examining .map file. If you by any chance use nrf_log module with RTT it declares 1kb internal buffer so it looks like a good candidate to be cut out. Out of curiosity why you need so much RAM?

Reply
  • Assuming that your project setup is ok this means that static memory allocation exceeds available free space. You can find memory usage of each symbol by examining .map file. If you by any chance use nrf_log module with RTT it declares 1kb internal buffer so it looks like a good candidate to be cut out. Out of curiosity why you need so much RAM?

Children
No Data
Related