This is an automated email from Gerrit.

Tomas Vanek ([email protected]) just uploaded a new patch set to Gerrit, which you 
can find at http://openocd.zylin.com/5348

-- gerrit

commit ceb553d7002192be5e1e371588b15932d84edda3
Author: Tomas Vanek <[email protected]>
Date:   Thu May 9 16:38:47 2019 +0200

    flash/nor/nrf5: remove check for protected sector
    
    The new "Access control list" flash protection scheme used in nRF52840
    is not yet supported. Do not prevent sector erase if protection
    state is unknown.
    
    Change-Id: Iae9a869a54ffbdc888fb3ec478dafb5c942d9ea0
    Signed-off-by: Tomas Vanek <[email protected]>

diff --git a/src/flash/nor/nrf5.c b/src/flash/nor/nrf5.c
index c1fd257..d923468 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) {

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to