stm32f7xx-hal icon indicating copy to clipboard operation
stm32f7xx-hal copied to clipboard

Pac cannot be brought into scope when compiling with the stm32f769 feature

Open seanybaggins opened this issue 4 years ago • 2 comments

Steps to Reproduce

  1. Clone the following project
git clone [email protected]:seanybaggins/blinky-769.git
  1. Checkout the commit containing the bug
git checkout a8a02896871f19aaa9de09256ce517179ec934ac
  1. Follow the instructions within the readme.md for opening the environment within a docker container using VSCode.

  2. Use Cargo check to get the compiler error

cargo check \
    --target thumbv7em-none-eabihf \
    --features stm32f769

seanybaggins avatar Aug 24 '20 16:08 seanybaggins

Yeah I'm also experiencing this problem. I had to override Cargo and specify the repository directly:

[dependencies.stm32f7xx-hal]
features = ["stm32f746"]
git = "https://github.com/stm32-rs/stm32f7xx-hal"

ost-ing avatar Sep 14 '20 17:09 ost-ing

In the 0.2.0 version the PAC is exported as device: https://github.com/stm32-rs/stm32f7xx-hal/blob/4f42876fc520f1ed2b86cd2c67bd1696cf448372/src/lib.rs#L59 This was changed to pac to mach the other STM32 HAL crates, but the change isn't included in a release yet. So you will need to change your code to use device instead of pac or use the git version.

rfuest avatar Sep 17 '20 16:09 rfuest