trap inside an undefined IRQ handler

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

trap inside an undefined IRQ handler

1,311 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

1,160 次查看
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 项奖励
回复

1,160 次查看
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 项奖励
回复