From 9a89c0ee13d26c0cc0aff38db552632c6c418d1d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 9 Nov 2021 13:21:15 +0100 Subject: [PATCH] added lauch file for UART example --- .vscode/launch.json | 15 +++++++++++++++ .vscode/tasks.json | 12 ++++++++++++ va108xx-hal-rs | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 92d4ba7..4e97c41 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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, + }, + ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2a746e2..cb2762e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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", diff --git a/va108xx-hal-rs b/va108xx-hal-rs index 11973c3..d05498f 160000 --- a/va108xx-hal-rs +++ b/va108xx-hal-rs @@ -1 +1 @@ -Subproject commit 11973c3d022d14c7238fc991c277e44f3d837f40 +Subproject commit d05498f7de3a83041245abaaae4c38bd7576aff4