link  error :1102

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

link  error :1102

866件の閲覧回数
Arhan
Contributor I

Hi

 I  am using code warrier v6.3, and runnig  motor controller code (DMR115 ),

 when    coplile then it shws error  like

   Link Error: L1102 : out of allocation space in segment  RAM at adress : 0x425,

 

please tell hoew to overcome  to this error

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

548件の閲覧回数
bigmac
Specialist III

Hello,

 

Further to Lundin's comment, if your program uses the default allocation for placement of global and static variables, it is possible that zero page RAM will not be utilized.  If this is the case, you can gain some additional RAM space by allocating some ot the variables wthin zero page.  You will need to use the appropriate pragmas to achieve this.

 

The memory available for global and static variables will also be balanced against the stack size.  If the stack size allowed is over-generous, you might consider its reduction.  But you will need to experimentally determine the actual stack requirements of the program for a worst case situation.

 

Are you using the MCU type that DMR115 was intended to operate with, or a smaller device?

 

Regards,

Mac

 

 

0 件の賞賛
返信

548件の閲覧回数
Lundin
Senior Contributor IV

Unless you have been messing around in the .PRM file, it would seem that the RAM is full. Check the map file for details of how much memory everything things take up and where they are allocated.

 

This can only be solved by using fewer global/static variables. Or alternatively upgrade to a device with bigger RAM.

 

0 件の賞賛
返信