trap inside an undefined IRQ handler

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

trap inside an undefined IRQ handler

1,169件の閲覧回数
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,018件の閲覧回数
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,018件の閲覧回数
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 件の賞賛
返信