SPI data reception from Raspberry Pi

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI data reception from Raspberry Pi

750 Views
Jeeva
Contributor I

Issue:

Unable to receive the data in Slave(S32K144) which is sent from Master(Raspberry Pi 3 Model b+).

Steps Followed:

1.) I have configured Raspberry Pi 3 Model b+ board as Master and S32K144 board as Slave(using S32 Design Studio) for the SPI data communication. 

2.) I have configured and verified the pins and peripherals for the SPI in both master and slave end is correct.

3.) I have checked that the data is transmitted from the SPI Master successfully.

4.) In the Slave end, I couldn't able to receive the data which is sent from Master. 

5.) So, by debugging I found that the "SpiSlave_Callback()" function is not triggered (in this function only, "vTaskNotifyGiveFromISR()" API is there to send task notifications). So, "ulTaskNotifyTake()" API is not receiving any task notifications.

6.) The following are the steps done before calling "SpiSlave_callback".

INT_SYS_EnableIRQGlobal();
INT_SYS_EnableIRQ(LPSPI0_IRQn);
INT_SYS_SetPriority(LPSPI0_IRQn,2);
lpspi_0_SlaveConfig0.callback = SpiSlave_callback; //Callback Function
lpspi_0_SlaveConfig0.callbackParam = NULL;

7.) So, It seems that Interrupt is not invoking the callback function.

Support Required:

1.) To trigger the callback function in the Slave end.

2.) To receive the task notifications and process the data which is sent from the Master

3.) To establish the SPI communication between Master and Slave.

0 Kudos
Reply
1 Reply

697 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Jeeva,

Which drivers do you use?

Can you share the project?

 

BR, Daniel

0 Kudos
Reply