added RTT example code

This commit is contained in:
Robin Müller 2021-12-31 16:49:15 +01:00
parent b7f0f62f81
commit 18b2432f6b
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 27 additions and 1 deletions

14
.vscode/launch.json vendored
View File

@ -35,5 +35,19 @@
"interface": "swd",
"runToMain": true,
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug RTT Log",
"servertype": "external",
"gdbTarget": "localhost:2331",
"cwd": "${workspaceRoot}",
"device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx-base.svd",
"preLaunchTask": "rust: cargo build rtt",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/rtt-log",
"interface": "swd",
"runToMain": true,
},
]
}

12
.vscode/tasks.json vendored
View File

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

@ -1 +1 @@
Subproject commit 6eda28c354bd746476674842cc37c255c851d877
Subproject commit f9b5f99604daa79102e8efefa645989829bfcd51