Olimex Support Forum

ARM => ST => Topic started by: lim on October 21, 2020, 09:06:50 am

Title: Olimex STM32-E407 on-board LED
Post by: lim on October 21, 2020, 09:06:50 am
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.

Title: Re: Olimex STM32-E407 on-board LED
Post by: lim on October 22, 2020, 03:44:19 pm
It was due to the timebase used SysTick and I had HAL_Delay in one of the ISR.