Reissue a new SPI sequence in SpiSeqEndNotification of S32K3 SPI

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reissue a new SPI sequence in SpiSeqEndNotification of S32K3 SPI

632件の閲覧回数
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 返答(返信)

585件の閲覧回数
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 件の賞賛
返信

579件の閲覧回数
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 件の賞賛
返信

575件の閲覧回数
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 件の賞賛
返信