AnsweredAssumed Answered

uwTick not incrementing.. (HAL_Delay())

Question asked by Chan on Dec 4, 2015
Latest reply on Dec 4, 2015 by Clive One
I called HAL_Delay(500); but inside the function, the return value of HAL_GetTick() is zero. What can be wrong? 
Thanks in advance.
EDIT : oops, when I set a break point at line A below, I see tickstart is always 0 even when I press F10 keys many times because it can never progress. If I remove the break point and set a breakpoint there later, I see increased tickstart value. Because I called HAL_Delay(500); inside while loop, every time I see increment, it is incremented in unit of 500 ticks.  I was confused by the way debugger works.

__weak void HAL_Delay(__IO uint32_t Delay)
  uint32_t tickstart = 0;
  tickstart = HAL_GetTick();
  while((HAL_GetTick() - tickstart) < Delay)   <=== line A