diff --git a/build/.gitignore b/build/.gitignore index 1b4ab9c..96d5d16 100644 --- a/build/.gitignore +++ b/build/.gitignore @@ -4,6 +4,10 @@ !gcc/same54p20a_flash.ld !gcc/same54p20a_sram.ld !gcc/startup_same54.c +!scripts +!scripts/openocd.cfg +!scripts/push.gdb +!scripts/debug.gdb !.gitignore !system_same54.c !Makefile diff --git a/build/scripts/debug.gdb b/build/scripts/debug.gdb new file mode 100644 index 0000000..c765f5e --- /dev/null +++ b/build/scripts/debug.gdb @@ -0,0 +1,6 @@ +set pagination off +set logging file gdb.txt +set logging on +target extended-remote localhost:3333 +load +monitor reset diff --git a/build/scripts/openocd.cfg b/build/scripts/openocd.cfg new file mode 100644 index 0000000..1d2dfcc --- /dev/null +++ b/build/scripts/openocd.cfg @@ -0,0 +1,9 @@ +# +# Atmel SAMD21 Xplained Pro evaluation kit. +# + +source [find interface/cmsis-dap.cfg] +transport select swd +# chip name +set CHIPNAME atsame54p20a +source [find target/atsame5x.cfg] diff --git a/build/scripts/push.gdb b/build/scripts/push.gdb new file mode 100644 index 0000000..c979684 --- /dev/null +++ b/build/scripts/push.gdb @@ -0,0 +1,9 @@ +set pagination off +set logging file gdb.txt +set logging redirect on +set logging on +target extended-remote localhost:3333 +load +monitor reset +q +y