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.

TMS570LS3137: Sending a Data to an Address

Part Number: TMS570LS3137

Hello all,

I am new using HDK TMS570LS3137,  I want to write a data to an address from one SPI to another. 

SPI3 is going to be TX, SPI1 RX.

Then, copied these codes,

#define SPI3_TX_ADDR ((uint32_t)(&(spiREG3->DAT1)) + 2)
#define SPI1_RX_ADDR ((uint32_t)(&(spiREG1->BUF)) + 2)

unsigned int BlockSize = 100;

unsigned short TX_DATA[100];
unsigned short RX_DATA[100] = {0};

dmaConfigCtrlRxPacket(SPI1_RX_ADDR, (unsigned int)&RX_DATA, 1, BlockSize);

dmaConfigCtrlTxPacket((unsigned int)&TX_DATA, SPI3_TX_ADDR, 1, BlockSize);

and some others as well.

Now, I want to write a data to an address and I don't know how to do it. Should I use ISADDR, IDADDR registers or something.

For example, I just wrote these

for(i=0; i< BlockSize; i++)
{
TX_DATA[i] = i;

}

and want it to write on an address. I mean, from TX to RX.

Need your help, best wishes.

Caner