Blame view

buildroot/buildroot-2016.08.1/board/stmicroelectronics/stm32f429-disco/flash.sh 588 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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/stm32f429discovery.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"