This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linker Error -Reg

Other Parts Discussed in Thread: MSP430F2121

Hi,

 

I am using the microcontroller  MSP430F2121 for my project .Now i have facing one problem when i build the project ,the error is

placement fails for object ".text", size 0x1048 (page 0).  Available ranges: FLASH        size: 0xfde        unused: 0xee4        max hole: 0xee4          line 0  

What can i do for the error? it is to urgent ....Anyone please help.....

 

Joseph.D

  • Joseph Christober said:
    placement fails for object ".text", size 0x1048 (page 0).  Available ranges: FLASH        size: 0xfde        unused: 0xee4        max hole: 0xee4 

    So your code is 0x1048 bytes long (=4168 bytes) and there are only 0xee4 (=3812) bytes free after putting the initializers for variables into the flash. The maximum code size you can put into this MSP is 0xfde = 4062 bytes. Including the initialization of the global variables.

    I'm pretty sure you can guess a solutio: make your code shorter, so it fits into the available flash. Or buy a bigger MSP.

**Attention** This is a public forum