Application crashes on load when trying to increase memory

In order to add the BLE DFU service, I need to increase the GATT table size and therefore memory as mentioned here:  How can i increase the GATTS attribute Table Size?.

However, when I tried to increase the file ble_app_uart_gcc_nrf52.ld, increasing RAM origin and length values cause the program to just crash on start up.

  • Hi,

    I assume you have followed the Adjustment of RAM and Flash memory guide. SoftDevice RAM requirements depend on settings chosen, and you should get log output on SoftDevice initialization stating what value you need if not large enough (see sections 8 and 9 of the memory guide linked above for details.)

    Please note that increasing the start address means the length will decrease, and the start and length are for the application. The SoftDevice will use the area from ram start to the start value, and the application will use the area from start value to end of RAM.

    Regards,
    Terje

Related