S32K312 lpuart unable to trigger serial port interrupt

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

S32K312 lpuart unable to trigger serial port interrupt

Jump to solution
1,640 Views
JayJay_H
Contributor III

hi

Recently I was working on a log system using Lpuart on S32K312

The expected effect is to trigger a receive interrupt by inputting characters on the serial port

So that the characters can be recognized for the next step of operation

The question is after i input a character, there ain't no interrupt triggered 

I have configured lpuart interrupt, clock, and interrupt handler in S32DS

May I ask if there are any related parameters that need to be configured?

 

Best regards

0 Kudos
1 Solution
1,603 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Joshua_H

I made a demo for your reference.

the hardware base on S32K312EVB-Q172

the software base on RTD 2.0.2

View solution in original post

11 Replies
1,604 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Joshua_H

I made a demo for your reference.

the hardware base on S32K312EVB-Q172

the software base on RTD 2.0.2

1,593 Views
JayJay_H
Contributor III
Thank you, your demo is very helpful to me
Due to project requirements, I am using software 3.0.0, so I can not open your configuration file. However after comparing our code, I have identified several issues that may be the root cause of the problem:
1.In your demo, the value of "INT_CTRL_IP_MSCM_SYSTEM_INTERRUPT_ROUTER" is STD_ON, mine was STD_OFF, where can i set this to STD_ON in S32DS?
2.In my project, there is no definition of INTCTRL_IP_CORE_MASK but in yours the value of it was (1u), is this also configured in S32DS?
0 Kudos
1,590 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Joshua_H

yes, these should be configured in IntCtrl_Ip

Senlent_0-1692000105301.png

 

0 Kudos
1,584 Views
JayJay_H
Contributor III

具体是哪个参数呢,

而且我看咱俩的DS环境,我的比你少一个“Generic interrupt settings”(见附件),这个是怎么调出来的

0 Kudos
1,564 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Joshua_H

IntCtrl_Ip 在RTD 2.0.x和RTD 3.0.x中不一致,我没看到这个选项。

不知道如何设置IntCtrl_Ip,在RTD 3.0.X下面有很多例程,打开一个研究一下即可。

其它设置步骤几乎都是一致的。

 

0 Kudos
1,556 Views
JayJay_H
Contributor III

我按照历程对了一下,历程都用的flexio uart,配置项跟lpuart不太一样

你能给你的中断组件里Generic interrupt settings中的参数截图我看一下吗

我这打不开,我看一下差了哪些参数

谢谢

0 Kudos
1,530 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Joshua_H

你安装一下RTD 2.0.X会方便点,不应该这么难搞阿。

我看了RTD 3.0.X,没什么特殊配置,不太好截图。

Senlent_1-1692067705192.png

 

Senlent_0-1692067668620.png

 

 

0 Kudos
1,512 Views
JayJay_H
Contributor III
我换成lpuart2试了一下也是一样的效果,串口输入字符也触发不了中断
0 Kudos
1,521 Views
JayJay_H
Contributor III
我下了一个跟您的demo匹配的rtd,把demo烧进去试了一下,ipuart发送字符没问题,但是在串口里敲字符callback函数还是没进去,依旧没有触发中断
0 Kudos
1,513 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Joshua_H

这些例程我测试过的,下面不就是进入中断的截图吗

Senlent_0-1692089908178.png

 

0 Kudos
1,467 Views
JayJay_H
Contributor III
我试了一下,有可能是我这硬件的问题
我将最初不好用的uart2和uart6的rx改成别的引脚就都能触发中断了
感谢你的demo!
0 Kudos