Non-blocking UART I/O on a K64

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Non-blocking UART I/O on a K64

898件の閲覧回数
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 返答(返信)

528件の閲覧回数
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 件の賞賛
返信

528件の閲覧回数
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 件の賞賛
返信