AnsweredAssumed Answered

UART reception problem when SysTick Interrupt is enabled

Question asked by bfxy on Dec 15, 2015
Latest reply on Dec 15, 2015 by Clive One

I'm using STM32F411RE-Nucleo board and generating a project with Cube MX for System Workbench. The problem is that, HAL_UART_Receive function doesn't receive input from the user, even though I don't change any UART, GPIO, RCC or NVIC configuration.

Surprisingly, when I comment two lines in SysTick Interrupt Handler function i.e. SysTick_HandlerHAL_UART_Receive starts working but this comes with another problem.

void SysTick_Handler(void){     HAL_IncTick();     HAL_SYSTICK_IRQHandler();}

HAL_Delay() function doesn't work when I disable those two lines. I guess it's because the processor can't handle the ticks. 

How to work HAL_UART_Receive and HAL_Delay work at the same time? I'm a bit new in embedded programming and I'm sorry if I couldn't get myself clear.

Thanks.

Outcomes