HAL_Delay in uart receive interrupt
Hi
When HAL_Delay goes into uart interrupt, the program stops.
Is there a way to work it out?
I tried to use NVIC, but I don't know how to set it up.
Please advise. Thank you.
Here is my uart interrupt service routine.
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
if(huart == &huart1)
{
uart_receivebuffer[uartidx++] = rx_buf;
if(rx_buf == 0x03)
{
HAL_Delay(100);
UartReceive();
}
HAL_UART_Receive_IT(&huart1, &rx_buf, 1);
}
}

