]> git.sur5r.net Git - openocd/commitdiff
stm32l: set default padded value
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 19 Sep 2013 11:08:53 +0000 (12:08 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 7 Oct 2013 19:28:30 +0000 (19:28 +0000)
The stm32l family has an erased value of 0x00, so overide the defaults used
by OpenOCD.

Change-Id: I314bdef1f8482fbcbd43e0f413247d3a35af869d
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1636
Tested-by: jenkins
src/flash/nor/stm32f1x.c

index 4244ba2458b94bb9966c2bf2f130a972dd994919..66a0ee54b7f274b344b4b427defc1555ba06fddd 100644 (file)
@@ -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;
 }