diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..86d6cd0 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,25 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Release", + "cwd": "${workspaceRoot}", + "executable": "./build/ardix.elf", + "request": "launch", + "type": "cortex-debug", + "servertype": "openocd", + "configFiles": [ + "${workspaceRoot}/openocd.cfg" + ], + "runToMain": false, + "gdbPath": "/usr/bin/arm-none-eabi-gdb", + "preRestartCommands": [ + "file ./build/ardix.elf", + "load", + "add-symbol-file ./build/ardix.elf", + "enable breakpoint", + "monitor reset" + ] + } + ] + } diff --git a/openocd.cfg b/openocd.cfg new file mode 100644 index 0000000..574dfb0 --- /dev/null +++ b/openocd.cfg @@ -0,0 +1,7 @@ +# Atmel-ICE JTAG/SWD in-circuit debugger. +interface cmsis-dap +cmsis_dap_vid_pid 0x03eb 0x2141 + +# Chip info +set CHIPNAME at91sam3x8e +source [find target/at91sam3XXX.cfg]