Skip to content

ADC Support for STM32U575 #48682

Description

@vibhor-meshram

Is your feature request related to a problem? Please describe.
I need to use ADC for my project. I am using nucleo_u575zi_q board. I am using samples/drivers/adc example. I looked into PR #39202 where ADC support is provided for STM32U585 board. I made necessary changes to my dts files for ADC to work.
The ADC sample code is now compiling and running as well. I have configured pc0 as adc pin. But the output I am getting is floating values irrespective of what I connect at ADC input(VCC/GND).

Results
`ADC reading:

  • ADC_1, channel 1: 296 = 59 mV
    ADC reading:
  • ADC_1, channel 1: 292 = 58 mV
    ADC reading:
  • ADC_1, channel 1: 295 = 59 mV
    ADC reading:
  • ADC_1, channel 1: 293 = 59 mV
    ADC reading:
  • ADC_1, channel 1: 293 = 59 mV
    ADC reading:
  • ADC_1, channel 1: 302 = 60 mV
    ADC reading:
  • ADC_1, channel 1: 301 = 60 mV
    ADC reading:
  • ADC_1, channel 1: 244 = 49 mV
    ADC reading:
  • ADC_1, channel 1: 300 = 60 mV
    ADC reading:
  • ADC_1, channel 1: 296 = 59 mV
    ADC reading:
  • ADC_1, channel 1: 296 = 59 mV
    ADC reading:
  • ADC_1, channel 1: 298 = 60 mV`

Describe the solution you'd like
The output of ADC must change as per the input.

Describe alternatives you've considered
Added adc node to dts file by referring to STM32U585 board. Is there anything else needed to be done?

Additional context
Attached: DTS file, overlay file
nucleo_u575zi_q_DTS_File.txt
nucleo_u575zi_q_overlay_file.txt
.

Metadata

Metadata

Assignees

Labels

area: ADCAnalog-to-Digital Converter (ADC)bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions