This is an automated email from Gerrit.

Paul Fertser (fercer...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2594

-- gerrit

commit 439cdea9b885a677c1262b7d4a5691351c993060
Author: Paul Fertser <fercer...@gmail.com>
Date:   Tue Mar 10 22:22:36 2015 +0300

    flash/nor/kinetis: do not attempt mass-erase in place of a bank erase
    
    Many kinetis parts come in multi-bank configuration, so this
    optimisation here can't be performed safely.
    
    Investigated and fixed by Richard Braun.
    
    Change-Id: I2b56614b47951595c403a1a8edd3afe11b85679b
    Signed-off-by: Paul Fertser <fercer...@gmail.com>

diff --git a/src/flash/nor/kinetis.c b/src/flash/nor/kinetis.c
index a392a17..638e002 100644
--- a/src/flash/nor/kinetis.c
+++ b/src/flash/nor/kinetis.c
@@ -845,9 +845,6 @@ static int kinetis_erase(struct flash_bank *bank, int 
first, int last)
        if ((first > bank->num_sectors) || (last > bank->num_sectors))
                return ERROR_FLASH_OPERATION_FAILED;
 
-       if ((first == 0) && (last == (bank->num_sectors - 1)))
-               return kinetis_mass_erase(bank);
-
        /*
         * FIXME: TODO: use the 'Erase Flash Block' command if the
         * requested erase is PFlash or NVM and encompasses the entire

-- 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to