This is an automated email from Gerrit.

Mathias Küster ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/555

-- gerrit

commit 4125033f9162a8d0347ab820594221f41648da06
Author: Mathias K <[email protected]>
Date:   Wed Apr 4 11:36:38 2012 +0200

    STM32L: Write partial-page flash data after full-page data
    
    The target address for the partial data needs to be bumped past the
    full page data. Otherwise, the partial data overwrites the start of
    the flash block.
    
    Change-Id: I1246b2fa8acbdb8193edcf7029309f11d1c6069c
    Signed-off-by: Keith Packard <[email protected]>
    Signed-off-by: Mathias K <[email protected]>

diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c
index de894f4..051db7f 100644
--- a/src/flash/nor/stm32lx.c
+++ b/src/flash/nor/stm32lx.c
@@ -415,6 +415,7 @@ static int stm32lx_write(struct flash_bank *bank, uint8_t 
*buffer,
        }
 
        bytes_written = 128 * halfpages_number;
+       address += bytes_written;
 
        retval = stm32lx_unlock_program_memory(bank);
        if (retval != ERROR_OK)

-- 

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to