I'm trying to enable serial output in my project using the CFG_PRINTF define, but it's causing my program to go into what appears to be an infinite loop in the UART2_Handler function.
Stepping through the code I can see the 'idd' value read from the UART2_IIR_FCR_REG register is 0x7, which the datasheet tells me is a reserved value. The switch statement doesn't have a handler for that value, and the function is called again as soon as it returns. This continues until the watchdog expires, and it happens during initialisation every time I run my program with CFG_PRINTF defined (specifically, it happens at line 295 of uart2.c in the uart2_init function).
Can you give me any insight into what I might have done to generate this error?