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