Skip to content

stm32: drivers: adc : exclude differential input support on stm32u3 serie #93578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

djiatsaf-st
Copy link
Contributor

This PR add change to avoid following build error :

zephyrproject/zephyr/drivers/adc/adc_stm32.c:503:68: error: 'LL_ADC_DIFFERENTIAL_ENDED' undeclared (first use in this function)
  503 |         uint32_t calib_type = single_ended ? LL_ADC_SINGLE_ENDED : LL_ADC_DIFFERENTIAL_ENDED;
      |                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~


To reproduce :

west build -p -b nucleo_u385rg_q tests/drivers/adc/adc_api/

According to RM0487 S22.3, table 175,for STM32U3 series,
ADC channel ending can't be set as differential input.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
@zephyrbot zephyrbot added area: ADC Analog-to-Digital Converter (ADC) size: XS A PR changing only a single line of code platform: STM32 ST Micro STM32 labels Jul 23, 2025
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ADC Analog-to-Digital Converter (ADC) platform: STM32 ST Micro STM32 size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants