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

Confused by features on f03x

Open thejpster opened this issue 2 years ago • 1 comments

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.

thejpster avatar Aug 13 '22 21:08 thejpster

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 avatar Aug 14 '22 00:08 adamgreig