python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / board / stmicroelectronics / stm32f429-disco / flash.sh
blobffb8fcffa104ef5a1d815f89e26eba802c5b4242
1 #!/bin/bash
3 OUTPUT_DIR=$1
5 if ! test -d "${OUTPUT_DIR}" ; then
6 echo "ERROR: no output directory specified."
7 echo "Usage: $0 OUTPUT_DIR"
8 exit 1
9 fi
11 ${OUTPUT_DIR}/host/usr/bin/openocd -f board/stm32f429discovery.cfg \
12 -c "init" \
13 -c "reset init" \
14 -c "flash probe 0" \
15 -c "flash info 0" \
16 -c "flash write_image erase ${OUTPUT_DIR}/images/stm32f429i-disco.bin 0x08000000" \
17 -c "flash write_image erase ${OUTPUT_DIR}/images/stm32f429-disco.dtb 0x08004000" \
18 -c "flash write_image erase ${OUTPUT_DIR}/images/xipImage 0x08008000" \
19 -c "reset run" \
20 -c "shutdown"