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.

F28M36P63C2: FlashAPI library linker command file error

Part Number: F28M36P63C2

I currently have my linker command file setup like so...

.TI.ramfunc : {-l F021_API_CortexM3_LE.lib} LOAD = FLASHE,
RUN = C2,
LOAD_START(RamfuncsLoadStart),
LOAD_SIZE(RamfuncsLoadSize),
LOAD_END(RamfuncsLoadEnd),
RUN_START(RamfuncsRunStart),
RUN_SIZE(RamfuncsRunSize),
RUN_END(RamfuncsRunEnd),
PAGE = 0, ALIGN(8)

I am getting a "program will not" error. I am not clear on how to resolve it. 

The map shows unused  space in FLASHE and C2. Is it an alignment problem?

 

Suggestions welcome

  • Regis,

    It is not an alignment issue.

    You did not paste the entire message but I guess it is saying that the memory that you allocated for a section is not enough to fit it.  Please read the error message completely and identify which section needs more space to fit in to the memory and allocate more space for that section.  

    How did you get map file when the compilation failed?  It may be a old one showing some space available in that memory for your old code size.  You might have added some more code and hence is not fitting.  This has nothing to do with Flash API.

    Try adding some more memory for that section as below (example):

    LOAD = FLASH_N | FLASH_M,

    RUN = C0 | C1

    Please expect delay in our replies.

    Thanks and regards,

    Vamsi

  • I pulled a new copy of my project and started over.
    It compiles fine so I added this line to my command file.

    //.TI.ramfunc : {} LOAD = FLASHLOAD,
    .TI.ramfunc : {-l F021_API_CortexM3_LE.lib} LOAD = FLASHE,
    RUN = C2,

    and I get a #10068 no matching section warning. I am ignoring the error for now.
    thanks
  • It looks like since I am not using anything from the lib yet it is getting optimize out.
  • I did not have enough ram allocated. thanks!
  • Regis,

    Glad that the issue is fixed. Closing the thread.

    Thanks and regards,
    Vamsi