cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f3discovery: USART2 interrupt handler looping

cornmander
Associate
Posted on December 01, 2012 at 04:43

Hi, I tried to set up some code for handling data received on the USART2 peripheral but for some reason it seems to read one byte and then keep re-entering the interrupt handler without setting the RXNE interrupt flag (or any other interrupt flag, I checked that too...). Here is what the relevant code looks like: 

http://pastebin.com/8Dcu2Ece

. I removed checks for all the other possible non-error interrupt flags since it they weren't being triggered. 
1 REPLY 1
Posted on December 01, 2012 at 13:01

Looks reasonable enough, I'd probably initialize the NVIC first.

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