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
  • FormerMember
    0 FormerMember

    As @Keton says, what does your .map file look like? In Keil, you can open the .map file by double clicking on the project folder structure "nrf51422_xxac_s130" (for example) or locate the file in the build folder.

    Also, which optimization level do you use? Use the highest optimization level as possible.

Reply
  • FormerMember
    0 FormerMember

    As @Keton says, what does your .map file look like? In Keil, you can open the .map file by double clicking on the project folder structure "nrf51422_xxac_s130" (for example) or locate the file in the build folder.

    Also, which optimization level do you use? Use the highest optimization level as possible.

Children
Related