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.
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?
I refer to an example in Reference manual of S32K1x in Section DMA 18.6.4 Performing DMA transfers
More Register values need to check in config: MLOFF , TCDn_SLAST and TCDn_DLAST_SGA
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.
It's abnoraml to set "ERQ0" bit in mcal.