This is an automated email from Gerrit.

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

-- gerrit

commit 3c34958b6fbd338841bc87450169ff04790be5e4
Author: Andreas Kemnade <[email protected]>
Date:   Sun Mar 4 09:07:23 2018 +0100

    efm32: correct erase address if bank->base != 0
    
    Prepare for additional flash banks not located at address 0
    
    Change-Id: I60b78c917f94fa52bf24df9e3315536f776eec84
    Signed-off-by: Andreas Kemnade <[email protected]>

diff --git a/src/flash/nor/efm32.c b/src/flash/nor/efm32.c
index 282b6bd..9e4a47e 100644
--- a/src/flash/nor/efm32.c
+++ b/src/flash/nor/efm32.c
@@ -429,7 +429,7 @@ static int efm32x_erase_page(struct flash_bank *bank, 
uint32_t addr)
         */
        int ret = 0;
        uint32_t status = 0;
-
+       addr += bank->base;
        LOG_DEBUG("erasing flash page at 0x%08" PRIx32, addr);
 
        ret = efm32x_write_reg_u32(bank, EFM32_MSC_REG_ADDRB, addr);

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to