Open
Description
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?