snapshot of my first "working" version from turn-on of Altus Metrum v0.1
[fw/openalt] / oocd_flash_lpc2148.script
diff --git a/oocd_flash_lpc2148.script b/oocd_flash_lpc2148.script
new file mode 100644 (file)
index 0000000..8ec897b
--- /dev/null
@@ -0,0 +1,26 @@
+#
+# The following commands will be executed on
+# reset (because of run_and_init in the config-file)
+# - wait for target halt
+# - erase memory
+# - flash content of file main.bin into target-memory
+# - shutdown openocd
+#
+# created by Martin Thomas
+# http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects
+# based on information from Dominic Rath
+#
+arm7_9 dcc_downloads enable
+wait_halt
+sleep 10
+poll
+flash probe 0
+# erase first bank only:
+flash erase 0 0 26
+flash write 0 lpc2148.bin 0x0
+#flash write 0 scripts/lpc2148_freertos.bin 0x0
+#flash write 0 scripts/main.bin 0x0
+reset run
+sleep 10
+shutdown
+