cancel
Showing results for 
Search instead for 
Did you mean: 

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

xpp07
Senior

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

0 REPLIES 0