rust-embedded / rust-embedded/svd2rust
Unexpected token error processing SVD file
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 857
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to process the RA6M2.svd file.
This requires changes to the svd-parser that I have already reported and to register.rs file, which I have attached, to filter out enumerated values without a value element.
When I run svd2rust with these modification I get a [ERROR svd2rust] unexpected token
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 by inspecting RA6M2.svd in the attached RA6M2.zip and the reported svd-parser and register.rs changes. Reproduce the svd2rust run that reports "unexpected token," then determine whether parsing or filtering enumerated values without a value element is responsible; done means the SVD processes without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100