Non-blocking UART I/O on a K64

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Non-blocking UART I/O on a K64

897 次查看
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.

标签 (1)
标记 (3)
0 项奖励
回复
2 回复数

527 次查看
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 项奖励
回复

527 次查看
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 项奖励
回复