2018-08-14 01:24 PM
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.