Tool/software: Linux
I am working with AM5728 EVM. I running Linux on A15 and RTOS on DSP and M4 cores.I am using CMEM buffer pool to currently stream audio to the DSP. This buffer pool is currently allocated on the DDR and it works with it. Now I am trying to use L3 shared memory (OCMC3) for audio streaming. I haven't modified the am57xx-evm-cmem.dtsi as it already has entry for cmem_block_1 with ocmc3.
I am trying to allocate buffer on the Linux using this -
CMEM_AllocParams cmemParams;
cmemParams.type = CMEM_HEAP;
cmemParams.flags = CMEM_NONCACHED;
// Shared mem between A15 and DSP using cmem_block_mem_1_ocmc3
void * shared_mem = CMEM_alloc2(1, 0x100000, &cmemParams);
The CMEM_alloc2() call succeeds, but when I used this shared_mem for streaming audio, it seems that the audio data gets cached. Am I using correct CMEM_AllocParams or what am I missing?
Regards,
Jimit