Fix the case of the 'gdbPath' setting, and locate the SVD using $PICO_SDK_PATH
This commit is contained in:
parent
977c39e7bc
commit
2b0aa6bc79
@ -9,13 +9,13 @@
|
|||||||
"type": "cortex-debug",
|
"type": "cortex-debug",
|
||||||
"servertype": "openocd",
|
"servertype": "openocd",
|
||||||
// This may need to be arm-none-eabi-gdb depending on your system
|
// This may need to be arm-none-eabi-gdb depending on your system
|
||||||
"gdbpath" : "gdb-multiarch",
|
"gdbPath" : "gdb-multiarch",
|
||||||
"device": "RP2040",
|
"device": "RP2040",
|
||||||
"configFiles": [
|
"configFiles": [
|
||||||
"interface/raspberrypi-swd.cfg",
|
"interface/raspberrypi-swd.cfg",
|
||||||
"target/rp2040.cfg"
|
"target/rp2040.cfg"
|
||||||
],
|
],
|
||||||
"svdFile": "/home/pi/pico/pico-sdk/src/rp2040/hardware_regs/rp2040.svd",
|
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
|
||||||
"runToMain": true,
|
"runToMain": true,
|
||||||
// Work around for stopping at main on restart
|
// Work around for stopping at main on restart
|
||||||
"postRestartCommands": [
|
"postRestartCommands": [
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"servertype": "external",
|
"servertype": "external",
|
||||||
// This may need to be arm-none-eabi-gdb depending on your system
|
// This may need to be arm-none-eabi-gdb depending on your system
|
||||||
"gdbpath" : "gdb-multiarch",
|
"gdbPath" : "gdb-multiarch",
|
||||||
// Connect to an already running OpenOCD instance
|
// Connect to an already running OpenOCD instance
|
||||||
"gdbTarget": "your-openocd:3333",
|
"gdbTarget": "your-openocd:3333",
|
||||||
"svdFile": "/home/liam/pico/pico-sdk/src/rp2040/hardware_regs/rp2040.svd",
|
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
|
||||||
"runToMain": true,
|
"runToMain": true,
|
||||||
// Work around for stopping at main on restart
|
// Work around for stopping at main on restart
|
||||||
"postRestartCommands": [
|
"postRestartCommands": [
|
||||||
@ -21,4 +21,4 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user