From cb3e0ca7865d920bd89997046641b48c040e2a36 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Mon, 19 Oct 2015 10:04:23 -0700 Subject: [PATCH] stm32f05x: Use correct erase block size of 1kB Change erase block size to the correct 1kB. BUG=chrome-os-partner:41959 BRANCH=none TEST=with following CL, test software sync to PD MCU on glados. Change-Id: I6252e6344e50f00249ab105a90febd15599c936f Signed-off-by: Alec Berg Reviewed-on: https://chromium-review.googlesource.com/307042 Reviewed-by: Vincent Palatin --- chip/stm32/config-stm32f05x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chip/stm32/config-stm32f05x.h b/chip/stm32/config-stm32f05x.h index 648347879a..cab7b62d50 100644 --- a/chip/stm32/config-stm32f05x.h +++ b/chip/stm32/config-stm32f05x.h @@ -6,7 +6,7 @@ /* Memory mapping */ #define CONFIG_FLASH_SIZE (64 * 1024) #define CONFIG_FLASH_BANK_SIZE 0x1000 -#define CONFIG_FLASH_ERASE_SIZE 0x0800 /* erase bank size */ +#define CONFIG_FLASH_ERASE_SIZE 0x0400 /* erase bank size */ #define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */ /* No page mode on STM32F, so no benefit to larger write sizes */