This is an automated email from Gerrit. Uwe Bonnes ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/3372
-- gerrit commit 3eec4380fe735547869a00167b180c916d4bc75b Author: Uwe Bonnes <[email protected]> Date: Wed Mar 2 12:34:52 2016 +0100 src/flash/nor/stm32lx.c: Adapt buffer size to device. Alloc only 8 pages as only 2 kiB Ram may be available on small devices. Taken from git://git.ac6.fr/openocd/ commit 337122c7ae7. Change-Id: Ifcb562312550cec4fb3101f343cec66a3c116f05 Signed-off-by: Uwe Bonnes <[email protected]> diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c index 22830e6..8dba62b 100644 --- a/src/flash/nor/stm32lx.c +++ b/src/flash/nor/stm32lx.c @@ -398,7 +398,7 @@ static int stm32lx_write_half_pages(struct flash_bank *bank, const uint8_t *buff struct stm32lx_flash_bank *stm32lx_info = bank->driver_priv; uint32_t hp_nb = stm32lx_info->part_info->page_size / 2; - uint32_t buffer_size = 16384; + uint32_t buffer_size = stm32lx_info->part_info->page_size*8; struct working_area *write_algorithm; struct working_area *source; uint32_t address = bank->base + offset; @@ -612,7 +612,7 @@ static int stm32lx_write(struct flash_bank *bank, const uint8_t *buffer, return retval; /* first we need to write any unaligned head bytes upto - * the next 128 byte page */ + * the next half_page byte page */ if (offset % hp_nb) bytes_remaining = MIN(count, hp_nb - (offset % hp_nb)); -- ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
