S32-UART-INTERRUPT

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

S32-UART-INTERRUPT

2,145 Views
wangfei11
Contributor II

Hi

I want to open uart interrupt.I set the following register, or I can't access it(void UART1_IRQHandler(void))pastedImage_3.png

pastedImage_4.png

pastedImage_5.png

please can you help set the register?

Tags (1)
2 Replies

1,447 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

The IP register is not set correctly, the priority number must be written to the 7-4 bits of the register.

S32_NVIC->IP[33] = 0x30;    // Priority level 3

See Chapter 7.2.1 of the RM.

But this should not cause any problems.

Did you enable interrupts in LPUART CTRL register?

Is the name of the interrupt handler function correct?

As per S32K144.h, it is

void LPUART1_RxTx_IRQHandler(void)

Regards,

Daniel

1,447 Views
wangfei11
Contributor II

Hi

Thanks.I named the wrong interrupt function name,but I only have to Sett Transmit Interrupt Enable to enter the interrupt.

pastedImage_1.png

pastedImage_2.png

Below is my register setting operation, I hope you can give directions.

 pastedImage_3.png

Regards

Fei wang

0 Kudos
Reply