cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
6,745 Views
Registered: ‎09-11-2007

Weird problem of "malloc" function in PPC program

Hi, everyone!
I have encountered a weird problem with malloc function.
 
The program running on PPC, the development board is ML403.
Program has 32KB bram local memory and 64MB DDR memory.
 
The problem is that when the "malloc" dynamic locate the DDR memory, the function would return NULL even the heap space is far from full.
 
For example, heap address is start from 0x30035816-0x3003AD16(within DDR), last time successfull malloc get memory block start at 0x30036182 with length 0x10.
Now if run one more malloc, the function would return Null. But now the heap memory space is far from full. So why the function could not locate the rest memory?
 
Does someone could give some advise to solve the problem?
Please give me the suggestion.
Thanks a lot!
0 Kudos
1 Reply
Highlighted
Explorer
Explorer
6,704 Views
Registered: ‎09-16-2007

Did you try to enable it?? ie select "software" then "software platform settings" then "OS and Libraries" then click on "config_bufmalloc" and edit "mem_table".
 
 
 
 
 
Cheers,
Bill Tomb
0 Kudos