STM32H562 SysTick 2ms instead of 1ms
I have setted:
SYSCLK: 250 MHz
HCLK: 250 MHz
As a SysTick source I tried: HCLK, HCLK/8, LSI
STM32Cube FW_H5 V1.4.0
I'm getting 2ms instead of 1ms in any configuration. Any idea how to fix it?
I have setted:
SYSCLK: 250 MHz
HCLK: 250 MHz
As a SysTick source I tried: HCLK, HCLK/8, LSI
STM32Cube FW_H5 V1.4.0
I'm getting 2ms instead of 1ms in any configuration. Any idea how to fix it?
I try to insert toggle command into interrupt.. 1ms was OK.
So problem is at implementation of "HAL_Delay(T)" function - T is (T+1).
When I try HAL_Delay(2), time is 3ms.
ST insert this code into HalDelay function:
/* Add a freq to guarantee minimum wait */
if (wait < HAL_MAX_DELAY)
{
wait += (uint32_t)(uwTickFreq);
}and this causes, the delay time is 1ms longer than I expect.
I understand why they insert this code there, but it's limiting.
Thanks for the guidance, I didn't expect this change in the HAL library.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.