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.