-
Notifications
You must be signed in to change notification settings - Fork 181
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
Support for embedded-hal version 1.0 #473
Comments
This could be possible under a feature flag like esp-hal has https://github.com/esp-rs/esp-hal/blob/07ed22df17f28f1b1890aa47c3ae599182397712/esp-hal-common/Cargo.toml#L23 |
I tried playing with branch
and
and
I assume the branch is just not ready for general playing around, but would someone please let me know if these |
I am new to the topic. I read up about the embedded-hal versions and found that, maybe it helps: |
Thanks @8FordPrefect8, that would help if I were trying to get something working with a mix of versions. The crate What I am trying to do is test things that are using only |
My idea was zhat you use the regular crate and then this compat crate so that you can use the device hal and your other code relying on embedded-hal 1.0.0. My understanding was that it's specifically for that purpose. But Maybe I misunderstood. |
@8FordPrefect8 sorry for the delay. Your understanding is correct. I could use the |
@pdgilbert Try PR yet one time. |
@burrbull Not sure what you mean by "try PR" but I tried again with latest commit. When the Click to expandCompiling stm32f1xx-hal v0.10.0 (https://github.com/stm32-rs/stm32f1xx-hal?branch=ehal#8bde191f) error[E0432]: unresolved import `hal::block` --> src/setup_all_stm32f1xx.rs:14:7 | 14 | block, | ^^^^^ no `block` in the rooterror[E0412]: cannot find type error[E0425]: cannot find value error[E0152]: duplicate lang item in crate error[E0152]: duplicate lang item in crate error[E0152]: duplicate lang item in crate error[E0308]: mismatched types error[E0609]: no field error[E0609]: no field error[E0308]: mismatched types Some errors have detailed explanations: E0152, E0308, E0412, E0425, E0432, E0609. |
He did a pull request that is probably connected to your issue. |
(I may be very confused, as seems to happen fairly often.) I think the
show
I'm not familiar enough with cargo to understand if Click to expand hal crate compile error and warning details$ git branch * ehal master $ git status On branch ehal nothing to commit, working tree clean $ git remote -v origin https://github.com/stm32-rs/stm32f1xx-hal.git (fetch) origin https://github.com/stm32-rs/stm32f1xx-hal.git (push)$ cargo build --no-default-features --target thumbv7m-none-eabi --features stm32f103 warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function warning: use of deprecated associated function error: assigning to error: assigning to warning: |
It is very easy to use a git branch as dependency: stm32f1xx-hal = { git = "https://github.com/stm32-rs/stm32f1xx-hal/", branch = "ehal" } Than do All your text lower then first paragraph is not understandable. If you try to run it locallly... It is nonsense to run it locally. P.S. You could use |
(Maybe I am not quite that confused.) I am using the branch as a dependency and I do that with lots of other hals and device crates too. I cross compile locally all the time, so I know it is not nonsense to do that. (But if there is an efficient way to load compiled code into an stm32f103 using GHA I would be interested in knowing how.) When the What I am confused about is what it means to use But the real problem is that branch I'm sorry if I was not clear about the problem, and thanks for all your work on this. |
What exact examples? You've not show any of them. I can't help if I do not understand the issue. What is going in #473 (comment) I can't parse because I don't see the code. Only errors which say me nothing. Anyway try to compile a project with your example locally without CI first as most of people do. |
I discovered that my toolchain was broken and was causing the failure to compile I am now back to testing examples, and hopefully will soon be able to provide more useful feedback. At the moment I am struggling with a large number of examples failing with
and
If you recognize these problems then I would appreciate suggestions. Otherwise I will eventually make a more simplified and self contained test. For reference, my tests are at https://github.com/pdgilbert/rust-integration-testing/actions.
BTW,
I am not sure if |
is there any news about stm32f1xx_hal version 0.11.0 for supporting embedded-hal version 1.0 ? |
Embedded-hal has hit a RC and is looking for final feedback. It may be worth starting to port the stm32 crates to help locate any flaws.
See rust-embedded/embedded-hal#177 (comment)
The text was updated successfully, but these errors were encountered: