Skip to main content
Associate
Sep 28, 2025 9:09 AM UTC
Question

Unable to read ADC values

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.

This topic has been closed for replies.

3 replies

MHoll.2
Senior III
Sep 28, 2025 11:41 AM UTC

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
Sep 30, 2025 1:35 AM UTC

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
Sep 30, 2025 3:41 AM UTC

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