0de48480ec
This change renders the stm32f429discovery a bit more generic and reuse most of its settings for the stm32f429-disc1 board. Cc: Waldemar Brodkorb <wbx@openadk.org> Cc: Davide Viti <zinosat@tiscali.it> Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
27 lines
853 B
Bash
Executable File
27 lines
853 B
Bash
Executable File
#!/bin/bash
|
|
|
|
OUTPUT_DIR=$1
|
|
BOARD_NAME=${2:-stm32f429discovery}
|
|
|
|
if ! test -d "${OUTPUT_DIR}" ; then
|
|
echo "ERROR: no output directory specified."
|
|
echo "Usage: $0 OUTPUT_DIR BOARD_NAME"
|
|
echo ""
|
|
echo "Arguments:"
|
|
echo " OUTPUT_DIR The Buildroot output directory."
|
|
echo " BOARD_NAME One of the available boards among:"
|
|
echo " stm32f429discovery, stm32f429disc1"
|
|
exit 1
|
|
fi
|
|
|
|
${OUTPUT_DIR}/host/usr/bin/openocd -f board/${BOARD_NAME}.cfg \
|
|
-c "init" \
|
|
-c "reset init" \
|
|
-c "flash probe 0" \
|
|
-c "flash info 0" \
|
|
-c "flash write_image erase ${OUTPUT_DIR}/images/stm32f429i-disco.bin 0x08000000" \
|
|
-c "flash write_image erase ${OUTPUT_DIR}/images/stm32f429-disco.dtb 0x08004000" \
|
|
-c "flash write_image erase ${OUTPUT_DIR}/images/xipImage 0x08008000" \
|
|
-c "reset run" \
|
|
-c "shutdown"
|