Skip to content

ADC/linker problem - won't compile (STM32L432KC) #561

Open
@nebelgrau77

Description

@nebelgrau77

I'm trying to use the ADC example with an STM32L432KC, using the latest version from GH ("git = "https://github.com/stm32-rs/stm32l4xx-hal"). It won't compile, throwing the following error:

note: "rust-lld" "-flavor" "gnu" "--eh-frame-hdr" "-L" (omitted)
= note: rust-lld: error: undefined symbol: ADC1_2
>>> referenced by stm32l4.arnfbrxu-cgu.3
>>> stm32l4-3c82b24cdd335e86.stm32l4.arnfbrxu-cgu.3.rcgu.o:(__INTERRUPTS) in archive

As suggested in the L4 section, I cross-checked between PAC and Reference Manual:

in PAC there are the following lines:

ADC1:  
    _modify:    
        _interrupts:      
            ADC1:        
                name: ADC1_2

and ADC1_2 also appears in the NVIC vector table in the RM as ADC1 and ADC2 global interrupt (page 322).

So it does seem to be all in order, yet it won't work. What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions