Skip to main content
Gaston
Associate III
July 19, 2024
Solved

Code execution stuck when LSI configured as clock source

  • July 19, 2024
  • 1 reply
  • 1114 views

Hi,

If I configure the LSI as clock source my STM32C011F4U6TR code stuck at this point

Gaston_0-1721389123768.png

Gaston_2-1721388809122.png

However there is no problem if I configure HSISYS as clock source.

Gaston_1-1721388776386.png

Why? Could anyone help me with this issue?

Thanks in advance,
Gaston

This topic has been closed for replies.
Best answer by TDK

With a 32 kHz clock rate, you don't have enough CPU resources to handle sys ticks occurring at 1 kHz. Increase clock speed, decrease the rate of systicks, or disable sys tick entirely, or rewrite systick not to use any cpu resources.

1 reply

TDK
TDKBest answer
July 19, 2024

With a 32 kHz clock rate, you don't have enough CPU resources to handle sys ticks occurring at 1 kHz. Increase clock speed, decrease the rate of systicks, or disable sys tick entirely, or rewrite systick not to use any cpu resources.

"If you feel a post has answered your question, please click ""Accept as Solution""."