Ld error: - ccalloc would have returned NULL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Ld error: - ccalloc would have returned NULL

2,201 次查看
609510318
Contributor I

Ld error: - ccalloc would have returned NULL

What is the reason for this err?

pastedImage_1.png

0 项奖励
回复
4 回复数

2,106 次查看
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

2,106 次查看
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 项奖励
回复

2,106 次查看
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 项奖励
回复

2,106 次查看
609510318
Contributor I

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

0 项奖励
回复