This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Configuring reload on TPCC - EDMA

I'm using EMDA with manual trigger to write on McSPI port.

But even setting BCNTRLD, BCNT is not reloading.

How I configure auto-reload on a logical channel ?

Below is the code as I am currently setting up the EMDA:

// Destination Start Address (McSPI2_TX_CHO)
*( &TPCC_BASE + TPCC_DST + uiOffset) = (unsigned int) ( &McSPI3_BASE + McSPI_TX_CH0);
  // Source Start Address
*( &TPCC_BASE + TPCC_SRC + uiOffset) = (unsigned int) usbTspIota;
// Set 1st and 2nd dimension (ACNT = 2  BCNT = 2)
*( &TPCC_BASE + TPCC_ABCNT + uiOffset) = 0x00000002;
*( &TPCC_BASE + TPCC_ABCNT + uiOffset) |= (0x2 << 16);
// Set 3rd Dimension
*( &TPCC_BASE + TPCC_CCNT + uiOffset) = 0x00000001;  
// Set Offset To Vector
*( &TPCC_BASE + TPCC_BIDX + uiOffset) = 0x00000002;
// Ser OPT to zero
*( &TPCC_BASE + TPCC_OPT + uiOffset) = 0x00000000;
// Disable link e set BCNTRLD to 2, the same then BCNT
*( &TPCC_BASE + TPCC_LNK + uiOffset) = 0x0002ffff;
// Set DMA Channel uiDMAChannel To Use PaRAM uiDMAChannel
*( &TPCC_BASE + TPCC_DCHMAP + uiDmaOffset) = 0x00000000;
*( &TPCC_BASE + TPCC_DCHMAP + uiDmaOffset) = uiDMAChannel << 5;
*( &TPCC_BASE + TPCC_DCHMAP + DHCMAP_OFFSET*20 ) = 0x00000000;
*( &TPCC_BASE + TPCC_DCHMAP + DHCMAP_OFFSET*20 ) = 20 << 5;

Greetings,
Paulo Villani