This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

When power on,run app first at 0x1f000,then reset and run to boot loader,how to set UICR registers?

When power on,run app first at 0x1f000,then reset and run to boot loader at 0x78000,how to set UICR registers to make this come true?I try to set the NRF_UICR->NRFFW[0] in the app and then NVIC_SystemReset(),it doesn't work.How can I set the start addr of program in the app?Thank you~

  • When Cortex M4 in nRF52 is powered on, it always first executes the reset handler whose address is located at memory location 0x04. You need to have a reset handler that does the jump for you.

    Normally softdevice does this for you. It jumps to the application start address that it expects to start right after its end address. Are you not using softdevice?

    Setting NRF_UICR->NRFFW[0] will not do anything in itself. It is just a reserved persistant memory for applications. You can use it like a general purpose UICR memory.

  • @sheep: we can continue discussion on the other case you created devzone.nordicsemi.com/.../

Related