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.

"../C5517.cmd", line 74: error: program will not fit into available memory.



Hello!

I'm trying to load the example of line-loop on the evmC5517, but I got this message.

"../C5517.cmd", line 74: error: program will not fit into available memory.

Could you please help me? It is supposed to be the example without any modification, and it doesn't fit.

Best Regards

  • Here the line on the C5517.cmd

    70 SECTIONS
    71 {
    72 vectors (NOLOAD) > VECS /* If MPNMC = 1, remove the NOLOAD directive */
    73 .cinit > DARAM0
    74 .text > DARAM1
    75 .stack > DARAM0
    76 .sysstack > DARAM0
    77 .sysmem > DARAM4
    78 .data > DARAM4
    79 .cio > DARAM0
    80 .bss > DARAM5
    81 .const > DARAM0
    82 }

    And the error on console : 

    'Building file: ../main.c'
    'Invoking: C5500 Compiler'
    "c:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -O3 -g --optimize_with_debug --include_path="../../../include" --include_path="c:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --define=c5517 --diag_warning=225 --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
    'Finished building: ../main.c'
    ' '
    'Building target: aic3204-1.out'
    'Invoking: C5500 Linker'
    "c:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -O3 -g --optimize_with_debug --define=c5517 --diag_warning=225 --ptrdiff_size=32 -z -m"aic3204-1.map" --stack_size=0x200 --heap_size=0x400 -i"c:/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" -i"c:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" -i"../../../lib" --reread_libs --warn_sections --xml_link_info="aic3204_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "aic3204-1.out" "./aic3204_loop_mic_in.obj" "./aic3204_loop_stereo_in1.obj" "./aic3204_loop_stereo_in2.obj" "./aic3204_test.obj" "./aic3204_tone_headphone.obj" "./aic3204_tone_stereo_out.obj" "./main.obj" "../C5517.cmd" -l"evm5517bsl.lib"


    <Linking>
    "../C5517.cmd", line 74: error: program will not fit into available memory.
    placement with alignment/blocking fails for section ".text" size 0x50d0 page
    0. Available memory ranges:
    DARAM1 size: 0x2000 unused: 0x2000 max hole: 0x2000
    error: errors encountered during linking; "aic3204-1.out" not built

    >> Compilation failure
    gmake: *** [aic3204-1.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • Is this an example in C5517 CSL3.04?Regards.
  • I use the examples on evm5517_v1 , on code compiler studio v6 . One test project named aic3204-1.

    Should I use code compiler v5 or another example?

    best regards
  • I guess this is your own example. Are you aware of CSL3.04 which has an array of examples for every peripherals? It is on this page under Software:
    www.ti.com/.../toolssoftwareRegards.
  • Hello,

    No, there are examples of Texas instruments and Spectrum Digital.

    The link you gave me is broken. Could you please rewrite it?

    Best Regards
  • I still have exactly the same problem with those examples. line 74 error

    Thank you in advance.

  • Ok. Follow the Installation Guide.Regards.
  • .text (0x50d0) is not fitting in DARAM1 (0x2000)

    Try to merge DARAM1, 2, and 3 in the .cmd file, then point .text to this merged memory space:

    MEMORY
    {
    MMR: o = 0x000000 l = 0x0000c0 /* 192B Memory Mapped Registers */
    DARAM0: o = 0x0000C0 l = 0x001F40 /* 8kB Dual Access RAM 0 */
    DARAM123: o = 0x002000 l = 0x006000 /* 8kB Dual Access RAM 1 */
    /*DARAM2: o = 0x004000 l = 0x002000 */ /* 8kB Dual Access RAM 2 */
    /*DARAM3: o = 0x006000 l = 0x002000 */ /* 8kB Dual Access RAM 3 */
    DARAM4: o = 0x008000 l = 0x002000 /* 8kB Dual Access RAM 4 */
    DARAM5: o = 0x00A000 l = 0x002000 /* 8kB Dual Access RAM 5 */
    DARAM6: o = 0x00C000 l = 0x002000 /* 8kB Dual Access RAM 6 */
    DARAM7: o = 0x00E000 l = 0x002000 /* 8kB Dual Access RAM 7 */

    ...

    SECTIONS
    {
    ...
    .text > DARAM123
    ...

    Or just merge all DARAMs together and make sure you handle alignment  like the below example:

    special_buf          : > DARAM       ALIGN = 16384   /*  2^14 = 16384 , SIZE = 4096 words  */

    Hope this helps,
    Mark

  • Dear Steve,

    Of course, I have followed the installation guide. It doesn't work. I feel alls this package were designed to work with ccs v5, which doesn't work with Windows 7. I'm using Windows 7 with ccs v6.

    Conclusion, it doesn't work. And I'm starting to think that this is not a good product, full of bugs and unreliable.

    best regards

  • Dear Mark,

    Thank you for your answer, I will try to implement your solution.

    best regards
  • Great Mark!

    It works, your solution have solved my issued. The problem I got right now is on the library

    "c:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="../../../include" --include_path="C:/c55_lp/evm5517_EVM_BSL_revb/evm5517_v1/lib" --include_path="C:/c55_lp/evm5517_EVM_BSL_revb/evm5517_v1/include" --include_path="c:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --define=c5517 --diag_warning=225 --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"

    'Finished building: ../main.c'

    ' '

    'Building target: aic3204-1.out'

    'Invoking: C5500 Linker'

    "c:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --define=c5517 --diag_warning=225 --ptrdiff_size=32 -z -m"aic3204-1.map" --stack_size=0x200 --heap_size=0x400 -i"c:/ti/ccsv6/tools/compiler/c5500_4.4.1/lib" -i"c:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" -i"../../../lib" --reread_libs --warn_sections --xml_link_info="aic3204_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "aic3204-1.out"  "./aic3204_loop_mic_in.obj" "./aic3204_loop_stereo_in1.obj" "./aic3204_loop_stereo_in2.obj" "./aic3204_test.obj" "./aic3204_tone_headphone.obj" "./aic3204_tone_stereo_out.obj" "./main.obj" "../C5517.cmd" -l"libc.a" -l"evm5517bsl.lib"

    <Linking>

    error: cannot find file "evm5517bsl.lib"

     

    But this file, was included on include_path="C:/c55_lp/evm5517_EVM_BSL_revb/evm5517_v1/lib . 

     

    Where should I copy other import this library so I can compile my project, and avoid this error?

     

    Thank you in Advance!

     

     

  • CSL3.04 is developed and verified with Windows 7 and CCS5. I personally use Windows 7 and CCS5 while my colleagues use Windows 7 with CCS5 and CCS6.
    Regards.
  • Hi,

    Can you ensure the library path provided in C5500 linker option is correct.

    To do this rightclick on projects go to Properties-> C5500 linker -> File search path - Here ensure the library path is correctly mentioned.

    Hope the above helps.

    Regards

    Vasanth