From 2493671e2d9c352ea70edc8665b4c8f172ef1141 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Thu, 19 Sep 2013 12:08:53 +0100 Subject: [PATCH] stm32l: set default padded value The stm32l family has an erased value of 0x00, so overide the defaults used by OpenOCD. Change-Id: I314bdef1f8482fbcbd43e0f413247d3a35af869d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1636 Tested-by: jenkins --- src/flash/nor/stm32f1x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index 4244ba24..66a0ee54 100644 --- a/src/flash/nor/stm32f1x.c +++ b/src/flash/nor/stm32f1x.c @@ -150,6 +150,9 @@ FLASH_BANK_COMMAND_HANDLER(stm32x_flash_bank_command) stm32x_info->register_base = FLASH_REG_BASE_B0; stm32x_info->user_bank_size = bank->size; + /* the stm32l erased value is 0x00 */ + bank->default_padded_value = 0x00; + return ERROR_OK; } -- 2.39.5