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

RAM Overflowed: section `.bss' will not fit in region `RAM'

I just integrated CMock which is part of my unit testing framework and i am trying to test a mocked function however i am running into RAM overflow error. Is there a way to reduce the size of CMock or increase that RAM section which is required? I am using an NRF51422 chip but i also have the NRF51822 available if that makes a difference.

Any help is greatly appreciated! Thank you in advance

   c:/program files (x86)/gnu tools arm embedded/6 2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: ..\medsens_periph_build/nrf51422_xxac.out section `.bss' will not fit in region `RAM'
    c:/program files (x86)/gnu tools arm embedded/6 2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: region RAM overflowed with stack
    c:/program files (x86)/gnu tools arm embedded/6 2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: region `RAM' overflowed by 13700 bytes
    collect2.exe: error: ld returned 1 exit status
                 RAM:       38148 B      24448 B    156.04%
    ../drivers_common/Makefile.common.mk:122: recipe for target '..\medsens_periph_build/nrf51422_xxac.out' failed
    make: *** [..\medsens_periph_build/nrf51422_xxac.out] Error 1
Parents Reply
  • Hi,

    Sorry for not getting back to you.

    I talked to the Mesh guys again and as mentioned earlier they do all their testing on a host system, and they don't have the need for testing their code directly on HW. Hence, it is a little difficult for us to help you out in your quest since we are on a different path in this regard. And unfortunately the files are made by hand. 

Children
No Data
Related