Environment: GNU_ARM, STM32F407
Every time I use hal_delay()
the program hangs just before the call to hal_delay()
.
I added:
printf("\n%d==>%d,",tickstart,HAL_GetTick());
in the loop of HAL_DELAY. The result is always: 0==>0
HAL_GetTick()
doesn't work as expected even after I added:
HAL_NVIC_SetPriority(SysTick_IRQn,0,0);
How can I solve this?
HAL_GetTick()
overwritten and forgot to incrementuwTick
in my function. \$\endgroup\$