summaryrefslogtreecommitdiffstats
path: root/board/stmicroelectronics/stm32f469-disco/flash.sh
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2016-04-15 23:02:20 +0200
committerPeter Korsgaard <peter@korsgaard.com>2016-04-16 12:44:07 +0200
commit04d0a5793fd802b1bcd091cfdd84a464d438579e (patch)
tree74b4ab6812f7c51ebacaac008f8980bf0af0cac4 /board/stmicroelectronics/stm32f469-disco/flash.sh
parentc8ad46a1a72e41d4f1c2140d63cb771a20359347 (diff)
downloadbuildroot-04d0a5793fd802b1bcd091cfdd84a464d438579e.tar.gz
buildroot-04d0a5793fd802b1bcd091cfdd84a464d438579e.zip
configs/stm32f469_disco: new configuration for STM32F469 Discovery board
Similar to stm32f429_disco, this commit adds a configuration for the Cortex-M4 based STM32F469 platform. It requires a few kernel patches, which have already been submitted upstream, as well as a small OpenOCD patch. Besides that, it re-uses most of what has been added for the STM32F429 platform. Signed-off-by: Lee Jones <lee.jones@linaro.org> [Thomas: - squash multiple patches from Lee Jones into one - improve the readme.txt file - sync the defconfig with the adaptations made to the stm32f429 configuration.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/stmicroelectronics/stm32f469-disco/flash.sh')
-rwxr-xr-xboard/stmicroelectronics/stm32f469-disco/flash.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/board/stmicroelectronics/stm32f469-disco/flash.sh b/board/stmicroelectronics/stm32f469-disco/flash.sh
new file mode 100755
index 0000000000..a68bea09a7
--- /dev/null
+++ b/board/stmicroelectronics/stm32f469-disco/flash.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+OUTPUT_DIR=$1
+
+if ! test -d "${OUTPUT_DIR}" ; then
+ echo "ERROR: no output directory specified."
+ echo "Usage: $0 OUTPUT_DIR"
+ exit 1
+fi
+
+${OUTPUT_DIR}/host/usr/bin/openocd -f board/stm32f469discovery.cfg \
+ -c "init" \
+ -c "reset init" \
+ -c "flash probe 0" \
+ -c "flash info 0" \
+ -c "flash write_image erase ${OUTPUT_DIR}/images/stm32f469i-disco.bin 0x08000000" \
+ -c "flash write_image erase ${OUTPUT_DIR}/images/stm32f469-disco.dtb 0x08004000" \
+ -c "flash write_image erase ${OUTPUT_DIR}/images/xipImage 0x08008000" \
+ -c "reset run" \
+ -c "shutdown"
OpenPOWER on IntegriCloud