How to use UART2 and FlexIO UART at the same time?

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

How to use UART2 and FlexIO UART at the same time?

459 Views
YeelongWong
Contributor III

Hello, everyone

Kinetis KL17's UART2 and FlexIO UART share the same one interrupt and IRQ: UART2_FLEXIO_IRQHandler.

Is it possible for one project to use these two part at the same time?

For UART 2, UART2_FLEXIO_IRQHandler means UART_TransferHandleIRQ

For Flex IO, UART2_FLEXIO_IRQHandler means UART2_FLEXIO_DriverIRQHandler() and FLEXIO_CommonIRQHandler

I think they conflict at this point.

How to fix this issue, please?

Tks so much!!!

 

Labels (1)
0 Kudos
1 Reply

447 Views
bobpaddock
Senior Contributor III

Examine the status register of each module to see which one is active then go that route.

Clearly whom ever designed this chip had no concept of writing software for it.
Such as "Separation of Concerns"...


The combined PORTC and PORTD IRQ are a similar mess. 


 

 

 

0 Kudos