AnsweredAssumed Answered

CRC calculation with DMA

Question asked by david tomsa on Oct 6, 2017
Latest reply on Oct 30, 2017 by david tomsa

Hi guys,

 

i tryed to use the CRC Modul with DMA Access but it doesn't work.

 

My first step is to configure the DMA Channel.

 

DMA.TCD[3].SSIZE = 2 /** 4 Bytes **/

DMA.TCD[3].DSIZE = 4

DMA.TCD[3].SOFF = 4

DMA.TCD[3].DOFF = 0

DMA.TCD[3].DADDR = (uint32_t) &CRC.INP.R

DMA.TCD[3].NBYTES = 4

DMA.TCD[3].DREQ = 1

I try to send Data in the following way.

DMA.TCD[3].SADDR = (uint32_t)&source;
DMA.TCD[3].BITER = amount;
DMA.TCD[3].CITER = amount;

DMA.ERQL.B.ERQ3 = 1;

 

I'm using the SPC57 with the Hightec Compiler / IDE. Could anyone tell me where my error is ?

Outcomes