fast blinky

This commit is contained in:
2024-06-11 20:24:24 +02:00
parent f41ebc64c3
commit b41f902a14
14 changed files with 135 additions and 53 deletions

View File

@ -0,0 +1 @@
[]

View File

@ -0,0 +1 @@
[]

53
vscode/launch.json Normal file
View File

@ -0,0 +1,53 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug LED Blinky PAC",
// 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
// a valid JLinkScript file
"servertype": "external",
"gdbTarget": "localhost:2331",
"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}",
"device": "Cortex-M4",
"svdFile": "${workspaceFolder}/va416xx/svd/va416xx-base.svd",
"preLaunchTask": "rust: cargo build led blinky",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky",
"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,
},
]
}

3
vscode/settings.json Normal file
View File

@ -0,0 +1,3 @@
{
"cortex-debug.gdbPath.linux": "gdb-multiarch"
}

43
vscode/tasks.json Normal file
View File

@ -0,0 +1,43 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"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 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",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build", "-p", "vorago-peb1", "--example", "blinky"
],
"group": {
"kind": "build",
"isDefault": true
}
},
]
}