nRF52820 bootloader linker settings

Hi!

I have tried to get the secure_bootloader working on the nRF52820, but I think the linker settings are not correct yet. Maybe someone here has already written a bootloader for the nRF52820 and can help me.

These are my settings for the secure_bootloader so far:

MEMORY
{
  FLASH (rx) : ORIGIN = 0x38000, LENGTH = 0x6000
  RAM (rwx) :  ORIGIN = 0x20002a38, LENGTH = 0x55c8
  uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4
  uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4
  mbr_params_page (r) : ORIGIN = 0x0003E000, LENGTH = 0x1000
  bootloader_settings_page (r) : ORIGIN = 0x0003F000, LENGTH = 0x1000
}

My application (uses the soft device s140_7.2.0) has the following settings:

MEMORY
{
  FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0x19000
  RAM (rwx) :  ORIGIN = 0x20002a38, LENGTH = 0x55c8
}

When I try to debug the bootloader I don't end up in the main.c and get an error, so I think the settings of my bootloader are not correct.

Thanks in advance

Parents Reply Children
No Data
Related