This is an automated email from Gerrit.

Jim Paris (j...@jtan.com) just uploaded a new patch set to Gerrit, which you 
can find at http://openocd.zylin.com/2361

-- gerrit

commit 4a905068c1b00dbe5c2b9efe6fa626dbaad30a48
Author: Jim Paris <j...@jtan.com>
Date:   Tue Oct 28 16:20:16 2014 -0400

    nrf51: round UICR region size up to 0x100 bytes
    
    GDB rounds flash addresses to the nearest multiple of the block size
    when determing which flash blocks to erase.  Setting the actual block
    size of 0xfc for the UICR causes GDB to try to erase starting at
    address 0x10000fb0.  Instead, round up to 0x100 bytes so that the
    erase starts at 0x10001000 instead.
    
    Change-Id: I416c391cbfc7be41a03a9b9c6e42326c87391f38
    Signed-off-by: Jim Paris <j...@jtan.com>

diff --git a/src/flash/nor/nrf51.c b/src/flash/nor/nrf51.c
index 711d6fb..8f6760d 100644
--- a/src/flash/nor/nrf51.c
+++ b/src/flash/nor/nrf51.c
@@ -73,7 +73,7 @@ enum nrf51_uicr_registers {
        NRF51_UICR_BASE = 0x10001000, /* User Information
                                       * Configuration Regsters */
 
-       NRF51_UICR_SIZE = 252,
+       NRF51_UICR_SIZE = 0x100,
 
 #define NRF51_UICR_REG(offset) (NRF51_UICR_BASE + offset)
 

-- 

------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to