embassy-rs / embassy-rs/chiptool

Chiptool failing on names starting with a number

Open Beginner friendly
#150 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
65
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Some SVDs (e.g. for the TI CC2650 MCU) contain names starting with numbers (in this case '32CYC'). Chiptool tries to create `Ident`s with such names and fails as they are not valid rust.

Proposed solution: if name starts with a number, prepend the `Ident` name with "_".

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating where chiptool creates Rust Idents from SVD names, then reproduce the failure with the TI CC2650 SVD and the `32CYC` name. Done means names beginning with a number produce valid Rust identifiers by receiving the proposed leading underscore, without changing other names.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.