update VS Code files

This commit is contained in:
Robin Müller 2024-06-22 18:47:46 +02:00
parent fe3cd95e58
commit 6bd6d24f04
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 94 additions and 33 deletions

View File

@ -97,3 +97,6 @@ configuration variables in your `settings.json`:
- `"cortex-debug.gdbPath.linux"` - `"cortex-debug.gdbPath.linux"`
- `"cortex-debug.gdbPath.windows"` - `"cortex-debug.gdbPath.windows"`
- `"cortex-debug.gdbPath.osx"` - `"cortex-debug.gdbPath.osx"`
The provided VS Code configurations also provide an integrated RTT logger, which you can access
via the terminal at `RTT Ch:0 console`.

View File

@ -4,92 +4,150 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug LED Blinky PAC",
// The user should start the J-Link server themselves for now. This is because the
// Cortex-Debug will issue a reset command, which is problematic even with
// a valid JLinkScript file
"servertype": "external",
"gdbTarget": "localhost:2331",
"cwd": "${workspaceRoot}",
"device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "blinky-pac-example",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky-pac",
"interface": "swd",
"runToEntryPoint": "main"
},
{ {
"type": "cortex-debug", "type": "cortex-debug",
"request": "launch", "request": "launch",
"name": "Debug LED Blinky", "name": "Debug LED Blinky",
"servertype": "external", "servertype": "jlink",
"gdbTarget": "localhost:2331", "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"device": "Cortex-M4", "device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "blinky-example", "preLaunchTask": "blinky-example",
"overrideLaunchCommands": [
"monitor halt",
"monitor reset",
"load",
],
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky-hal", "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky-hal",
"interface": "swd", "interface": "swd",
"runToEntryPoint": "main" "runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x1fff8000",
"decoders": [
{
"port": 0,
"type": "console"
}
]
}
}, },
{ {
"type": "cortex-debug", "type": "cortex-debug",
"request": "launch", "request": "launch",
"name": "Debug RTT Log", "name": "Debug RTT Example",
"servertype": "external", "servertype": "jlink",
"gdbTarget": "localhost:2331", "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"device": "Cortex-M4", "device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "rtt-log-example", "preLaunchTask": "rtt-log-example",
"overrideLaunchCommands": [
"monitor halt",
"monitor reset",
"load",
],
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/rtt-log", "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/rtt-log",
"interface": "swd", "interface": "swd",
"runToEntryPoint": "main" "runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x1fff8000",
"decoders": [
{
"port": 0,
"type": "console"
}
]
}
}, },
{ {
"type": "cortex-debug", "type": "cortex-debug",
"request": "launch", "request": "launch",
"name": "Debug UART Example", "name": "Debug UART Example",
"servertype": "external", "servertype": "jlink",
"gdbTarget": "localhost:2331", "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"device": "Cortex-M4", "device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "uart-example", "preLaunchTask": "uart-example",
"overrideLaunchCommands": [
"monitor halt",
"monitor reset",
"load",
],
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/uart", "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/uart",
"interface": "swd", "interface": "swd",
"runToEntryPoint": "main" "runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x1fff8000",
"decoders": [
{
"port": 0,
"type": "console"
}
]
}
}, },
{ {
"type": "cortex-debug", "type": "cortex-debug",
"request": "launch", "request": "launch",
"name": "Debug WDT Example", "name": "Debug WDT Example",
"servertype": "external", "servertype": "jlink",
"gdbTarget": "localhost:2331", "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"device": "Cortex-M4", "device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "wdt-example", "preLaunchTask": "wdt-example",
"overrideLaunchCommands": [
"monitor halt",
"monitor reset",
"load",
],
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/wdt", "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/wdt",
"interface": "swd", "interface": "swd",
"runToEntryPoint": "main" "runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x1fff8000",
"decoders": [
{
"port": 0,
"type": "console"
}
]
}
}, },
{ {
"type": "cortex-debug", "type": "cortex-debug",
"request": "launch", "request": "launch",
"name": "Debug SPI Example", "name": "Debug SPI Example",
"servertype": "external", "servertype": "jlink",
"gdbTarget": "localhost:2331", "jlinkscript": "${workspaceFolder}/jlink/JLinkSettings.JLinkScript",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"device": "Cortex-M4", "device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "spi-example", "preLaunchTask": "spi-example",
"overrideLaunchCommands": [
"monitor halt",
"monitor reset",
"load",
],
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/spi", "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/spi",
"interface": "swd", "interface": "swd",
"runToEntryPoint": "main" "runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x1fff8000",
"decoders": [
{
"port": 0,
"type": "console"
}
]
}
}, },
] ]
} }