How to receive data of SPI slave mode

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

How to receive data of SPI slave mode

869 Views
longtengqiufeng1
Contributor III

Hi,

I want to use two S32G-VNP-GLDBOX for SPI master/slave communication,but I have the problem of SPI slave mode .

I created SPI master demo and changed the master to slave in the configuration , and I use the pin PTA7  to notify the Slave device like below picture show:

longtengqiufeng1_0-1670918116291.png

 

But I still can't recieve the data from RxBuffer , so What did I get wrong ? And how to modify it demo ,thank you!

 

0 Kudos
Reply
3 Replies

851 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Could you please tell us which RTD version and S32DS version are you using? For us to verify compatibilities.

In the meanwhile, we will take a look into the modifications needed for the example to work in slave mode.

Please, let us know.

0 Kudos
Reply

825 Views
longtengqiufeng1
Contributor III

Thank you for your reply!

I use  SW32G_RTD_4.4_3.0.2_HF01_DS and S32DS v3.4 , now I can send and recieve data from SPI MASTER by SPI SLAVE demo. But I still don't kown how to update the content of send data ....

If I want to change the data to master device during tranmiting , what should  I do?

0 Kudos
Reply

819 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

It seems this thread is similar to the one shown below.

Re: How to change varaibles in array when sending ... - NXP Community

If so, please keep an eye for an update on this specific topic.

Please, let us know.

0 Kudos
Reply