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

Not able to compile sdk12.3.0 for nrf51822_xxaa 16k ram 256k flash(gcc compile)?

I have changed the RAM (rwx) : ORIGIN = 0x20001fe8, LENGTH = 0x2018 in ble_app_buttonless_gcc_nrf51.ld.
Build, it appears to me
/usr/local/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: region RAM overflowed with stack
collect2: error: ld returned 1 exit status
make: *** [_build/nrf51422_xxac.out] Error 1
It seems the ram_size should above 0x2580( RAM (rwx) : ORIGIN = 0x20001a80, LENGTH = 0x2580 ) when errors disappear,but at least 0x1fe8 bytes should be allocated to softdevice. so the ram is not enough.
What can i do for reducing the ram consumption in the experimental_ble_app_buttonless_dfu project?

Parents Reply Children
No Data
Related