RT1021 'Receiver FIFO Underflow Flag' stuck on?

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

RT1021 'Receiver FIFO Underflow Flag' stuck on?

Jump to solution
1,830 Views
rshipman
Contributor V

Hi.

I have noticed that, for the RT1021, the LPUART FIFO[RXUF] flag (Receiver FIFO Underflow Flag) seems to always be set to 1.
I have also noticed that the driver fsl_lpuart.c does not observe it (blocking or non-blocking), although it does allow you to enable the interrupt and read the flag if you wish.

Is this a silicon bug, am I using this flag incorrectly or is there another setting that is required to reset this flag? Note that this flag is set to 1 even after resetting the LPUART peripheral (as well as after writing a 1 to it because it is w1c). E.g after calling LPUART_SoftwareReset() and before reading DATA.

Thanks for your help.

Ronnie

Labels (1)
0 Kudos
Reply
1 Solution
1,816 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I basically confirm the phenomenon you mentioned, in my opinion, it's a bug.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
3 Replies
1,817 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I basically confirm the phenomenon you mentioned, in my opinion, it's a bug.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,808 Views
rshipman
Contributor V

Many thanks Jeremy.

Perhaps one for the errata document?

0 Kudos
Reply
1,800 Views
imxrtuser
Senior Contributor I

Hello rshipman,

I can't tell you anything about the NXP uart driver or resetting the underflow flag but we are using the RT1021 with the following code to check for underflow in an interrupt service routine:

dwStatus = LPUART_GetStatusFlags(USART_BASE);

if((dwStatus & kLPUART_RxFifoUnderflowFlag) != 0)

{

--> Underflow, stop

}

and this never runs into an underflow with one exception:

If I open the debugger view for the lpuart register in EWARM the debugger reads data from fifo. If there is no data this will result in a fifo underflow.

Did you open the debugger view for the lpuart registers while running your code?

Kind regards,

Steve

0 Kudos
Reply