Hello,
Im trying to boot into a custom bootloader following this documentation.
Under "programming the bootloader" it says you must write the bootloader start address into "UICR.BOOTLOADERADDR" at address "0x10001014".
It also says to "see NRF_UICR_BOOTLOADER_START_ADDRESS", but NRF_UICR_BOOTLOADER_START_ADDRESS does not point to 0x10001014 so im not sure what to do with that.
My bootloader is stored at address 0x78000 in flash, and have made 0x10001014 contain that address. The bootloader does not boot.
Running some test code
NRF_LOG_INFO("(0x%04x -> 0x%04x) Bootloader addr.", 0x10001014, *(uint32_t*)0x10001014);
NRF_LOG_INFO("(0x%04x -> 0x%04x) NRF_UICR_BOOTLOADER_START_ADDRESS", NRF_UICR_BOOTLOADER_START_ADDRESS, *(uint32_t*)NRF_UICR_BOOTLOADER_START_ADDRESS);
I get the results
0> <info> app: (0x10001014 -> 0x78000) Bootloader addr.
0> <info> app: (0x0FF8 -> 0xFFFFFFFF) NRF_UICR_BOOTLOADER_START_ADDRESS
What do i need to do for the bootloader to boot correctly? When the device is flashed, it just runs normally.
This project is made with visualgdb + msbuild + arm-eabi-gcc toolchain.