No Interrupt after Reset or power on S32K344

cancel
Showing results for 
Search instead for 
Did you mean: 

No Interrupt after Reset or power on S32K344

Jump to solution
294 Views
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 Kudos
1 Solution
240 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello JoDo,

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

Can you use flash instead?

 

 

View solution in original post

0 Kudos
4 Replies
262 Views
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 Kudos
258 Views
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 Kudos
241 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello JoDo,

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

Can you use flash instead?

 

 

0 Kudos
216 Views
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 Kudos