Closed
Description
If I simultaneously depend on these two:
[dependencies]
cortex-m-rt = "0.7.0"
stm32g4 = { version = "0.13.0", features = ["stm32g431", "rt"] }
I get linker errors on the simplest application code:
#![no_main]
#![no_std]
use panic_halt as _;
use cortex_m_rt::entry;
use stm32g4::stm32g431 as stm32;
#[entry]
fn main() -> ! {
let _dp = stm32::Peripherals::take().unwrap();
loop {}
}
$ cargo build
(...)
= note: rust-lld: error: undefined symbol: WWDG
>>> referenced by stm32g4.a536753e-cgu.0
>>> stm32g4-0cd8392efc6052b0.stm32g4.a536753e-cgu.0.rcgu.o:(__INTERRUPTS) in archive <redacted>/target/thumbv7em-none-eabihf/debug/deps/libstm32g4-0cd8392efc6052b0.rlib
rust-lld: error: undefined symbol: PVD_PVM
>>> referenced by stm32g4.a536753e-cgu.0
>>> stm32g4-0cd8392efc6052b0.stm32g4.a536753e-cgu.0.rcgu.o:(__INTERRUPTS) in archive <redacted>/target/thumbv7em-none-eabihf/debug/deps/libstm32g4-0cd8392efc6052b0.rlib
rust-lld: error: undefined symbol: RTC_TAMP_CSS_LSE
>>> referenced by stm32g4.a536753e-cgu.0
>>> stm32g4-0cd8392efc6052b0.stm32g4.a536753e-cgu.0.rcgu.o:(__INTERRUPTS) in archive <redacted>/target/thumbv7em-none-eabihf/debug/deps/libstm32g4-0cd8392efc6052b0.rlib
(...)
Metadata
Metadata
Assignees
Labels
No labels