Out of allocation space in segment RAM at address 0x3E65? MCS9XDP512.

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

Out of allocation space in segment RAM at address 0x3E65? MCS9XDP512.

跳至解决方案
6,069 次查看
Pang
Contributor I
Hi everyone
 
My project has a problem withe linker. After compilation, the linker reported an error message:
 
"Out of allocation space in segment RAM at address 0x3E65."
 
How should I do with this messesage? My compiler option  is
 
-CpDPAGE=0x34 -CpEPAGE=0x36 -CpGPAGE=0x10 -CpPPAGE=0x35 -CpRPAGE=0x16 -CPUHCS12X -D__FAR_DATA -Ml -OnB=b -PSegObj -WmsgSd1420 -WmsgSd12056
 
Is there something wrong?
 
Thanks a lot for your inputs.
 
Pang
 
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,451 次查看
CrasyCat
Specialist III
Hello
 
Apparently the memory area RAM is not big enough to store all your global variables.
I would start with looking at the map file generated by the linker. This could show you which variables have not been allocated yet.
 
Solutions here are:
  - If you have big arrays check if you can define them smaller.
  - You may want to place some variables in banked memory. You have then to define them in a user specified section. Please refer to technical note TN248 for information on how to do that.
 
Technical notes can be downloaded from our HC12 web page.
 
CrasyCat

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,450 次查看
Victim1
Contributor I
I keep seeing references to TN428, but have yet to find this document. Could someone supply a URL?
0 项奖励
回复
2,450 次查看
liyuyao
Contributor I
2,450 次查看
Victim1
Contributor I
Oops make that TN248, I can't find that either
0 项奖励
回复
2,450 次查看
Alban
Senior Contributor II
Dear Victim...
 
(isn't it the way we all feel...)
 
x:\Program Files\Freescale\CW for HC12 V4.x\Help\pdf\TN248.pdf
 
Cheers,
Alban.
0 项奖励
回复
2,450 次查看
CrasyCat
Specialist III
Hello
 
Technical Notes can be downloaded from the web.
Go to CodeWarrior HC12 product page
Click on 8/16 bit Tech Notes on the right hand side
You get a .zip file with all the technical notes.
 
As far as I know Technical Notes have been removed from the installation layout.
 
CrasyCat
0 项奖励
回复
2,452 次查看
CrasyCat
Specialist III
Hello
 
Apparently the memory area RAM is not big enough to store all your global variables.
I would start with looking at the map file generated by the linker. This could show you which variables have not been allocated yet.
 
Solutions here are:
  - If you have big arrays check if you can define them smaller.
  - You may want to place some variables in banked memory. You have then to define them in a user specified section. Please refer to technical note TN248 for information on how to do that.
 
Technical notes can be downloaded from our HC12 web page.
 
CrasyCat
0 项奖励
回复