cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable UART2 in Interrupt mode

mdkavya
Associate
Posted on December 08, 2014 at 13:17

Hi,

I am using stm32F411RE,trying to enable UART2 in interrupt mode.Can somebody guide me how to do it.UART2 is working fine in blocking mode.

#interrupt #uart2 #stm32
1 REPLY 1
Posted on December 08, 2014 at 13:51

I have post lost of examples, and there should be examples in the library examples. I'm not using the 411 so no idea if there is anything special with that, and you're not providing any code to give some insight into why you've been unsuccessful.

I'll note you need to disable the TXE interrupt if you have not data to provide, otherwise it will never exit the interrupt handler.

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32F4%20USART%20receive%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=3153

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..