Wouter Jacobin

Raspberry Pi to MPC5744p over SPI

Discussion created by Wouter Jacobin on Jun 3, 2020
Latest reply on Jul 2, 2020 by Wouter Jacobin

Hello,

 

I am currently trying to get SPI data transfer between the MPC5744p and a Raspberry Pi 4 to work.

I'm using the SPIdev python toolkit to send the value 26 over to the MPC, using the attached SPItest.py script.

To receive this, i've modified the code of the SPI_MPC5744P example to only expect data arriving on the slave DSPI2.

 

When testing this my connections were as follows:

 

Raspberry Pi           NXP

SCLK                →   DSPI_2 CLK (PA0 - J5_1)

MOSI                 →   DSPI_2_SIN (PA2 - J5_5)

 

The code on the MPC5744P was intended to send a message to UART when SPI transfer has happened. However, when using the script on the Raspberry Pi, I could not get this message to show up.

 

I'm currently stuck as I can't seem to find out what I'm forgetting?

 

At first I thought that i also needed to connect the Slave Select pin, but the reference manual says that you shouldn't tie this to ground?

 

Thank you for your time.

Attachments

Outcomes