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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
3,688 Views
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
 
Labels (1)
Tags (1)
0 Kudos
1 Solution
70 Views
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

View solution in original post

0 Kudos
6 Replies
70 Views
Victim1
Contributor I
I keep seeing references to TN428, but have yet to find this document. Could someone supply a URL?
0 Kudos
70 Views
liyuyao
Contributor I
70 Views
Victim1
Contributor I
Oops make that TN248, I can't find that either
0 Kudos
70 Views
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 Kudos
70 Views
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 Kudos
71 Views
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

View solution in original post

0 Kudos