Ld error: - ccalloc would have returned NULL

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

Ld error: - ccalloc would have returned NULL

2,017 Views
609510318
Contributor I

Ld error: - ccalloc would have returned NULL

What is the reason for this err?

pastedImage_1.png

0 Kudos
4 Replies

1,922 Views
ErichStyger
Senior Contributor V

It looks to me that the linker (ld) is running into a problem while trying to get memory allocated.

Does it happen to you for other projects too? I think your linker file must use something special or must be very big somehow?

I'm affraid that you would have to try to reduce/change the linker file to find out what is causing this.

On a side note: it would be useful to know the Version of CodeWarrior and target used. You might exchange the toolchain/linker to see if this has a positive effect, but tinkering with the tool chain would need expert knowledge.

I hope this helps,

Erich

1,922 Views
609510318
Contributor I

The reason  is now confirmed that the RAM of my codes is over 60k.But I have another question about RAM_L and RAM_U. 

0 Kudos

1,922 Views
609510318
Contributor I

I just solve this problem temporarily,  I correct the value of the stack size , heap size and  and  M_VECTOR_RAM_SIZE .

It does work! This correction method  is approved useful!

But I do not know the real reason. 

pastedImage_1.png

0 Kudos

1,922 Views
609510318
Contributor I

Once this err happened one time,other projects had the same problem.

0 Kudos