For various reasons we need to remove the dfu bootloader to use our custom bootloader. We replace the Nordic bootloader with a temporary one that does the clean-up for us. On our bench in debug mode this works fine (clear the uicr, clear the mbr, and clear the last words in the softdevice). HOWEVER, when we try to do this over the air on devices that are with customers and have APPROTECT set, we are never able to clear the uicr, or to clear the first page of the softdevice (the mbr), to remove the address of the bootloader. If we do it over the air on devices without approtect set, it works fine. Our procedures, fw etc are identical, the only difference is that in case we set read back protection it just does not work. Are we doing something wrong? Is there a protection that gets set in the SoftDevice we are not aware of?
We are seeing this problem on nrf52832 and nrf52840 with the sd332_6.1 and the sd340_7.0 respecitvely. Both on the pca boards and in our production boards
