S32K342 - LSPI timeout issue

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

S32K342 - LSPI timeout issue

1,652 Views
Indumathi
Contributor I

Hello Team,

Greetings!!!

We are using LSPI2 and LSPI3 as master for our project.

1. It is observed that when the communication is initiated from LSPI0 due to timeout, the SPI  module module API is returning faulty status. 

2. The registers CR, CFGR1, CCR, CCR1 are not having correct value which is causing issue as well. Attached the screenshot of the registers 

could you please check and let us know what is the issue.

SPI_Register_error5.jpg

 

Thanks and Regards,

Indumathi

Tags (1)
0 Kudos
Reply
3 Replies

1,542 Views
Nhi_Nguyen
NXP Employee
NXP Employee

Hi Indumathi,

I saw that LPSPI0 is configuring to use DMA request.

Nhi_Nguyen_2-1684809946257.png

 

So, you will need to configure for this, as below:

In Mcl:

Nhi_Nguyen_0-1684809788425.pngNhi_Nguyen_1-1684809822017.png

Nhi_Nguyen_3-1684809991031.pngNhi_Nguyen_4-1684810022322.png

In Platform:

Nhi_Nguyen_5-1684810129420.png

Nhi_Nguyen_6-1684810157564.pngNhi_Nguyen_7-1684810177138.png

I assume that the issue come from interrupt handler of LPSIP0 wasn't handled.

Best regards,

Nhi

 

0 Kudos
Reply

1,631 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Indumathi

Can you provide more information regarding your project? 

For example,provide your source code project, the IDE and SDK version you are using,so that i can

reproduce your problem.

PS:In addition, you can view the register status of LPSPI2 at this location

Senlent_0-1683353388298.png

 

0 Kudos
Reply

1,617 Views
Indumathi
Contributor I

Hello Team,

Thanks for tin debugger it is not as expected. it is showing all zeros.

he reply. We are using S32K342 controller and Greenhills compiler. As part of application requirement we have configured LSPI2 as master to connect with external device PMIC. We are using RTD 2.0.0 package.

1. as part of communication the timeout is happening and communication is not initiated.

2. when debugged further it is observed that the registers of LSPI2 module are not updated properly as expected by the program.

Please hep to understand and resolve this issue.

Attaching the EB project configurations for the reference.

Thanks and Regards,

Indumathi

0 Kudos
Reply