-
Notifications
You must be signed in to change notification settings - Fork 104
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
cannot find type CRRCR
in module rcc
#32
Comments
This is a bug in master introduced #30, I plan on fixing this and pushing a new release this weekend. |
You need stm32-rs/stm32-rs#141 to be merged in other to make it work. |
Any update on this? |
It has been merged, but AFAICT no new version hasn't been pushed. @MabezDev what's the status? |
I can push the revamped svd conversions for stm32l4** family, when I have time. Made it work by cloning hal crate(this one) and mcu crate. |
Although the patch has been merged, we are still waiting for @adamgreig to cut a new release of stm32-rs. |
I am also seeing this issue. What is the status on getting it resolved? Any workarounds until then? |
@smilykoch you could specify this git repository as dependency instead or use the patch section in cargo https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section |
ping @adamgreig ! |
@hellow554 Thanks for the reply. I tried specifying this git repo as
But i am still getting the same issues..
|
@smilykoch you need to invoke svd2rust with make. Previously generated ones will reside in the project dir. |
How do i do that? I am still fairly new in the embedded rust world ;) |
@vertexclique Could you maybe teach me what you mean when you say "invoke svd2rust with make"? |
Anyone who will be kind enough to share with me, how to resolve this issue until a new release of stm32-rs is published? I have been able to get a hold of the STM32L4x5.svd file, and ran it through svd2rust, to obtain the three files it generates. But i cannot figure out how they fit together with this repo, and how to replace the dependency with my generated ones? |
Sorry guys, I really didn't think it would take this long to get a new release of stm32-rs. Created a branch that uses a custom stm32l4 from stm32-rs master (with the fixes in). Could you try the following in your Cargo.toml's
|
Hi. Great! It seems to work! Thank you very much! |
Glad to hear it. Hopefully we will get a proper release soon. |
See stm32-rs/stm32-rs#192 for upcoming release including this |
Looks like @MabezDev, any idea when you were next planning on cutting a release of this crate? |
|
Hmm, I'm still seeing the issue after upgrading to Error:
|
@mathk It looks like stm32-rs/stm32-rs#141 did not include the crrcr patch for the x3 chips, was this intentional (i.e it's not actually on the x3 chips) or is this something we need to patch? |
I guess we need to patch it. Looks like there is x43 and x33 chip and both reference RM0394 which document HSI48. I think at time of writing the patch I was only looking and the ST website documentation. |
Ah okay. I've opened a PR on stm32-rs that should add support for the l4x3 chips. |
Merged, can this be closed again? |
src/main.rs
Cargo.toml
The text was updated successfully, but these errors were encountered: