Closed TheFern2 closed 1 year ago
Okay by some miracle, I was just downgrading all the dependencies, to see if I would get lucky. And when I downgraded rtt-target from 4.0.0 to 0.3.1 it gave me a clearer error, that I was missing adding cortex-m as a feature.
[dependencies]
embedded-hal = "0.2.7"
nb = "1.1.0"
cortex-m = "0.7.6"
cortex-m-rt = "0.7.3"
# Panic behaviour, see https://crates.io/keywords/panic-impl for alternatives
panic-halt = "0.2"
rtt-target = { version = "0.3.1", features = ["cortex-m"] } # <--- I was missing this
panic-rtt-target = { version = "0.1.2", features = ["cortex-m"] }
[dependencies.stm32f4xx-hal]
version = "0.15.0"
features = ["stm32f446", "rt"]
I am relatively new to rust and embedded world. I can compile and run my project on my nucleo4266 but when I add rtt target I get a rust-lld linking error. Any idea what I'm doing wrong?