lpspi_master_slave_s32k11x

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

lpspi_master_slave_s32k11x

924 次查看
viet
Contributor II

i open the spi-slave-master example for S32k118 development kit.
but on the freeMaster, i saw the Slave doesnt receive any data. 

please help me have a look at the model. I have check my wires connection 5 times. 

viet_0-1627896666765.png

 

thanks for support

0 项奖励
回复
2 回复数

869 次查看
adriantudor
NXP Employee
NXP Employee

Hi @viet

 

It is possible to appear some problems with SPI communication for instance 0, due to an overlap of an SPI of onboard ic (sbc UJA1169) connected on the same CS pin of instance 0 (PTB5). 

 

The first solution for this problem is to connect J107 jumper to 2-3 position and be sure that the board is powered via USB cable not via J16 connector.

If that don't work properly try that: 

I modified the default example to use PTB0 instead of PTB5 and I added write high blocks to the PTB5 pin in order to disable SPI interface of UJA ic.

Please let me know if any of those solutions work for you.

 

Best regards,

Adrian

0 项奖励
回复

904 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @viet,

Unfortunately, I don't have access to the S32K118 mcu right now to test the model on real hardware. I had a look at the model and I see that whenever it transmits a byte on the SPI, the Green LED should toggle. Do you see this on the board?

Regards,

Marius

0 项奖励
回复