S32-UART-INTERRUPT

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

S32-UART-INTERRUPT

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

标记 (1)
2 回复数

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