Kinetis K65 + generated SDK

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

Kinetis K65 + generated SDK

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

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

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