Reissue a new SPI sequence in SpiSeqEndNotification of S32K3 SPI

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

Reissue a new SPI sequence in SpiSeqEndNotification of S32K3 SPI

136 Views
LewisThin
Contributor III

to reuse the buffer and reduce the ram, I do not wanna to use more than two channels in a job.

I wanna to reuse the channel to reissue a spi communication in the SpiSeqEndNotification callback

the details is shown below

LewisThin_0-1718869451863.png

 

after i handle the data in the SpiSeqEndNotification callback ,i reissue a new seq but no response.

the MCU is S32K344

the RTD is RTD 2.0.0

 

Tags (2)
0 Kudos
Reply
3 Replies

89 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @LewisThin,

I'm not sure I understand.

Can you elaborate? Can you share the project?

Do you use two LPSPI instances, one as a master and one as a slave?

Do you measure the bus with an oscilloscope?

 

Regards,

Daniel

0 Kudos
Reply

83 Views
LewisThin
Contributor III

i am sorry i can not share the project.

you are right i configrated two spi instances, one is master (spi1) and the  other is slave (spi2)

i connected the two spi to MC33664(NXP IC for battery AFE (33774) bridge) 

i issue a communication on spi1 to MC33664, and then i received echo from 33664 and msg from 33774 (spi2)

then the spi sequence of spi2 was finished and the callback of spi2 SpiSeqEndNotification triggered.

I issued another  communication on spi1 to MC33664, but no message received on SPI2

i do not use scope to test the wave of SPI, i will try it later.

Tags (1)
0 Kudos
Reply

79 Views
danielmartynek
NXP TechSupport
NXP TechSupport

I think it is crucial to know if MC33664 sends the data back.

You don't get any notification if the spi2 does not receive anything.

You can also poll the status of the Async transfer.

 

Regards,

Daniel

0 Kudos
Reply