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 10099-D with MSP430F5xx device



Dear Sir,

     I have just started using CCSV5.I am getting Linker Error while building my Project. The error is as under

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------     

error #10099-D: program will not fit into available memory. placement with alignment fails for section ".cinit" size 0xcd . Available memory ranges:
FLASH size: 0xbb80 unused: 0x0 max hole: 0x0

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I am using default  linker .cmd file . The code size is more than 52K ( Device is msp4305324)

Plz  guide me to resolve this issue. ? Do I change the default device  linker file.

Regards,

Ars

  • Ars,

    Ars said:
    Do I change the default device  linker file.

    You can modify the linker command file to place .cinit into another section with more space. Try FLASH2 instead

        .cinit      : {} > FLASH2

    More details on how linker command files work is documented in section 7.5 of the Assembly Language User's Guide

    http://www.ti.com/lit/ug/slau131g/slau131g.pdf

    Thanks

    ki

  • Hi,

    are you sure the message is not correct and you are going beyond the devices 64k?    Have you switched compiler versions or imported this project?  Also are you using ELF or COFF?

    One way to check whether you are going over is in the .map file.    You may also want to be sure the linker command file you are using makes sense for what you are attempting to do.

    Please keep us informed.

    Best Regards,

    Lisa

  • Hi,

    just thought I would check for updates with your enquiry.

    Best Regards,
    Lisa

  • Lisa TI said:
    just thought I would check for updates with your enquiry.

    Hi, 

      Thanks for sharing the info. I only edited .cmd file and in it  i changed the .text section with  .text       : {}>> FLASH2 | FLASH  . It got build sucessfully.

    But didn't work as the device should be .May be i had to resolve other  issues also..

     Is it any specific to this device ?? Because I had a problem with this device using IAR C compiler also .In that case i had to locate my biggest function to a particular Address and got it working !!

    Could you plz elaborate on this particular issue ??

    Rgds

    Ars

  • Hi,

    can you explain in any detail exactly what issues you still see and what you mean by "not working as it should be"?

    Best Regards,
    Lisa