Skip to content
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

nukleo-h723zg usb building problem #466

Closed
alevstiv opened this issue Oct 30, 2023 · 2 comments
Closed

nukleo-h723zg usb building problem #466

alevstiv opened this issue Oct 30, 2023 · 2 comments

Comments

@alevstiv
Copy link

need usb full speed on h723zg

  1. cargo build --features=stm32h735,rt,usb_hs, gpio-h747 --example usb_serial - building with compilation error( and no build option for gpio-h72 )
  2. as a separate project ( stm32h7xx-hal = {version = "0.15.0", features = ["stm32h735","rt","usb_hs"]}) generate compilation errors:
    error[E0425]: cannot find value pin_dm in this scope
    --> src/main.rs:67:9
    |
    67 | pin_dm,
    | ^^^^^^ not found in this scope

error[E0425]: cannot find value pin_dp in this scope
--> src/main.rs:68:9
|
68 | pin_dp,
| ^^^^^^ not found in this scope

  1. if you comment out #[cfg(any(feature = "rm0455", feature = "rm0468"))] then:

error[E0277]: the trait bound stm32h7xx_hal::gpio::Pin<'A', 12>: gpio::marker::IntoAf<10> is not satisfied
--> src/main.rs:61:50
|
61 | (gpioa.pa11.into_alternate(), gpioa.pa12.into_alternate())
| ^^^^^^^^^^^^^^ the trait gpio::marker::IntoAf<10> is not implemented for stm32h7xx_hal::gpio::Pin<'A', 12>

@richardeoin
Copy link
Member

Hi, thanks for reporting. This should already be fixed in #464 . I'll push this as a patch release 0.15.1 shortly.

@alevstiv
Copy link
Author

Thanks! It works.
But with settings
stm32h7xx-hal = {version = "0.15.1", path = "../stm32h7xx-hal-0.15.1", features = ["stm32h735","rt","usb_hs"]}
and enable #[cfg(any(feature = "rm0455", feature = "rm0468"))] results in a compilation error:
"pin_dm, | ^^^^^^ not found in this scope"
how to configure it correctly?

@alevstiv alevstiv closed this as completed Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants