AnsweredAssumed Answered

questions about example project for spi

Question asked by 燕琳 赵 on Feb 25, 2020
Latest reply on Feb 27, 2020 by 燕琳 赵

Dear expert

I used S32K144 EVM board , and the SDK version is S32SDK_S32K1xx_RTM_3.0.0.

The example lpspi_transfer work abnormally.

The EVB power is 12V, and I connect the PTB4 (output of mater spi_0) with PTD1(input of slave spi_1), and PTE1(input of master spi_0) with PTD2(output of slave spi_1).

slaveDataSend, masterDataReceive, masterDataSend, slaveDataReceive are initialized as 0x00.

But after the ADC voltage is sampled, the slaveDataSend is 0xc3, but masterDataReceive is 0ff. When slaveDataSend changes as ADC voltage, but the masterDataReceive is always 0xff.

It means the master SPI can not receive correctly. What may be the reason? Could you help me

 

Thank you very much!

 

Outcomes