AnsweredAssumed Answered

Non-blocking UART I/O on a K64

Question asked by LARRY KOOS on Oct 28, 2014
Latest reply on Feb 24, 2015 by Henry Tran

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.

Outcomes