aboutsummaryrefslogtreecommitdiff
path: root/code/temperature/.gdbinit
diff options
context:
space:
mode:
Diffstat (limited to 'code/temperature/.gdbinit')
-rw-r--r--code/temperature/.gdbinit37
1 files changed, 37 insertions, 0 deletions
diff --git a/code/temperature/.gdbinit b/code/temperature/.gdbinit
new file mode 100644
index 0000000..b56184d
--- /dev/null
+++ b/code/temperature/.gdbinit
@@ -0,0 +1,37 @@
+define target hookpost-remote
+ monitor reset
+ set remotetimeout 20
+end
+
+define target hookpost-extended-remote
+ monitor reset
+ set remotetimeout 20
+end
+
+define run_temp
+ monitor halt
+
+ shell cd ../build; make -j4 temp
+
+ set confirm off
+ file ../build/temp/temp
+ set confirm on
+
+# load
+ shell cd ../build; make -j4 temp-flash
+ continue
+end
+
+set print array on
+set print array-indexes
+
+
+set confirm off
+file ../build/temp/temp
+set confirm on
+
+target extended-remote :3333
+
+hb HardFault_Handler
+hb main
+disable 2