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

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

Open
seanybaggins opened this issue Aug 24, 2020 · 2 comments

Comments

@seanybaggins
Copy link

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
@ost-ing
Copy link

ost-ing commented Sep 14, 2020

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"

@rfuest
Copy link
Contributor

rfuest commented Sep 17, 2020

In the 0.2.0 version the PAC is exported as device:

pub use stm32f7::stm32f7x9 as device;

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.

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

3 participants