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.

TMS320F28386S: DMA write to memory with CLA access

Part Number: TMS320F28386S

HI, 

I am using the SPI to Write and Read Data from an external Gyro.

I am using the DMA to save CPU time writing and reading from the SPI FIFO.

After the data is received, some processing needs to be done on the received data.

I want to do this processing on the CLA.

I based my configuration on the "spi_ex5_loopback_dma" sample project.

I can confirm that data is send and received from the gyro when working on CPU1 memory.

To have the DMA write the received data from the spi directly to a memory with CLA access, I placed the rData Buffer within the "cla_chared" data section.

```

#pragma SET_DATA_SECTION("cla_shared")

volatile uint16_t rData[16]; // Gyro receive data buffer

#pragma SET_DATA_SECTION() // Reset section to default

```

However, It seems that the the data is not copied to the buffer.

The values at the buffer when the CLA task run is all 0's.

Am I doing something wrong?

Or maybe the DMA can't wright to memory that the CLA can access?

I attached the relevant2838x_FLASH_CLA_lnk_cpu1.rar linker command file.