See the code below, I was wondering why the on-board LED does not blink when running in Debug mode, but works when single-step. I am so confused.
while (1) {
HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
HAL_Delay (1000);
}
Appreciate your advice.
It was due to the timebase used SysTick and I had HAL_Delay in one of the ISR.