2021-06-09 03:44 AM
After receiving some data through interrupt, Is there any way to disable interrupt mechanism and go back to blocking mode for receiving remaining data.
I tried NVIC_DisableIRQ(0 to disable interrupt.
After that when i tried to receive through blocking mode, it fails. I just need to know whether its possible in stm32?
2021-06-10 09:25 AM
NVIC_DisableIRQ can be called anywhere.
But AFAIK there's no need to call NVIC_DisableIRQ(USART3_IRQn).
The UART interrupt handler in the HAL library (HAL_UART_IRQHandler) masks the UART RX interrupt at end of transfer.
2021-06-10 09:40 PM
Thanks a lot Pavel for your valuable support. It was really helpful...