No Interrupt after Reset or power on S32K344

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

No Interrupt after Reset or power on S32K344

跳至解决方案
1,806 次查看
JoDo
Contributor III

Hello
I have created a new project from scratch where I use LPUART13 and LPSPI2 slave. And it works so far, but only if I load the code twice after a reset or power on. I checked the configuration several times but I couldn't find where I made a mistake.

Does anyone have any idea what is going wrong here?

Thanks!

0 项奖励
回复
1 解答
1,751 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello JoDo,

I'm not sure what is the root case here.

Can you use flash instead?

 

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,773 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Johannes,

Do you load it to Flash or SRAM?

What does it mean it does not work?

 

Regards,

Daniel

0 项奖励
回复
1,769 次查看
JoDo
Contributor III

Hello Daniel,

thanks for the answer.

Yes, I am loading the code in SRAM (debug).

It is a bit curious. When I load the code the first time after a reset or PowerOn and send data to the SPI slave, no interrupt handler is called. I stop the debugger and reload the same code into RAM. After that the handler is called without problems.

I also checked the NVIC Interrupt Registers:

JoDo_1-1633615665671.png

 

Regards,

JoDo

0 项奖励
回复
1,752 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello JoDo,

I'm not sure what is the root case here.

Can you use flash instead?

 

 

0 项奖励
回复
1,727 次查看
JoDo
Contributor III

Hi Daniel,

I had problems with the PLL causing an exception when I loaded the code into flash (RTD 1.0.0 code drop1 issue). When I was working with RAM, there were no such issues. However, I disabled the PLL and now work with Flash. The interrupt handler is also called after reset or power on.

This means for me that working (debugging) with RAM is not so reliable.

Regards,

JoDo

0 项奖励
回复