QN9080C: RXERR is set during debugging

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QN9080C: RXERR is set during debugging

Jump to solution
896 Views
arpad_toth
Contributor II

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);

registers.png

Labels (1)
  • QN

Tags (1)
0 Kudos
1 Solution
770 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

I'm running the USART example and I do not get such error,  how are you managing the errors and interruptions? 

Which example are you using as a base? 

Regards, 

Estephania  

View solution in original post

0 Kudos
1 Reply
771 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

I'm running the USART example and I do not get such error,  how are you managing the errors and interruptions? 

Which example are you using as a base? 

Regards, 

Estephania  

0 Kudos