From 28cfff15848eaf65ee844a2200c01473f8fe7afe Mon Sep 17 00:00:00 2001 From: Rob Giseburt Date: Wed, 16 Mar 2016 14:16:14 -0500 Subject: [PATCH] Added reset and flash commands to gdb setup. --- TinyG2/platform/atmel_sam.gdb | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/TinyG2/platform/atmel_sam.gdb b/TinyG2/platform/atmel_sam.gdb index 8164d115..24d0a155 100644 --- a/TinyG2/platform/atmel_sam.gdb +++ b/TinyG2/platform/atmel_sam.gdb @@ -22,6 +22,19 @@ set history expansion on set print pretty on -# Halt the device -monitor reset halt +define boot_from_flash + monitor at91sam3 gpnvm set 1 +end +define reset + boot_from_flash + monitor reset init +end + +define flash + make + load + reset +end + +reset