Resolved! HAL_Delay is stuck in the main function.
If I write HAL_Delay in the main function, then code execution gets stuck at this place.int main { HAL_Delay(1); }Code execution does not exit the loop at this point.while((HAL_GetTick() - tickstart) < wait)I think because the SysTick_Handler interru...