Closed
Description
Hi,
how do i add a defmt message decoder to my rttConfig?
When using defmt in combination with rtt decoders the data stream only outputs not readable data, eg:
�r�Gr'W%2k
my current launch.json
{
// 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": [
{
"name": "Debug Server",
"request": "launch",
"type": "cortex-debug",
"cwd": "${workspaceRoot}",
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/embassy-stm32wl-examples",
"servertype": "jlink",
"interface": "swd",
"device": "STM32WLE5JC",
"runToMain": true,
"preLaunchTask": "Cargo build",
"breakAfterReset": true,
"showDevDebugOutput": "raw",
"serialNumber": "XXXXXXXXXXXXX",
"postLaunchCommands": [
"help"
],
"swoConfig": {
"enabled": true,
"cpuFrequency": 8000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{ "type": "console", "label": "ITM", "port": 0 }
],
},
"rttConfig": {
"enabled": true,
"address": "auto",
"decoders": [{"port": 0, "type": "console", "noprompt": true, "clear": false, "encoding": "signed"}]
},
}
]
}
tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Cargo build",
"type": "shell",
"command": "cargo",
"args": [
"flash",
"--chip",
"STM32WLE5JCIx",
"--target",
"thumbv7em-none-eabihf",
"--probe",
"1366:0101:XXXXXXXXXX"
],
"problemMatcher": [
"$rustc"
],
"group": "build",
},
]
}
Because im new to RTT and to be honest Rust in general, i tryed writing over RTT in general without defmt. It worked, but while using defmt data is kind of crypted, thats why i guess there must be a decoder for that. Is there one for this plugin? Or is there a workaround?
Versions
defmt = "0.3"
defmt-rtt = "0.3"
I would appreciate any hints. I hope it cant be that hard to get this working somehow. I cant be the only one failing on this.
Metadata
Metadata
Assignees
Labels
No labels