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

nRF52 DFU questions

I'm using nRF52 + SDK11.0.0 + s132 and have a couple of questions on DFU.

  1. I want to use a CMSIS-DAP programmer + OpenOCD to upload the bootloader (or BL+SD+APP+setting) hex files. The application/SD boot up, but the bootloader keeps cycling on any attempt to do a DFU (due to the APP_ERROR_CHECK for the boolloader address). I can power cycle to go back to the app. This works fine using the IDAP-Link + idapnrfrog.exe or J-Link + nrfjprog.exe. Reading back the UICR using nrfjprog shows 0x10001014 = 0xffffffff when using OpenOCD, but it has the proper address when using the other tools. How can I properly upload the bootloader (and set the UICR) using CMSIS-DAP + OpenOCD?
  2. I may upgrade to SDK13 in the future, but want to release my project now with SDK11. Since the BL and SD and both be updated via DFU, can I allocated extra space for the bootloader and soft device now so that the new ones will fit later?
  3. This thread states that "Also, start address and size of the memory for the bootloader must add up to 0x00040000 bytes (the end of the application area in the flash)." Per the memory map here, I see this is the case for nRF51, but nRF52 project's defaults shows start 0x7A000 and size 0x4000, which doesn't go the the end of application space. Please clarify.
Related