lpuart1 RX interrupt issue on MIMxrt1175

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

lpuart1 RX interrupt issue on MIMxrt1175

跳至解决方案
875 次查看
sai_shinde
Contributor II

Hi,

I have created new project in MCUexpresso for my custom board and set the peripheral.

1> I have set LPUART1 in peripheral for interrupt mode.

2> Copied the Interrupt handler name and pasted it on main.c

I have set break point is ISR but it doesn't stop in ISR.

I verified the UART TX  and RX using polling based and it works fine in polling based.

LPUART peripheral setting in config tool is as below

sai_shinde_0-1666247283918.png

sai_shinde_1-1666247335817.png

Please let me know if I am missing anything.

 

 

0 项奖励
回复
1 解答
857 次查看
sai_shinde
Contributor II
0 项奖励
回复
4 回复数
858 次查看
sai_shinde
Contributor II

The problem was specific to weak linkage function.

Please refer https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Interrupt-Handlers-in-C-applications/m-p/470665

0 项奖励
回复
840 次查看
PabloAvalos
NXP TechSupport
NXP TechSupport

Hi @sai_shinde 

 

Is the problem still persists ?

 

Regards.
Pablo.

0 项奖励
回复
835 次查看
sai_shinde
Contributor II

No, it's resolved.

0 项奖励
回复
864 次查看
jay_heng
NXP Employee
NXP Employee

You can compare tool generated code with below example code to find difference, it is simplest LPUART1 RX interrupt demo.

\SDK_2.12.0_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\lpuart\interrupt\cm7\lpuart_interrupt.c

0 项奖励
回复