Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: How to allocate memory on DSP based on codec engine in DM3730

$
0
0

hi Arnie Reynoso,

thks for your further suggestions. I just followed what you advised. But it still can not work. 

After thinking and trying more, I think the problem lies in the fact that the DDR2 segment is not big enough. So, I must turn to the  DDRALGHEAP segment.

I  have done something in the configuration (*.tcf and  *.tci):

bios.setMemDataHeapSections (prog, bios.DDRALGHEAP);

bios.MEM.MALLOCSEG  = bios.DDRALGHEAP;

bios.DDRALGHEAP.enableHeapLabel = true;
bios.DDRALGHEAP["heapLabel"] = prog.extern("SEG0");

and also in the c codes, i followed your advice :

extern Int SEG0;

Memory_AllocParams allocParams;
allocParams.type = Memory_CONTIGPOOL;
allocParams.flags = Memory_NONCACHED;
allocParams.align = 128;
allocParams.seg = SEG0;

Finally, it can work well! 

 F. H. Sun 

 

 


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>