Skip to main content
carlesls2
Associate III
March 20, 2025
Solved

ADC1_IN16 (no mode)

  • March 20, 2025
  • 1 reply
  • 1176 views

carlesls2_0-1742466439720.png

I begin a new project I want to use the PA12 as a ADC input. But the pin is orange and I am unable to activate the mode or channel of the ADC.

carlesls2_1-1742466529049.png

What is the explanation behind it? How do you explain it?

Thanks a lot to all. 

Best answer by KnarfB

There is a trick, see Solved: STM32G030K6T6 - can not configure ADC1_IN16 @ PA12 - STMicroelectronics Community

https://community.st.com/t5/stm32cubemx-mcus/stm32g030k6t6-can-not-configure-adc1-in16-pa12/td-p/64113

enable ADC IN0 temporarily.

change sequencer settings in ADC parameters tab, 

enable ADC1_IN16 on PA12

disable ADC IN0

hth

KnarfB

1 reply

KnarfB
KnarfBBest answer
Super User
March 20, 2025

There is a trick, see Solved: STM32G030K6T6 - can not configure ADC1_IN16 @ PA12 - STMicroelectronics Community

https://community.st.com/t5/stm32cubemx-mcus/stm32g030k6t6-can-not-configure-adc1-in16-pa12/td-p/64113

enable ADC IN0 temporarily.

change sequencer settings in ADC parameters tab, 

enable ADC1_IN16 on PA12

disable ADC IN0

hth

KnarfB

carlesls2
carlesls2Author
Associate III
March 20, 2025

It worked.