November 28, 2024, 04:32:18 PM

Olimex STM32-E407 on-board LED

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

Previous topic - Next topic

lim

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.


lim

It was due to the timebase used SysTick and I had HAL_Delay in one of the ISR.