aboutsummaryrefslogtreecommitdiff
path: root/Debug/olimex-px4fmu-debug.cfg
diff options
context:
space:
mode:
authorKevin Hester <kevinh@geeksville.com>2013-08-11 11:34:19 -1000
committerLorenz Meier <lm@inf.ethz.ch>2013-08-21 15:01:51 +0200
commitf665ace38cfa4613fb911cb68f6662b15720ffea (patch)
tree73a1704094e020bd4c6ccb8c76ce6d868df2fc70 /Debug/olimex-px4fmu-debug.cfg
parent2bcf4385f66b2bcdb2917d2edf60d40813e207df (diff)
downloadpx4-firmware-f665ace38cfa4613fb911cb68f6662b15720ffea.tar.gz
px4-firmware-f665ace38cfa4613fb911cb68f6662b15720ffea.tar.bz2
px4-firmware-f665ace38cfa4613fb911cb68f6662b15720ffea.zip
Add scripts for debugging with openocd
Note: We now use the version of stm32f4x that comes with openocd 0.7.0 or later
Diffstat (limited to 'Debug/olimex-px4fmu-debug.cfg')
-rw-r--r--Debug/olimex-px4fmu-debug.cfg22
1 files changed, 22 insertions, 0 deletions
diff --git a/Debug/olimex-px4fmu-debug.cfg b/Debug/olimex-px4fmu-debug.cfg
new file mode 100644
index 000000000..61d70070d
--- /dev/null
+++ b/Debug/olimex-px4fmu-debug.cfg
@@ -0,0 +1,22 @@
+# program a bootable device load on a mavstation
+# To run type openocd -f mavprogram.cfg
+
+source [find interface/olimex-arm-usb-ocd-h.cfg]
+source [find px4fmu-v1-board.cfg]
+
+init
+halt
+
+# Find the flash inside this CPU
+flash probe 0
+
+# erase it (128 pages) then program and exit
+
+#flash erase_sector 0 0 127
+# stm32f1x mass_erase 0
+
+# It seems that Pat's image has a start address offset of 0x1000 but the vectors need to be at zero, so fixbin.sh moves things around
+#flash write_bank 0 fixed.bin 0
+#flash write_image firmware.elf
+#shutdown
+