Out of APP_ROM

Hi,
When I try to compile, I’m having the following error :
“Out of allocation space in segment APP_ROM at address 0XF197”.

Is there a solution to this error or does this mean that my code is too large and I need to reduce it if I want to compile it?

Regards,
flo.gau

What application are you working with the write your code and what is the exact part number of the device you are trying to port it to?

I’m working with XBEE S2CTH : XB24CZ7WITB003-revA
And I’m using CodeWarrior with the XBEE SDK to compile my code.

I’m working with XBEE S2CTH : XB24CZ7WITB003-revA
And I’m using CodeWarrior with the XBEE SDK to compile my code.

I believe it is reporting that you are out of addressable space for your application. That is you need to make the Code smaller or use a larger processor.

Is it possible to add space to the XBEE?
I have seen in the documentation that there some space that is unimplemented, is it possible to use it to have more space for the application?
I’m currently trying to reduce the size of my code.

No, the radios firmware is not adjustable. Anyway, that is on the RF processor and not the freescale processor you are using.

Is it also possible to know what is the size of my project? I would like to know if I have a lot to reduce or not to make my code compilable.

I believe you need to find the .ABS file and then get the properties of it.

I think this .ABS file is generated only when the build is successful.

This is one of thoughts times where the Help file within the application provides the answer. I did a simple search in the Help file for Out of allocation space in segment and found the following:

L1102: Out of allocation space in segment =“”> at address =“”>
[ERROR]

Description
The specified segment is not big enough to contain all objects from the sections placed in it.

: is the name of the segment, which is too small.
Example
In the following example, suppose the section .data contains a character variable and then a structure which size is 5 bytes.

Out of allocation space in segment MY_RAM at address 0x801

LINK fibo.abs

NAMES fibo.o startup.o END

SEGMENTS

MY_RAM = READ_WRITE 0x800 TO 0x803;

MY_ROM = READ_ONLY 0x805 TO 0xAFF;

MY_STK = READ_WRITE 0xB00 TO 0xBFF;

END

PLACEMENT

.text INTO MY_ROM;

.data INTO MY_RAM;

.stack INTO MY_STK;

END

// Set reset vector on _Startup

VECTOR ADDRESS 0xFFFE _Startup

Tips
Set the end address of the specified segment to an higher value.