main() mapped over several flash pages

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

main() mapped over several flash pages

1,301 次查看
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 回复数

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

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