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

Confused by features on f03x #158

Open
thejpster opened this issue Aug 13, 2022 · 1 comment
Open

Confused by features on f03x #158

thejpster opened this issue Aug 13, 2022 · 1 comment

Comments

@thejpster
Copy link

If I compile my code with the stm32f031 feature it runs fine on an stm32f030k6t6. But if I enable the stm32f030x6 feature, the code doesn't compile, telling me the timer I'm using doesn't exist. But it does because the code compiled for f031 works on an f030?

This is the firmware and you can see the alternate line in Cargo.toml.

https://github.com/Neotron-Compute/Neotron-BMC/tree/4ae6a7fd535d41ff2f62493895873731059b5001/neotron-bmc-pico

I'm probably doing something dumb.

Note - be sure to only look at the commit as I might change stuff.

@adamgreig
Copy link
Member

It looks like you're specifying features for stm32f0xx-hal, which is a separate repo - the PAC only provides stm32f0x0, stm32f0x1, stm32f0x2, and stm32f0x8 features. I've moved this issue to that repository, though I don't know about how the features are set up there myself. I guess you want to check the timer config to see which timers are enabled with which features.

@adamgreig adamgreig transferred this issue from stm32-rs/stm32-rs Aug 14, 2022
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