update submodule, add new blinky example

This commit is contained in:
Robin Müller 2021-12-18 14:54:34 +01:00
parent 7b8fa73da9
commit b592006e7c
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
5 changed files with 31 additions and 4 deletions

2
.gitignore vendored
View File

@ -10,3 +10,5 @@ Cargo.lock
**/*.rs.bk **/*.rs.bk
/.vscode/.cortex-debug.* /.vscode/.cortex-debug.*
/.vscode/settings.json

17
.vscode/launch.json vendored
View File

@ -7,13 +7,26 @@
{ {
"type": "cortex-debug", "type": "cortex-debug",
"request": "launch", "request": "launch",
"name": "Debug LED Blinky", "name": "Debug LED Blinky PAC",
// The user should start the J-Link server themselves for now. This is because the // 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 // Cortex-Debug will issue a reset command, which is problematic even with
// a valid JLinkScript file // a valid JLinkScript file
"servertype": "external", "servertype": "external",
"gdbTarget": "localhost:2331", "gdbTarget": "localhost:2331",
"gdbPath": "/usr/bin/gdb-multiarch", "cwd": "${workspaceRoot}",
"device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx-base.svd",
"preLaunchTask": "rust: cargo build led blinky pac",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky-pac",
"interface": "swd",
"runToMain": true,
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug LED Blinky",
"servertype": "external",
"gdbTarget": "localhost:2331",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"device": "Cortex-M4", "device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx-base.svd", "svdFile": "${workspaceFolder}/va416xx/svd/va416xx-base.svd",

12
.vscode/tasks.json vendored
View File

@ -3,6 +3,18 @@
// for the documentation about the tasks.json format // for the documentation about the tasks.json format
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{
"label": "rust: cargo build led blinky pac",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build", "-p", "va416xx-hal", "--example", "blinky-pac"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{ {
"label": "rust: cargo build led blinky", "label": "rust: cargo build led blinky",
"type": "shell", "type": "shell",

@ -1 +1 @@
Subproject commit ffae4b2e0b6ef022e825e0e7577561ec7add0c9c Subproject commit 97f9a3a36240cf86c8a60317e02a77dd4f046787

@ -1 +1 @@
Subproject commit f8487e9c5015e99ba152c35f50ff37f75494c9cf Subproject commit be6b8868b43748921dc46b81d57bfbd5578bf1f2