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.

数据读取的问题: dsp程序采用boot方式加载,从上位机下载数据到DDR中 ,采用EDMA的方式,但是EDMA是把数据直接存在了ddr的地址上,我想把数据存到的二维数组中,这个二维数组也在ddr上,这个要怎么做?

//上位机通过DMA的方式,将数据写入到DDR中,地址范围0x80000000~0x82000000
Void Pcie_EdmaToDDR()
{
UInt32 i;
UInt32 pcie_dataAddr = DEVICE_REG32_R(0x10800000);
//DMA的src地址 to DMA的dst地址
UInt32 dma_srcAddr = pcie_dataAddr;
UInt32 dma_dstaddr = 0x80000000;

UInt32 data_size = Gps_Nav_Len;
//char *tmp = GPSNavBits;
UInt32 data_size_Nav = 0xA0000000;
//上位机数据 DMA到DDR中 范围0x80000000 ~ 0x82000000
EDMA_mk( (unsigned int)dma_srcAddr,
(unsigned int)GPSNavBits,
data_size,
EDMA_CC2_CH0, DMA_WAIT
);