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.

LAUNCHXL-F28379D: Difficulty with Memory Allocation in CCS for TMS320F28379D Project

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: TMS320F28379D

Hello TI Community,

I am working on a project using the TMS320F28379D microcontroller and have encountered a challenging issue in Code Composer Studio (CCS). I'm seeking guidance or suggestions to resolve it.

Issue Description: I am receiving a "memory will not fit" error during the linking phase of my build process. The specific error message is as follows:

error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. Placement with alignment/blocking fails for section ".text" size 0x3398 page 0. Available memory ranges: RAMLS4 size: 0x800 unused: 0x800 max hole: 0x800


Attempts to Resolve:

  1. I have tried adjusting the linker command file (28379d_RAM_lnk_cpu1.cmd), specifically modifying the .text section allocation to different memory ranges (RAMD0, RAMLS0, etc.).
  2. I attempted to reduce code size and optimize memory usage but still face the same issue.

Questions:

  1. What could be causing this specific memory allocation error?
  2. Are there recommended practices for allocating sections in the linker command file for TMS320F28379D projects, specifically concerning the .text section?
  3. Could there be settings in CCS or project configurations that might contribute to this problem?

Any insights, suggestions, or examples would be greatly appreciated. Attached below is a snippet of my linker command file for reference:


Thank you in advance for your assistance!

Best regards,
N





  • Add the compiler option --gen_func_subsections and build again.  

    I presume you do not use this option.  It causes each function to be allocated to a separate input section.  Those smaller input sections usually allocate better across the section splitting allocation you do with .text.

    Please let me know if this suggestion resolves the problem.

    Thanks and regards,

    -George

  • Hi George,

    Thank you for your suggestion to add the --gen_func_subsections option to the compiler settings. I'm quite new to this and I'm not entirely sure where to add this command in the Code Composer Studio environment. Could you please guide me through the process or point me to the right section in CCS where I can add this compiler option?

    I appreciate your help and look forward to your guidance.

    Best regards, 
    N


  • is this right?

  • Thank you for your suggestion to use the --gen_func_subsections compiler option. I appreciate your help.

    N