No Interrupt after Reset or power on S32K344

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

No Interrupt after Reset or power on S32K344

ソリューションへジャンプ
1,944件の閲覧回数
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,889件の閲覧回数
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,911件の閲覧回数
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,907件の閲覧回数
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,890件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello JoDo,

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

Can you use flash instead?

 

 

0 件の賞賛
返信
1,865件の閲覧回数
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 件の賞賛
返信