mirror of
https://github.com/synthetos/g2.git
synced 2026-09-22 03:08:42 +08:00
Added reset and flash commands to gdb setup.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user