add config for openocd with atmel-ice
This commit is contained in:
parent
c36c2182d7
commit
7bee3f694b
2 changed files with 32 additions and 0 deletions
25
.vscode/launch.json
vendored
Normal file
25
.vscode/launch.json
vendored
Normal 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
7
openocd.cfg
Normal 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]
|
Loading…
Reference in a new issue