cancel
Showing results for 
Search instead for 
Did you mean: 

ADC Values Stucking Issue on STM32L552RCT6 Microcontroller

SAI_VARUN
Associate

I am experiencing an issue with the STM32 microcontroller used in a Battery Management System (BMS) application.

Issue Details:

  • I am using ADC to measure Temperature using NTC and voltage.
  • When a specific GPIO pin is detected as HIGH, all ADC channel values get stuck at the same reading.
  • The issue is resolved only after resetting the microcontroller.
  • This behaviour occurs randomly and is not consistent across all boards, making it difficult to reproduce.
  • I am using FreeRTOS in the microcontroller.

Additional Information:

  • The system is running FreeRTOS.
  • I am using channels 5 to 16 on ADC1.
  • ADC configuration: Sampling time is set to 24.5 cycles, and the mode is Single-Ended.
  • A filtering circuit is connected to the GPIO to handle noise and transients.

Has anyone encountered a similar issue or could provide guidance on debugging this problem? Any advice on potential root causes or solutions would be greatly appreciated.

Thank you!

0 REPLIES 0