| Crates.io | itm-parser |
| lib.rs | itm-parser |
| version | 0.1.3 |
| created_at | 2025-01-06 14:37:17.223653+00 |
| updated_at | 2025-01-07 14:18:30.932973+00 |
| description | A command-line tool to parse and format ITM (Instrumentation Trace Macrocell) output for embedded systems development using probe-rs. |
| homepage | https://github.com/niekiran/itm-parser |
| repository | https://github.com/niekiran/itm-parser.git |
| max_upload_size | |
| id | 1505663 |
| size | 15,116 |
itm-parser is a command-line tool for parsing and formatting ITM (Instrumentation Trace Macrocell) output. It simplifies debugging by converting raw ITM messages into human-readable ASCII text, working seamlessly with probe-rs in the background.
Note: itm-parser internally uses probe-rs. Ensure probe-rs is installed before using this tool.
Ok(Instrumentation { port: 0, payload: [...] })).\n) in payloads for proper log message formatting.probe-rsitm-parser relies on probe-rs to interact with your embedded device. Install probe-rs using Cargo:
cargo install probe-rs-tools
itm-parserOnce probe-rs is installed, install itm-parser:
cargo install itm-parser
Run the itm-parser command with required arguments. Internally, it uses probe-rs itm swo to interact with your embedded device.
itm-parser --chip <CHIP> [--probe <VID:PID>] --connect-under-reset <DURATION> <CLOCK> <BAUD>
itm-parser --chip STM32F303CC --connect-under-reset 10000 8000000 1000000
If the raw ITM packets contain:
Ok(Instrumentation { port: 0, payload: [72, 101, 108, 108, 111, 10] })
Ok(Instrumentation { port: 0, payload: [87, 111, 114, 108, 100, 10] })
itm-parser will decode and display:
Hello
World