AnsweredAssumed Answered

False HAL_Delay computation when uwTick overflows ?

Question asked by darketik on Apr 11, 2015
Latest reply on Apr 13, 2015 by darketik

uwTick is an uint32_t incremented each Systick interrupt 1ms.
uwTick is used to execute HAL_Delay function.
So i calculated, uwTick will overflow each 49 days almost. I know its a really rare event but if a system is never powered-off it shall occur.

If HAL_Delay is called when uwTick is close to 2^32-1, the HAL_Delay function may return earlier than delay in ms asked in parameter because of the while condition (HAL_GetTick() - tickstart) < Delay) comparison and the uwTick that can overflows to 0.

Am i true ?