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

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

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