X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;ds=inline;f=src%2Fflash%2Fnor%2Fnrf5.c;h=d923468fd7459e6184e229d463a2edbfe6ace68b;hb=22b4abc46c552bfc21003853b74e732da773cd1d;hp=c1fd257efbd2d0c16ed069e38f54e30d6db995f5;hpb=0f12d792ed5ab2b8f934e689b8a23f8c55f1f218;p=openocd.git diff --git a/src/flash/nor/nrf5.c b/src/flash/nor/nrf5.c index c1fd257efb..d923468fd7 100644 --- a/src/flash/nor/nrf5.c +++ b/src/flash/nor/nrf5.c @@ -859,10 +859,6 @@ static int nrf5_erase_page(struct flash_bank *bank, int res; LOG_DEBUG("Erasing page at 0x%"PRIx32, sector->offset); - if (sector->is_protected) { - LOG_ERROR("Cannot erase protected sector at 0x%" PRIx32, sector->offset); - return ERROR_FAIL; - } if (bank->base == NRF5_UICR_BASE) { if (chip->features & NRF5_FEATURE_SERIES_51) {