Flash Problems Error L1121

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flash Problems Error L1121

3,353 Views
MC9S08GT
Contributor I
Hello,
 
Link Error: L1121: Out Of Allocation Space At Adress 0x665D for .copy Section
What´s This?
L1121: Out of allocation space at address <Address> for .copy section
[ERROR]
Description
There is not enough memory available to store all the information about the initialized variables in the .copy section.
Tips
Specify an higher end address for the segment, where the .copy section is allocated.
 
Error Coding:
      y = 0x10C0;
       for(x = 0; x < 16; x++){
         Flash1_SetByteFlash(y, catos[x]);
         y++;
       }
Thanks for the help.

Message Edited by MC9S08GT on 2006-07-13 02:35 PM

Labels (1)
0 Kudos
4 Replies

480 Views
CrasyCat
Specialist III
Hello
 
Basically the message "L1121: Out Of Allocation Space <...>" shows that your application is too big and cannot fit the actual MCU Memory Map.
 
Please take a look at the actual application .map file to get an idea of the actual application code.
You may have to remove some function to get your code within the MCU or to switch to another MCU with more flash.
 
.copy contains the initialization value for global variables defined with initializer. The startup code will copy these values down to RAM.
 
I hope this helps.
 
CrasyCat
0 Kudos

480 Views
MC9S08GT
Contributor I

Hello Crasycat,

Thanks for your response.

1) How do I check the available space that I have in my RAM ?

2) I´m using Codewarrior 3.1 and the bean FLASH of Processor Expert to record the data. How much RAM this bean use???

Thanks for the help...

 

0 Kudos

480 Views
CrasyCat
Specialist III

Hello

Did you take a look at the .map file generated by the linker. Even though the link did not succeed, you may find useful info there.

CrasyCat

0 Kudos

480 Views
fire
Contributor I
Which project you are doing???
you can avoid this error by Changing the link order ofthe files.
regards,
fire.
0 Kudos