KE1xF SPI restart problem

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

KE1xF SPI restart problem

639件の閲覧回数
giovannigherard
Contributor I

Dear all, I'm experiencing a problem (especially when I am in debug). I use slave SPI with DMA  to transfer a 64bytes block and after a timeout i set the VLPS mode disabling first the SPI, aborting transfers and resetting it. When I go back in RUN mode, I reinitialize the SPI and DMA again but the SPI communications restarts with a problem, the whole buffer is shifted, from the K1xF (the slave) the first sent byte is the byte 8, then all other 56 bytes and at the of the frame I get what should be from byte 0  to 7.

Any idea?

ラベル(1)
0 件の賞賛
返信
1 返信

553件の閲覧回数
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Giovanni Gherardi

Could you share the steps or the code where you disable and reset DMA and SPI modules? are you using a SDK driver?

This problem could be related with the FIFO. If SPI FIFO register didn't reset when you disable the transfers, then you could have lost of data. You can check the register LPSPIx_CR.

Hope this information could help you.
Have a great day,
Jorge Alcala

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信