RTT kind of working

This commit is contained in:
2021-11-06 21:07:51 +01:00
parent e3a41a3539
commit 8af466e07d
6 changed files with 3740 additions and 4 deletions

View File

@ -16,12 +16,12 @@ rustflags = [
# if you run into problems with LLD switch to the GNU linker by commenting out
# this line
# "-C", "linker=arm-none-eabi-ld",
# "-C", "linker=/home/rmueller/.local/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/10.2.1-1.1.2/.content/bin/arm-none-eabi-ld",
# if you need to link to pre-compiled C libraries provided by a C toolchain
# use GCC as the linker by commenting out both lines above and then
# uncommenting the three lines below
# "-C", "linker=arm-none-eabi-gcc",
# "-C", "linker=/home/rmueller/.local/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/10.2.1-1.1.2/.content/bin/arm-none-eabi-gcc",
# "-C", "link-arg=-Wl,-Tlink.x",
# "-C", "link-arg=-nostartfiles",
]

14
.vscode/launch.json vendored
View File

@ -46,5 +46,19 @@
"interface": "jtag",
"runToMain": true,
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug RTT",
"servertype": "jlink",
"gdbPath": "/usr/bin/gdb-multiarch",
"cwd": "${workspaceRoot}",
"device": "VA10820",
"svdFile": "./va108xx-rs/svd/va108xx-base.svd.patched",
"preLaunchTask": "rust: cargo build rtt",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/rtt_log",
"interface": "jtag",
"runToMain": true,
},
]
}

12
.vscode/tasks.json vendored
View File

@ -51,5 +51,17 @@
"isDefault": true
}
},
{
"label": "rust: cargo build rtt",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build", "-p", "vorago-reb1", "--example", "rtt_log",
],
"group": {
"kind": "build",
"isDefault": true
}
},
]
}

3710
docs/sections_rtt.txt Normal file

File diff suppressed because it is too large Load Diff