Closed nebelgrau77 closed 4 years ago
You probably didn't specify your MCU (see https://github.com/stm32-rs/stm32l0xx-hal/blob/b8147f13c455942b4374c353b33b486e23b30172/Cargo.toml#L97-L258).
For the STM32L031K6 you need features = ["mcu-STM32L031K6Tx"]
or features = ["mcu-STM32L031K6Tx"]
, depending on which MCU you have. (If you aren't sure which exact MCU you have, you can also use features = ["io-STM32L031", "stm32l0x1"]
.)
We should probably add a note about that in the README...
Thanks! I was just missing the "io-..." part in the features block. Now it's working as expected :)
I'm trying to use the serial example on STM32L031K6 Nucleo board. I'm getting the following compilation errors:
in fact I can't find these in the documentation, but they clearly do exist in the actual src code in the repo. How can I get it to work?