SPI communication issue with example model

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

SPI communication issue with example model

421 次查看
Vijay98
Contributor II

Hello NXP team,

Currently we are working in SPI communication in MBDT with MATLAB, and we checked the SPI communication with example model (s32k3xx_spi_async_interr_s32ct) using S32K312-Q172 EVK board.

And we are facing an issue that SPI master sends the data and gets incremented but slave doesn't receive the data.

Vijay98_0-1744724441707.png

 

We checked the results in freemaster tool

Vijay98_1-1744724442122.png

 

In that result, master_send sends the data to SPI master & but slave_recv doesn't receive the data.

And we used the hardware pins connection as mentioned in the HW_SW_setup.

Vijay98_2-1744724443924.png

 

We checked the configuration in S32CT, we can't be able to find any issue in that.

And we have checked the status of each block in SPI example model, we seen that "SPISequence1" throws error.

Vijay98_3-1744724565848.pngVijay98_4-1744724584501.png

 

and we checked using logic analyzer in master SDO (mosi) the data is transmitted to slave pin via hardware connection.

 

Kindly help us to resolve this issue.

 

 

Thanks & regards, 

vijay

@stefanvlad @FlorinCiuca @Adrian_Gherca @dragostoma @Irina_Costachescu 

0 项奖励
回复
1 回复

353 次查看
stefanvlad
NXP Employee
NXP Employee

Hi @Vijay98 ,

 

What revision of the S32K312 chip do you have?

 

If it is revision 0P55A there might be a problem with the LPSPI Instance 2 and you need to change it to LPSPI Instance 3:

stefanvlad_0-1745506906792.png

The pins above are just an example, other pins can be selected but must check the S32K312EVB-Q172  schematic to be sure.

 

You can find more details in the following community post: Solved: Re: SPI no data transfer in S32K344_T172 MBDT example project - NXP Community

 

Please follow the steps in the link above and let me know,

Stefan V.

0 项奖励
回复