Skip to main content
Associate
September 28, 2025
Question

Unable to read ADC values

  • September 28, 2025
  • 1 reply
  • 499 views

Hi Im Lalin, Im using STM32L433RC-P MCU for learning.
Im facing the issue in reading the data from ADC.Im not getting any error too.
Below are the source code attached.
Kindly help me to find the solution for this.
Note that im using uart.c for debugging purpose.
Thanks in advance.

1 reply

MHoll.2
Senior III
September 28, 2025

You are missing some initialisation (clock etc.)

If You don't want to use the HAL layer from ST, You have to do all the initialisation stuff the HAL handles by yourself.

To start I would recommend using STM32CubeMX and STM32CubeIDE.

Associate
September 30, 2025

Thank you for your response.
I have initialised clock to 16MHz in uart.c.
May i know what else i failed to initialize?

Senior III
September 30, 2025

You can use CubeMx it will generate the code and can use it directly.