Hey!
I'm trying to adapt a modified version of the open bootloader example for the nRF52820 MCU and have one issue as well as some questions.
I have adapted the build configuration as described here:
https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/developing-for-the-nrf52820-with-nrf5-sdk-v16-0-0
and here:
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fnrf52820_user_guide.html
The modified memory section of the linker script:
MEMORY
{
FLASH (rx) : ORIGIN = 0x78000, LENGTH = 0x40000 - 0x7800
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 0x20008000 - 0x20000008
uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4
uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4
mbr_params_page (r) : ORIGIN = 0x0007E000, LENGTH = 0x1000
bootloader_settings_page (r) : ORIGIN = 0x0007F000, LENGTH = 0x1000
}
Questions:
1. The Flash "ORIGIN", "bootloader_settings_page location" and "mbr_params_page" addresses I found for the nRF52833 at:
infocenter.nordicsemi.com/index.jsp
but is the addresses the same for nRF52820? Where can I find the addresses for nrf52820?
2. The addresses for "uicr_bootloader_start_address" and "uicr_mbr_params_page" comes from a pca10040 project linker script but again I can't find any documentation for these addresses for the nrf52820.
The issue:
Compiling goes without any issues but when flashing I get the warning:
WARNING: A UICR write operation has been requested but UICR has not been
WARNING: erased. Please verify that the result is correct.
And the program does not behave as expected. I suspect the address for the UICR addresses are wrong but I don't really know.
Thanks for the help :)
// Andreas