rust-embedded / rust-embedded/svd
M302: Size of Register must be 8, 16 or 32 Bits
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 84
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
From CMSIS SVDConv docs
| Message Number | Type | Message Text |
|---|---|---|
| M302 | ERROR | Size of Register 'NAME':'NUM' must be 8, 16 or 32 Bits |
This limitation is not obvious to me. For example, it is easier to create a 12-bit register for a 12-bit ADC than a 32-bit register with only one field.
svd2rust handles this by creating an unsafe method for working with such registers. But CMSIS prohibits such svd files. Should utilities handle this error?
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
Start with the linked CMSIS SVDConv documentation and compare its register-size restriction with the behavior described for svd2rust. The issue does not name files or tests; resolving it requires deciding whether non-8, 16, or 32-bit registers should be accepted and defining the expected utility behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100