add config for openocd with atmel-ice

This commit is contained in:
anna 2021-08-01 23:32:59 +02:00
parent c36c2182d7
commit 7bee3f694b
Signed by: fef
GPG key ID: EC22E476DC2D3D84
2 changed files with 32 additions and 0 deletions

25
.vscode/launch.json vendored Normal file
View file

@ -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"
]
}
]
}

7
openocd.cfg Normal file
View file

@ -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]