Skip to main content
xpp07
Associate III
August 14, 2018
Question

Issue with STM32L432KC Nucleo and ADC. How to set the right clock tree with Cube MX?

  • August 14, 2018
  • 0 replies
  • 762 views

When I enable the ADC1, the controller inhibits itself and never enters the while loop. If I don't use the ADC, the controller works fine. Attached you can find the clock tree and the code generated by CubeMx.

 The compiler doesn't throw errors. Everything compiles well, but the code does nothing. As I said, if remove the ADC, then the code works. Strictly speaking, the problem goes away if the ADC clock configuration is removed. So, certainly, I might no be setting the right clock for the ADC.

0690X000006BtVzQAK.png

    This topic has been closed for replies.