-
Notifications
You must be signed in to change notification settings - Fork 156
support <access>read-writeOnce</access> #91
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
Comments
I will contribute to this issue instead of making a new since I suspect these issues are the same. When using svd2rust on NXP S32K144 svd file i get:
and with RUST_BACKTRACE=1
I will attach the file in case you would like to test for yourself. |
@kjetilkjeka Your error is not related, it comes from a miswritten svd file, the variant is called To fix your error and generate some code simply patch your svd to change all the |
@Emilgardis You are of course right. It worked when replacing writeonce with writeOnce, thanks. And for what it's worth I do agree with your view on forcing the svd to be up to spec rather than accepting badly written svd files. |
Implemented by #322. |
The code generated from the file STM32L063x.svd doesn't compile. Because the read-writeOnce access mode is not supported by svd2rust the DAC_SR register has no access methods:
And you run into an unused field warning which becomes an error because of
#![deny(warnings)]
.The text was updated successfully, but these errors were encountered: