From: Spencer Oliver Date: Thu, 19 Sep 2013 11:08:53 +0000 (+0100) Subject: stm32l: set default padded value X-Git-Tag: v0.8.0-rc1~224 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=2493671e2d9c352ea70edc8665b4c8f172ef1141 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 --- diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index 4244ba2458..66a0ee54b7 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; }