Skip to content

Linker errors with stm32g4-0.13.0 and cortex-m-rt-0.7.0 #602

Closed
@rmsc

Description

@rmsc

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy