Skip to content

Add ADC 14bit support in U5 #2747

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

Merged
merged 1 commit into from
Jun 10, 2025
Merged

Add ADC 14bit support in U5 #2747

merged 1 commit into from
Jun 10, 2025

Conversation

ouoam
Copy link
Contributor

@ouoam ouoam commented Jun 5, 2025

Summary

STM32U5 Series cannot set analog read resolution to 14-bit. Because MAX_ADC_RESOLUTION has a value of 12 instead of 14.

This PR fixes the following bugs

  • Bug U5 cannot read ADC with 14-bit resolution

Motivation
When set analog read resolution to 14-bit, analog only read with 12-bit

Validation

  • Build and test with custom U585VI board

@fpistm fpistm added the enhancement New feature or request label Jun 5, 2025
@fpistm fpistm added this to the 2.11.0 milestone Jun 5, 2025
@fpistm
Copy link
Member

fpistm commented Jun 5, 2025

Hi @ouoam
Thanks for pointing this.
Before U5, when ADC_RESOLUTION_14B is defined ADC_RESOLUTION_16B is also defined.
That's why it was not managed.

@github-project-automation github-project-automation bot moved this from In progress to Reviewer approved in STM32 core based on ST HAL Jun 10, 2025
@fpistm fpistm merged commit 5a40f2d into stm32duino:main Jun 10, 2025
24 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in STM32 core based on ST HAL Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants