https://github.com/bjoernq/esp-trace-decoder
https://github.com/bjoernq/esp-trace-decoder
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bjoernq/esp-trace-decoder
- Owner: bjoernQ
- License: apache-2.0
- Created: 2023-10-13T13:19:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T10:39:01.000Z (almost 3 years ago)
- Last Synced: 2025-04-22T14:14:58.420Z (over 1 year ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# esp-trace-decoder
This is a decoder for traces generated by the ESP32-C6's / ESP32-H2's RISCV TRACE Encoder.
## Usage
Execute one of the examples (`cargo run --release`). Then copy the dumped trace data and save it as a file.
Make sure you have access to the ROM ELF files (https://github.com/espressif/esp-rom-elfs) because in order to decode the trace data we need access to all the traced instructions.
Run the decoder like this:
`cargo run -- YOUR_SAVED_TRACE --elf example-esp32h2\target\riscv32imac-unknown-none-elf\release\example-esp32h2 --elf PATH_TO_ROM_ELF\esp32h2_rev0_rom.elf`
Then you should see the decoded execution path.
## License
Licensed under either of:
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in
the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without
any additional terms or conditions.