main() mapped over several flash pages

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

main() mapped over several flash pages

1,308件の閲覧回数
Olitsch
Contributor I

Hi all !

 

I am using Codewarrior 4.5 with a MC9S12XDP512CAL.

 

I ran into a problem after my Main() went too big. I get the following error:

 

Link Error: L1102 Out of allocation space in segment PAGE_F7 at adress 0xF78229

 

I looked at the map file and the main() is indeed to big for a single segment. but there are more than enough free segments.

I allready tryed the "allocation over segment boundries" options of the linker, but the problem stays the same.

 

Is there anything else i have to adjust to allow the allocation over segment boundries?

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

877件の閲覧回数
Lundin
Senior Contributor IV

Err... if you wrote your program as a single, 16kb large function, this one is the least of your problems...

 

0 件の賞賛
返信

877件の閲覧回数
kef
Specialist I

You should split main() into two or more smaller functions and call them from main(). You can't allocate functions over page window boundaries, code won't run.

0 件の賞賛
返信