How do I insert an error interrupt handler when using the uart fileio driver

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

How do I insert an error interrupt handler when using the uart fileio driver

1,204 次查看
tomdale
Contributor I

I'm successfully installing a uart but need to trap exceptions (parity errors etc.). I'm having trouble installing a dedicated interrupt handler - is there a cleaner way to trap exceptions ?


0 项奖励
回复
2 回复数

1,060 次查看
terry_lv
NXP Employee
NXP Employee

Hi,

     MQX serial driver have error isr handler in serl_int_kuart.c and it will handle errors itself.

     You can check if an parity error occurs by calling ioctl with IO_IOCTL_SERIAL_GET_STATS.

     An inefficient way is to check error counters in your application by calling ioctl with IO_IOCTL_SERIAL_GET_STATS.

     For customized exception handler routine, I'm afraid you have to modify MQX serial driver.

     Thanks.

Best regards

Terry

0 项奖励
回复

1,060 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Tom,

Could you let us know the Kinetis product part number? And which IDE software you are using?

Your project is baremetal or with RTOS?

And if you are using Kinetis SDK software?


best regards
Ma Hui

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

0 项奖励
回复