I'm trying to adapt the secure_bootloader example for our custom board with a nRF52832 QFAB with 32kB RAM and 256kB Flash, following the information in this thread:
I'm using armgcc, and as far as I can see I have made the same changes as in the post above, I have changed
#define BOOTLOADER_SETTINGS_ADDRESS (0x0003F000UL)
#define NRF_MBR_PARAMS_PAGE_ADDRESS (0x0003E000UL)
in components/libraries/bootloader/dfu/nrf_dfu_types.h, changed -DNRF52832_XXAB in the Makefile and changed the following in the linker script:
MEMORY
{
FLASH (rx) : ORIGIN = 0x38000, LENGTH = 0x6000
RAM (rwx) : ORIGIN = 0x200057b8, LENGTH = 0x2848
mbr_params_page (r) : ORIGIN = 0x0003E000, LENGTH = 0x1000
bootloader_settings_page (r) : ORIGIN = 0x0003F000, LENGTH = 0x1000
uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4
uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4
}
Now when I compile the project I get the error ld: region RAM overflowed with stack
Any hints how to solve this?