added lauch file for UART example

This commit is contained in:
Robin Müller 2021-11-09 13:21:15 +01:00
parent 075b2f10a8
commit 9a89c0ee13
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 28 additions and 1 deletions

15
.vscode/launch.json vendored
View File

@ -74,5 +74,20 @@
"interface": "jtag",
"runToMain": true,
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug UART",
"servertype": "jlink",
"gdbPath": "/usr/bin/gdb-multiarch",
"cwd": "${workspaceRoot}",
"device": "VA10820",
"svdFile": "./va108xx-rs/svd/va108xx-base.svd.patched",
"preLaunchTask": "rust: cargo build button uart",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/uart",
"interface": "jtag",
"runToMain": true,
},
]
}

12
.vscode/tasks.json vendored
View File

@ -52,6 +52,18 @@
"isDefault": true
}
},
{
"label": "rust: cargo build button uart",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build", "-p", "va108xx-hal", "--example", "uart",
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "rust: cargo build led blinky",

@ -1 +1 @@
Subproject commit 11973c3d022d14c7238fc991c277e44f3d837f40
Subproject commit d05498f7de3a83041245abaaae4c38bd7576aff4