added spi task and launch cfg

This commit is contained in:
Robin Müller 2021-11-15 10:55:22 +01:00
parent edc02fee89
commit 7d521f2c92
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 29 additions and 4 deletions

17
.vscode/launch.json vendored
View File

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

14
.vscode/tasks.json vendored
View File

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

@ -1 +1 @@
Subproject commit 7c3a425ce0523e6e66b790a54175c8b79c50818e
Subproject commit cc635457d0d75296fcb46d2b9884d9dae72fe429