rust-embedded / rust-embedded/cortex-m
Should ITM write functions check if a debugger is connected like CMSIS ITM_SendChar ?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1k
- Forks
- 202
- Avg merge
- 6d 2h
- Merged PRs (30d)
- 2
Description
I am currently unable to run my application standalone when a debugger is not present. I am suspecting that it is because the TPIU and the ITM port are not enabled by my code. Removing traces fixes my issue.
Would it be a good idea to check if tracing is enabled like ITM_SendChar ?
If so, I would like to submit a pull request to short circuit write_all if tracing is not enabled.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the ITM write_all entry point and compare its behavior with CMSIS's ITM_SendChar implementation in core_cm3.h. Confirm how disabled tracing affects a standalone application, then ensure writes short-circuit when tracing is not enabled and verify that applications without a debugger still run correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100