Kinetis K65 + generated SDK

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

Kinetis K65 + generated SDK

1,325 次查看
darnaiadam
Contributor III

Hi,

I've got a problem with the newest SDKv2.1 library. I'd like to make a project that uses all of the UART modules. After I initialize the peripherals, and call the UART_TransferReceiveNonBlocking(); function, the program will wait for at least one character to run. However, if I skip the function call, the appropriate interrupt for the actual UART won't be activated. Is it a bug in the IRQ handler, or a "feature"? I tried to enable the interrupts manually, instead of using the non-blocking transfer function, but the result is the same. I created my own callbacks for each modules.

0 项奖励
回复
2 回复数

1,209 次查看
IvanRuiz
NXP Employee
NXP Employee

Hello,

It is a feature because the RX interrupt is activated in the UART_TransferReceiveNonBlocking(); function. So if you skip it and enable it in other part, it will work fine.

Regards,

Ivan.

0 项奖励
回复

1,209 次查看
darnaiadam
Contributor III

Clear the appropriate interrupt flags solved my problem. The only thing I cannot understand that why the IRQ handler does not clear them automatically, after an interrupt occured?

0 项奖励
回复