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

DFU SDK11 nrfjprog not working

Hi,

I'm using nrf52 + SDK11 + softdevice 132 2.0 and trying to integrate the OTA dual bank bootloader. Using the nrfjprog tool I program the softdevice + bootloader. If I debug my application in eclipse (after flashing softdevide and bootloader) I can always update the application using the Master Control Panel. If I program softdevice + bootloader and then flash my application using OTA and MCP everything works too. If I flash my application using nrfjprog everything works but when I try to update using the MCP I get an error: "Disconnected from device while waiting for response for INITIALIZE DFU".

I think I'm missing some configuration but can't figure out what exactly. My code can start, run, jump to OTA but cannot be updated over OTA when it is programmed with nrfjprog.

I apologize if this was already answered but I read several threads here and they dont seem related to this problem...

Any idea is welcome!

Thank you

  • The issue is related to the use of UICR.CUSTOMER[0] register. I'm using a script to automate the process of erase flash > program softdevice > program bootloader > program application > configure NFC pins...

    This script also writes some application data into some UICR registers. CUSTOMER[0] is also used by the bootloader to do some initialization checks (check dfu_init.hand dfu_init_template.c) I moved my configuration data to another UICR register and everything is working fine.

Related