S32K342 - LSPI timeout issue

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

S32K342 - LSPI timeout issue

1,653件の閲覧回数
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

タグ(1)
0 件の賞賛
返信
3 返答(返信)

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

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

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