AnsweredAssumed Answered

QN9080C: RXERR is set during debugging

Question asked by Arpad Toth on Nov 29, 2018
Latest reply on Dec 5, 2018 by Estephania Martinez

Hello,

 

On QN9080C, after I setup Flexcomm0 - UART0, async mode, 115.2k 8N1, interrupt mode, I program it on the devkit it runs normally, but after I pause the IAR8 debugger, and resume it the UART0->FIFOSTAT: RXERR bit gets set,

even though I don't transmit anything to it, and RxD line is pulled high to 3.3v.

I don't get RXERR if I don't stop debugging.

 

/* FLEXCOMM0 */
/* select alternative DIO functionality for UART pins */
IOCON_PinMuxSet(IOCON, IO_PORTA_IDX, 4u, IOCON_FUNC4 | IOCON_MODE_HIGHZ | IOCON_DRIVE_LOW); /* FC0_TXD */
IOCON_PinMuxSet(IOCON, IO_PORTA_IDX, 5u, IOCON_FUNC4 | IOCON_MODE_HIGHZ | IOCON_DRIVE_LOW); /* FC0_RXD */

 

/* configure UART */
USART_GetDefaultConfig(&usartConfig);
usartConfig.baudRate_Bps = 115200u;
usartConfig.enableRx = TRUE;
usartConfig.enableTx = TRUE;
USART_Init(UART_GSM, &usartConfig, CLOCK_GetFreq(kCLOCK_BusClk));


USART_EnableInterrupts(UART_GSM, kUSART_TxErrorInterruptEnable | kUSART_RxLevelInterruptEnable | kUSART_RxErrorInterruptEnable);
EnableIRQ(UART_IRQ);

Outcomes