2016-04-15 23:02:20 +02:00
|
|
|
#!/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
|
|
|
|
|
2017-07-05 13:14:30 +02:00
|
|
|
${OUTPUT_DIR}/host/bin/openocd -f board/stm32f469discovery.cfg \
|
2016-04-15 23:02:20 +02:00
|
|
|
-c "init" \
|
|
|
|
-c "reset init" \
|
|
|
|
-c "flash probe 0" \
|
|
|
|
-c "flash info 0" \
|
2021-06-07 18:31:49 +02:00
|
|
|
-c "flash write_image erase ${OUTPUT_DIR}/images/u-boot.bin 0x08000000" \
|
2016-04-15 23:02:20 +02:00
|
|
|
-c "reset run" \
|
|
|
|
-c "shutdown"
|