update VS Code files

This commit is contained in:
Robin Müller 2024-06-22 14:28:22 +02:00
parent 2c11ee485e
commit 7349c16268
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 83 additions and 10 deletions

View File

@ -31,7 +31,7 @@
"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",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky", "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky-hal",
"interface": "swd", "interface": "swd",
"runToEntryPoint": "main" "runToEntryPoint": "main"
}, },
@ -49,5 +49,47 @@
"interface": "swd", "interface": "swd",
"runToEntryPoint": "main" "runToEntryPoint": "main"
}, },
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug UART Example",
"servertype": "external",
"gdbTarget": "localhost:2331",
"cwd": "${workspaceRoot}",
"device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "uart-example",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/uart",
"interface": "swd",
"runToEntryPoint": "main"
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug WDT Example",
"servertype": "external",
"gdbTarget": "localhost:2331",
"cwd": "${workspaceRoot}",
"device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "wdt-example",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/wdt",
"interface": "swd",
"runToEntryPoint": "main"
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug SPI Example",
"servertype": "external",
"gdbTarget": "localhost:2331",
"cwd": "${workspaceRoot}",
"device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched",
"preLaunchTask": "spi-example",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/spi",
"interface": "swd",
"runToEntryPoint": "main"
},
] ]
} }

View File

@ -9,14 +9,11 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo "command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [ "args": [
"build", "build",
"-p",
"va416xx-hal",
"--example", "--example",
"blinky-pac" "blinky-pac"
], ],
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true
} }
}, },
{ {
@ -25,14 +22,11 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo "command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [ "args": [
"build", "build",
"-p",
"va416xx-hal",
"--example", "--example",
"rtt-log" "rtt-log"
], ],
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true
} }
}, },
{ {
@ -41,15 +35,52 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo "command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [ "args": [
"build", "build",
"-p",
"va416xx-hal",
"--example", "--example",
"blinky" "blinky-hal"
], ],
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
} }
}, },
{
"label": "uart-example",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"--example",
"uart"
],
"group": {
"kind": "build",
}
},
{
"label": "wdt-example",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"--example",
"wdt"
],
"group": {
"kind": "build",
}
},
{
"label": "spi-example",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"--example",
"spi"
],
"group": {
"kind": "build",
}
},
] ]
} }