cancel
Showing results for 
Search instead for 
Did you mean: 

Hi I am using STM32H7A3 Nucleo board. I am using uart receive in interrupt mode by enabling global interrupt.

JJoy.1
Associate III

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?

11 REPLIES 11

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.

Thanks a lot Pavel for your valuable support. It was really helpful...