nuttx/configs/olimex-strp711/scripts/oocd_flash.script
patacongo 6ae932a3b5 Add configuration of Olimex-STR-P711
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1103 42af7a65-404d-4744-a932-0658087f49c3
2008-10-30 00:23:38 +00:00

27 lines
479 B
Plaintext

#
# 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