Closed andresv closed 4 years ago
I compared stm32g07x
and stm32g081
dirs from here https://github.com/stm32-rs/stm32-rs-nightlies and they were exactly the same.
I also used stm32-rs-nightlies
to build examples, so stm32g0xx-hal/Cargo.toml
was modified to:
#stm32g0 = "0.10.0"
stm32g0 = {git = "https://github.com/stm32-rs/stm32-rs-nightlies"}
Ahaa, default
is not working as expected. When I replaced default = ["rt", "stm32g07x"]
with default = ["rt", "stm32g081"]
. I was able to build blink with cargo build --example blinky --features stm32g081
.
[features]
#default = ["rt", "stm32g07x"]
default = ["rt", "stm32g081"]
rt = ["stm32g0/rt"]
stm32g07x = ["stm32g0/stm32g07x"]
stm32g030 = ["stm32g0/stm32g030"]
stm32g031 = ["stm32g0/stm32g031"]
stm32g041 = ["stm32g0/stm32g041"]
stm32g081 = ["stm32g0/stm32g081"]
This is now fixed in master and blinky can be built as: cargo build --example blinky --features stm32g081
.
cargo build --example blinky --features stm32g081