This is an automated email from Gerrit.

Bruno FLEURETTE (bruno.fleure...@gmail.com) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/363

-- gerrit

commit dc49a3e0ed702dde71b7127c1a3270df8b9aeed5
Author: Bruno FLEURETTE <bruno.fleure...@gmail.com>
Date:   Tue Jan 10 16:24:06 2012 +0100

    flash: pre-check flash unlock for stm32f2x
    
    add checking of the current flash lock status before performing the unlock 
sequence (which would fail in an unlocked state)
    
    Change-Id: I693294c9cd2f59e69cb5bf3338120052fd680b1e
    Signed-off-by: Bruno FLEURETTE <bruno.fleure...@gmail.com>

diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c
index 3775376..591b326 100644
--- a/src/flash/nor/stm32f2x.c
+++ b/src/flash/nor/stm32f2x.c
@@ -244,7 +244,7 @@ static int stm32x_unlock_reg(struct target *target)
        if ((ctrl & FLASH_LOCK) == 0)
                return ERROR_OK;
 
-       /* unlock flash registers */
+       /* unlock flash registers */
        retval = target_write_u32(target, STM32_FLASH_KEYR, KEY1);
        if (retval != ERROR_OK)
                return retval;

-- 

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to