Relative Content

Tag Archive for windows-installerstm32

The STM32L010F4P6 does not work when configured with the internal MSI clock at 32.768kHz

I have a simple program where I am testing the internal clock of the STM32L010F4P6. I need to configure it to 32.768kHz due to power consumption requirements, as I need it to consume as little as possible. I configure the clock using MSI with SYSCLK=65.536kHz and AHB prescaler=2 to have an HCLK=32.768kHz. I also configure pin PA10 as an output to turn an LED on or off. In the main loop, I toggle the LED with a 100ms delay. I compile and run the program, but the result is that the LED does not change, i.e., it does not blink. However, if I change the AHB prescaler to 1 to have an HCLK=65.536kHz, compile and run, the LED blinks. This happens when I configure all the internal clocks and lower HCLK to 32.768kHz; the LED does not work. However, when I increase HCLK to 65.536kHz, the LED works. What could be happening? I have conducted many tests and have been trying to understand this behavior for some time.