Non-blocking UART I/O on a K64

cancel
Showing results for 
Search instead for 
Did you mean: 

Non-blocking UART I/O on a K64

488 Views
larrykoos
Contributor III

Has anyone successfully implemented non-blocking UART I/O using the MQX KDSK on a K64? If I understand the documentation correctly, the normal fread/read calls are all implemented as blocking functions and there are no IOCTL mechanisms to make it non-blocking.

 

I've tried using the UART Peripheral API (UART_DRV_* functions) instead of the stdio functions. These work until you call UART_DRV_AbortReceivingData and UART_DRV_ReceiveData to start using a new buffer. After that, it never receives another character.

 

I'm using KDS 1.1.1 and MQX KDSK 1.0.0 on a TWRK64F120M.

Labels (1)
Tags (3)
0 Kudos
2 Replies

118 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Larry,

We have detected a bug in KSDK, this is already reported. This is going to be fixed in our next KSDK1.1 release which is targeted for December.

Best regards,

Carlos

0 Kudos

118 Views
henry28
Contributor I

Hi Carlos,

What is the progress of fixing UART_DRV_AbortReceivingData bugs.

I still have the same bug when start a new buffer.

Do you have any idea how to fix this bug?

Regards,
Henry

0 Kudos