I've got my algorithm successfully using memcpy to copy some data to L1D SRAM and then out again using the C674x core in the DM8168. I have this working with L2 SRAM as well.
When I try the same thing with DMA (ECPY), the DMA to L2 memory is fine, but when I try and DMA the data back out of L1 SRAM, I find it is all zeroes.
Why is the data all zeroes? I've tried using memcpy to copy data into L1D and use DMA to copy data out but I still end up with zeroes. It appears that the DMA is doing one or both of the following:
1) Failing to copy any data into L1 SRAM.
2) Reading zeroes when it tries to copy data _out_ of L1D SRAM.
Anyone know why this isn't working? Edit: the DMA itself is doing something but it appears to be copying data to/from the wrong memory address and as a result the data being copied is all zeroes.
Thanks,
Ralph
P.S.
I am using the DMA offset of 0x3000 0000 as required due to the difference in memory maps between the L3 interconnect and the C674x memory map.