I am on the KEAZ128 micro and I am trying to get UART working with interrupts. What is I am finding is that my program is constantly getting stuck in the ISR, as if an interrupt is constantly being trigger, yet without enabling any interrupt flags on the UART line that I'm using. To enable interrupts I am using the following:
NVIC_ICPR |= 1 <<14; /* 14 is the IRQ number of UART2 interrupt*/
NVIC_ISER |= 1 <<14; /* 14 is the IRQ number of UART2 interrupt*/
which is just enabling clear pending interrupts and then enabling interrupts.
Has anyone seen this before?