From 734916edfdde3ec2894a75a3c84bd90e4626a77d Mon Sep 17 00:00:00 2001 From: Jeremy Thorpe Date: Fri, 27 Sep 2013 12:52:03 -0700 Subject: Tool support for STM32L-Discovery board Add the ChipID for the stm32l152c board to stm32mon. Add discovery to the list of supported boards in flash_ec. BUG=None TEST=With modified servo connector, see that image can be loaded onto stm32l152c discovery board. BRANCH=none Change-Id: Ie16c64d17c907f7de765b09de98f534c486ae04c Signed-off-by: Jeremy Thorpe Reviewed-on: https://chromium-review.googlesource.com/170981 Reviewed-by: Vincent Palatin --- util/flash_ec | 2 +- util/stm32mon.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/util/flash_ec b/util/flash_ec index eaee634dcf..ef2ec3c2ae 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -222,7 +222,7 @@ fi save="$(servo_save)" case "${BOARD}" in - daisy | kirby | pit | puppy | snow | spring ) flash_stm32 ;; + daisy | kirby | pit | puppy | snow | spring | discovery ) flash_stm32 ;; bolt | falco | peppy | rambi | slippy ) flash_lm4 ;; link ) flash_link ;; *) die "board ${BOARD} not supported" ;; diff --git a/util/stm32mon.c b/util/stm32mon.c index 41ed389fc8..2c347dc908 100644 --- a/util/stm32mon.c +++ b/util/stm32mon.c @@ -53,7 +53,8 @@ struct stm32_def { uint32_t flash_size; uint32_t page_size; } chip_defs[] = { - {0x416, "STM32L15xx", 0x08000000, 0x20000, 256}, + {0x416, "STM32L15xxB", 0x08000000, 0x20000, 256}, + {0x427, "STM32L15xxC", 0x08000000, 0x40000, 256}, {0x420, "STM32F100xx", 0x08000000, 0x20000, 1024}, {0x410, "STM32F102R8", 0x08000000, 0x10000, 1024}, { 0 } -- cgit v1.2.1