Reissue a new SPI sequence in SpiSeqEndNotification of S32K3 SPI

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Reissue a new SPI sequence in SpiSeqEndNotification of S32K3 SPI

194 次查看
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

 

标记 (2)
0 项奖励
回复
3 回复数

147 次查看
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 项奖励
回复

141 次查看
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.

标记 (1)
0 项奖励
回复

137 次查看
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 项奖励
回复