summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-strp711/scripts/oocd_flash.script
blob: d07067544116c4088236384788ee1490d11c0b4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 
# The following command will be executed on reset
# - wait for target halt
# - erase memory
# - flash content of file nuttx.bin into target-memory
# - shutdown openocd
#
# Based on file originally created by Martin Thomas 
#

arm7_9 dcc_downloads enable
wait_halt
sleep 10
poll
flash probe 0

# STR710 erase all banks:
#flash erase 0 0 9
# STR710 erase first 4 banks (32kB)
flash erase 0 0 4

flash write 0 nuttx.bin 0x0
reset run
sleep 10
shutdown