This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ULINK UICR programming

Is there any way to program UICR registers using Keil ULINK programmers?

I know that the algorithm it uses to program Flash does not support UICR. However, I am able to enter debug mode manually, change the NVMC-CONFIG to 1 and write into UICR registers. All manually.... Why can't it be automated by the tool?

Parents
  • I have not found the algorithm for writing to UICR in KEIL for nRF51 but if you install latest nrf-Tools here

    I see that it gives you option to write to nRF52 UICR registers in Keil settings like below image description

    and after adding this we can see that it adds the UICR address range like below image description

    Because both nrf51 and nrf52 have same NVMC interface and have same UICR config, I think this algorithm must be the same for nRF51. After you add this, you should be able to flash normally from Keil. Worth a try :)

Reply
  • I have not found the algorithm for writing to UICR in KEIL for nRF51 but if you install latest nrf-Tools here

    I see that it gives you option to write to nRF52 UICR registers in Keil settings like below image description

    and after adding this we can see that it adds the UICR address range like below image description

    Because both nrf51 and nrf52 have same NVMC interface and have same UICR config, I think this algorithm must be the same for nRF51. After you add this, you should be able to flash normally from Keil. Worth a try :)

Children
Related