-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bump svd2rust v0.31.5 and svdtool v0.3.9 #91
Conversation
Without theDescription, the register can not be collected now. Therefore, use the original description explicitly.
This contains some breaking changes, but I think that doesn't matter: According to |
I agree with that opinion. |
I played a bit with it. Most of the errors are of this form:
The compiler hint is spot-on. So fixing is trivial, but very tedious. There are a lot of register accesses in the hal. Some are inside macros which makes the error messages less obvious, but the fix is always the same. |
Thanks for the specific examples. This breaking change was caused by rust-embedded/svd2rust#692 in svd2rust v0.31.0. Anyway, I am sending a PR rp-rs/rp-hal#757 to rp-hal. |
@AkiyukiOkayasu: Did you see AkiyukiOkayasu#1 ? And I pushed the changes I already made to rp-hal while experimenting with the updated PAC to https://github.com/jannic/rp-hal/tree/pac-update . It's not complete (doesn't build yet), but I wanted to publish it somewhere to avoid duplicated work. Feel free to copy whatever you want. |
Add --reexport-core-peripherals flag to svd2rust
@jannic Sorry, I didn't see that. Thank you for PR! Thanks also for the work on rp-hal. I appreciate your thoughtfulness. |
@jannic The pac-update branch seems to be 32 commits behind the rp-hal/rp-hal main branch, is that ok? |
I just forgot to git pull first. The branch wasn't prepared carefully because it was only meant as a proof of concept to make sure that the pac still works. And then I didn't have enough time to finish it. |
@jannic The HAL update is almost finished. A few issues remain, but I hope to have them resolved in the next few days. |
Sorry, I noticed that some of HAL's on-target-tests were broken. Still needs additional work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After fixing the on-target tests of rp2040-hal, I'm convinced that the updated PAC will work as expected.
@AkiyukiOkayasu, thanks for all the work updating the PAC and preparing the proof-of-concept port of rp2040-hal. Looking at the diff of rp2040-hal, it must have been a lot of tedious editing.
svdtool and svd2rust have been updated to the latest.
svd2rust's update only re-generated the file.
The svdtool update seems to have made it necessary to explicitly specify the description to collect the register.
See b373a55 for details.