S32K144 LPI2C DMA Transmit problem using Mcal Packet

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

S32K144 LPI2C DMA Transmit problem using Mcal Packet

950 Views
Carlton
Contributor II

I use EB Tresos to config LPI2C and DMA.I want to use DMA to Transmit I2C data.But I meet some problems,the picture describe the problem,thank you.test.png

 
0 Kudos
3 Replies

902 Views
cuongnguyenphu
NXP Employee
NXP Employee

Hi @Carlton ,
It seems like your TCDn_SOFF value is wrong, In your case I expect that this value is 1, can you check this value and other values of TCD register also?

cuongnguyenphu_0-1649132667618.png

I refer to an example in Reference manual of S32K1x in Section DMA 18.6.4 Performing DMA transfers

0 Kudos

901 Views
cuongnguyenphu
NXP Employee
NXP Employee

More Register values need to check in config: MLOFF , TCDn_SLAST and TCDn_DLAST_SGA

cuongnguyenphu_1-1649134377340.png

 

0 Kudos

857 Views
Carlton
Contributor II

Thank you for your reply.I am sorry to answer you so late.

First,The TCD parameters are configed by function "I2c_AsyncTransmit".And have checked it.

And after I modified the start dma channal instruction ,the function is ok.So I think the TCD is configed correctly.

It's normal when I set "Start" bit in TCD0_CSR to start the dma.

815224142_0-1650788012662.png

It's abnoraml to set "ERQ0" bit in mcal.

815224142_1-1650788483081.png

 

0 Kudos