View Single Post
  #3   Spotlight this post!  
Unread 11-02-2008, 16:03
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: complie error can not fit the section. Section xxxx

How much program code & romdata do you have!?

Look at the partial map file that was generated.

Code:
CODEPAGES:
    Memory      Start        End              Section    Address Size(Bytes)
 ---------  ---------  ---------            ---------  ---------  ---------
      page     0x0800     0xffff           _entry_scn     0x0800     0x0006
                                  InterruptVectorHigh     0x0808     0x0006
                                   InterruptVectorLow     0x0818     0x0006
                                               .cinit     0x081e     0x00b6
                                 .romdata_drv_Interrupts.o     0x08d4     0x7700
Look for large sections of code/romdata in the size/bytes column. Essentially the linker says you are out of rom space for program instructions (since this is a .code section).

Not generating a map file? Project->Build options->Project, MPLINK Linker tab, check "Generate map file", Apply, OK, Project->Clean, Project->Build All.

Last edited by dcbrown : 11-02-2008 at 16:06.