diff --git a/vscode/launch.json b/vscode/launch.json index 23ebf0b..9697ff7 100644 --- a/vscode/launch.json +++ b/vscode/launch.json @@ -31,7 +31,7 @@ "device": "Cortex-M4", "svdFile": "${workspaceFolder}/va416xx/svd/va416xx.svd.patched", "preLaunchTask": "blinky-example", - "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky", + "executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky-hal", "interface": "swd", "runToEntryPoint": "main" }, @@ -49,5 +49,47 @@ "interface": "swd", "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" + }, ] } \ No newline at end of file diff --git a/vscode/tasks.json b/vscode/tasks.json index d7113a3..3474f1f 100644 --- a/vscode/tasks.json +++ b/vscode/tasks.json @@ -9,14 +9,11 @@ "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "build", - "-p", - "va416xx-hal", "--example", "blinky-pac" ], "group": { "kind": "build", - "isDefault": true } }, { @@ -25,14 +22,11 @@ "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "build", - "-p", - "va416xx-hal", "--example", "rtt-log" ], "group": { "kind": "build", - "isDefault": true } }, { @@ -41,15 +35,52 @@ "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "build", - "-p", - "va416xx-hal", "--example", - "blinky" + "blinky-hal" ], "group": { "kind": "build", "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", + } + }, ] } \ No newline at end of file