Dialog Semiconductor customer support - UART CFG_PRINTF https://support.dialog-semiconductor.com/resource-keywords/uart-cfgprintf en UART2 handler loop https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/uart2-handler-loop

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?

Keywords: 
Device: 
Wed, 24 May 2017 15:27:59 +0000 Eric Scammell 40172 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/uart2-handler-loop#comments