trap inside an undefined IRQ handler

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

trap inside an undefined IRQ handler

466 Views
Ming
Contributor III

I am having an issue relating to LPUART interrupt handler. I use PE to initialize LPUART1 and enable the interrupt. From my app code, I invoke API call  LPUART_DRV_SendData() to tx a single byte of data. But instead of branching to LPUART1_IRQHandler(), the code jumps to UART2_FLEXIO_IRQHandler(). Since UART2 is undefined, the code is now trapped inside infinite loop. Any ideals what went wrong? My target MCU is MKL17Z128.

 

 

UART2_FLEXIO_IRQHandler:

000004f8:   ldr r0, [pc, #0]        ; (0x4fc)

142           bx r0

000004fa:   bx r0

141           ldr

Labels (1)
0 Kudos
2 Replies

315 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Ming,

Please show your code clearly , especially the initialization of LPUART1 and enable the interrupt .

And does you project create by KSDK ? which version ?

BR

Alice

0 Kudos

315 Views
Ming
Contributor III

I found out the issue myself. I had lpuart1 de-initialized by accident. So it was an un-handled exception when I attempted to start a Tx.

0 Kudos