mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 05:13:34 +08:00
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4200 7fd9a85b-ad96-42d3-883c-3090e2eb8679
27 lines
479 B
Plaintext
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
|
|
|