-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do validation when parsing serde yaml/json #247
Comments
After delving into the generator sources it turns out that register 'size' above is measured in bits instead of bytes as I was using it. This uncovers a broken corner case in the logic for computing Fixing support for single-bit registers is not very urgent I guess ;-) On a more serious note: should the generator have complained that bit fields beyond the register width were specified in my project? |
no need to dive in code. there is specification https://www.keil.com/pack/doc/CMSIS/SVD/html/elem_special.html#registerPropertiesGroup_gr |
I knew that site but seeing uncompilable code generated I also 'knew' it was a bug and had to dive in. It's my knee-jerk reaction :-/ |
I was handcrafting some svd (yaml) and early on ran into a generator issue.
To reproduce run the following in an empty directory:
result:
The first doc line reports version:
The text was updated successfully, but these errors were encountered: