MCF5235 Malloc()/Free() Failed 2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF5235 Malloc()/Free() Failed 2

1,868 Views
Arev
Contributor III
hello,
 
I'm using malloc(), free() functions in a loop and my application crash down. When i try to free() memory allocated with malloc(), the memory is not freed and the next malloc() call use the next memory region until whole heap memory is used and application crash down.
 
When "alloc.c" file is included in my project, both malloc() and free() work well.
The project uses functions from "alloc.o" instead of "C_4i_CF_MSL.a(alloc.o)" or "C_4i_CF_StdABI_MSL.a(alloc.o)" depending on the linked library.
 
Is there any problem with Freescale libraries ??
 
Thanks for Help
 
Labels (1)
0 Kudos
1 Reply

212 Views
Arev
Contributor III
:smileyvery-happy:
 
I found the solution,
 
The problem was a bad old "Prefix File" in my project "mwerks.h" that I replaced by "ram_symbol.h" and now everything works well.
 
:smileywink:
0 Kudos