Skip to main content
carlesls2
Associate III
Mar 20, 2025 10:29 AM UTC
Solved

ADC1_IN16 (no mode)

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. 

This topic has been closed for replies.
KnarfB
KnarfBBest answer
Super User
Mar 20, 2025 11:11 AM UTC

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

2 replies

KnarfB
KnarfBBest answer
Super User
Mar 20, 2025 11:11 AM UTC

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
Mar 20, 2025 11:12 AM UTC

It worked.