July 25, 2024, 01:02:40 PM

Olimex STM32-E407 on-board LED

Started by lim, October 21, 2020, 09:06:50 AM

Previous topic - Next topic


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.