Hello,
In nRF5_SDK_17/examples/dfu/secure_bootloader/main.c, the main program starts off with protecting a couple of flash areas:
// Protect MBR and bootloader code from being overwritten.
uint32_t ret_val = nrf_bootloader_flash_protect(0, MBR_SIZE);
APP_ERROR_CHECK(ret_val);
ret_val = nrf_bootloader_flash_protect(BOOTLOADER_START_ADDR, BOOTLOADER_SIZE);
APP_ERROR_CHECK(ret_val);
But how can, after this, an OTA update of the (single-bank) bootloader be performed when its flash area is write-protected?
Thank you,
Mark