Kinetis K65 + generated SDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kinetis K65 + generated SDK

614 Views
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 Kudos
2 Replies

498 Views
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 Kudos

498 Views
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 Kudos