lpspi_master_slave_s32k11x

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

lpspi_master_slave_s32k11x

1,752件の閲覧回数
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 返答(返信)

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

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