This is an automated email from Gerrit.

Rodrigo L. Rosa ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/232

-- gerrit

commit ae32fcc8ce1904f4edca80362b29ec2659fe53d3
Author: rodrigo_l_rosa <[email protected]>
Date:   Mon Nov 21 10:34:24 2011 -0800

    dsp5680xx - match page erase with mass erase
    
    when last==first==0 then mass erase is executed, it's faster.
    the page marking was wrong in this case.
    
    Change-Id: I5c579d59b5c4778cf057cb5986e086abdd4209b2
    Signed-off-by: Rodrigo L. Rosa <[email protected]>

diff --git a/src/flash/nor/dsp5680xx_flash.c b/src/flash/nor/dsp5680xx_flash.c
index 343caf9..01b806e 100644
--- a/src/flash/nor/dsp5680xx_flash.c
+++ b/src/flash/nor/dsp5680xx_flash.c
@@ -197,6 +197,8 @@ static int dsp5680xx_flash_info(struct flash_bank *bank, 
char *buf, int buf_size
 static int dsp5680xx_flash_erase(struct flash_bank * bank, int first, int 
last){
   int retval;
   retval = dsp5680xx_f_erase(bank->target, (uint32_t) first, (uint32_t) last);
+  if ((!(first|last)) || ((first == 0) && (last == (HFM_SECTOR_COUNT-1))))
+    last = HFM_SECTOR_COUNT-1;
   if(retval == ERROR_OK)
     for(int i = first;i<=last;i++)
       bank->sectors[i].is_erased = 1;

-- 

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to