summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Thorpe <jeremyt@chromium.org>2013-09-27 12:52:03 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-28 04:21:21 +0000
commit734916edfdde3ec2894a75a3c84bd90e4626a77d (patch)
tree2adeaee31151b126690c673da4bebd1de6112154
parentf1d0d8b2dbc688730b5712c783550662f55fbffc (diff)
downloadchrome-ec-734916edfdde3ec2894a75a3c84bd90e4626a77d.tar.gz
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 <jeremyt@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/170981 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rwxr-xr-xutil/flash_ec2
-rw-r--r--util/stm32mon.c3
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 }