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.

CCS/TMS320C5545: C5545 BoosterPack Build Problem

Part Number: TMS320C5545

Tool/software: Code Composer Studio

Dear Support:

I am using the C5545 BoosterPack and trying to follow the build process as described in the Software Users Guide and running into problems building the example described in Secion 3.2.3.2.  When trying to build the c55AudioDemo project as called out in these steps, I am able to build the libraries ok (i.e., atafs_bios_drv.lib, C55XXCSL_LP, and TIesrEngineC55) although the project TIesrEngineC55 was not referenced in the documentation, but I figured it out.  I had some issues getting these libraries to build successfully, but they were fairly minor.  However when building the final project "c55AudioDemo", it fails with the following error:

<Linking>

fatal error #16004: file
"C:/ti/c55_lp/c55_csl_3.06/ccs_v6.x_examples/drv/atafs/atafs_bios_drv_lib/Re
lease/atafs_bios_drv_lib.lib<ata_fileinit.obj>" has a Tag_Memory_Model
attribute value of "2" that is different than one previously seen ("3");
combining incompatible files
gmake: *** [c55AudioDemo.out] Error 1
gmake: Target 'all' not remade because of errors.

I have checked the Project properties of the different libraries relative to the final project and don't see any differences.  And I followed the directions in the SW Users Manual correctly.  One issue is that the "device+ optional revision of target silicon (--silicon_version, -v)" option in the Build->C5500 Compiler->Processor Options is set to "5515" for the "atafs_bios_drv_lib", c55AudioDemo", and "C55XXCSL_LP", but for "TIesrEngineC55" is set to "cpu:3.3".  Do you know why this is set this way?  And your thoughts as to what is causing the linking problem I am having above?

Thanks,
Tim

  • Dear Support:

    One more issue, when I pull in other projects from the C5545 BP Software examples, the processor Variant in the General tab of the Properties window is "TMS320C55XX, TMS320C5545" which errors indicating that there is no match. So to fix this, I choose the other option of "Custom C5500 Device", so it removes the error, but not sure this is the right thing to do. Why can't I just choose CC5545 from this drop-down selection?

    Tim
  • Dear Support:

    I got over this "Custom C5500 Device" problem by just installing the latest CC5500 device support so that I could choose a "CC5545" device. I went back and selected CC5545 and rebuilt for all the libraries and the project, but it's still failing with the linker error above. It looks like there is a problem with the .cmd file that is being used in the c55AudioDemo project. See the .cmd file that is in this project below:

    SECTIONS
    {
    .text : > SARAM
    .switch : > SARAM
    .bss : > DARAM
    .cinit : > SARAM
    .pinit : > SARAM
    .const : > DARAM
    .data : > DARAM
    .cio : > SARAM

    .printf : > SARAM

    /* grammar data */
    /* .grammar_data : > SARAM */
    .gd_config : > SARAM
    .gd_dim : > SARAM
    .gd_gconst : > SARAM
    .gd_hmm : > SARAM
    .gd_mixture : > SARAM
    .gd_mu : > DARAM //SARAM
    .gd_net : > SARAM
    .gd_pdf : > SARAM
    .gd_tran : > SARAM
    .gd_var : > SARAM
    .gd_word : > SARAM
    .waveData : > SARAM
    MP3_DARAM_HEAP : > DARAM

    .charrom > Char_ROM
    }


    which doesn't look right. Can someone try to do this exercise and see if they are experiencing the same problem I am getting. BTW - other projects like "uart_test", "led_test", "oled_display_test", etc are building ok - just having a problem with this c55AudioDemo project that is coming with the examples download. Please advise.

    Thanks,
    Tim
  • Tim,

    Please see page 12 of www.ti.com/.../sprui92.pdf (C5545 BoosterPack Software).
    The memory model for the dependent packages must have the correct settings. The .cmd file is fine.

    I assume your csl_general.h in C55XXCSL_LP has the correct macro for the C5545BP as well.

    Lali
  • Hey Lali:

    Please see attached the csl_general.h file that I am using.  I have followed the directions on page 12 of the sprui92.pdf document and they all libraries and project  have the same property settings:

    Poperties->CCS Build->C5500 Compiler->Processor Options->Specify memory model (small/large/huge) - set to "huge"

    Poperties->CCS Build->C5500 Compiler->AdvancedOptions->RunTime Model Options->Specify type size to hold results of pointer math = 32

    Please let me know if I am missing anything.  Are you able to follow these directions and build this successfully?  Strangely I am able to build "led_test", "uart_test", "audio_line_in_loopback_test", etc successfully.  Just having a problem with this c55AudioDemo project.  Please advise.

    Thanks,
    Tim

    csl_general.h

  • Hi Tim,

    Yes, I was able to build it. I just took a look at the csl_general.h that you provided and it matches the one I'm using.

    I have a feeling what's tripping you up are build profiles.

    When you adjusted the memory model settings in the various dependent projects, were you doing that in the RELEASE profile of that particular project?

    The c55AudioDemo Project uses the RELEASE profiles of C55XXCSL_LP and atafs_bios_drv_lib. NOT Debug.

  • Hey LaLi:

    Thanks for your response and an excellent catch - yes you are correct, it was using the Release. Thanks for bringing that to my attention. I modified the references to use the Debug and rebuilt and now the issue is more linker .cmd file related:

    <Linking>
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 6: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".cinit" size 0x10ce page 0. Available
    memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 20: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".gd_mixture" size 0x4c6 page 0.
    Available memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 12: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".printf" size 0x2e8 page 0. Available
    memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "./c55AudioDemocfg.cmd", line 315: error #10099-D: program will not fit into
    available memory. placement with alignment/blocking fails for section
    ".sysinit" size 0x2c6 page 0. Available memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 24: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".gd_tran" size 0x256 page 0.
    Available memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 10: error #10099-D:
    program will not fit into available memory. run placement with
    alignment/blocking fails for section ".cio" size 0x240 page 0. Available
    memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 18: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".gd_gconst" size 0x148 page 0.
    Available memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 19: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".gd_hmm" size 0x122 page 0. Available
    memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 4: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".switch" size 0xe4 page 0. Available
    memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 23: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".gd_pdf" size 0xb8 page 0. Available
    memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 26: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".gd_word" size 0x36 page 0. Available
    memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    "C:/TI/c55_lp/c5545bp_software_01.01.00.00/source_code/c5545bp_audio_demo/build/c55xx.cmd", line 16: error #10099-D:
    program will not fit into available memory. placement with
    alignment/blocking fails for section ".gd_config" size 0x6 page 0.
    Available memory ranges:
    SARAM size: 0x3e000 unused: 0x0 max hole: 0x0
    error #10010: errors encountered during linking; "c55AudioDemo.out" not built

    >> Compilation failure
    makefile:185: recipe for target 'c55AudioDemo.out' failed
    gmake: *** [c55AudioDemo.out] Error 1
    gmake: Target 'all' not remade because of errors.

    I amusing the c55xx.cmd file that came with the project. Does this make any sense to you? Do you have a working .cmd file that you can send me that I can try out to see if that fixes the problem?

    Thanks,
    Tim
  • Tim,

    That's strange. I'm using the .cmd located at:

    \c5545bp_software_01.01.00.00\source_code\c5545bp_audio_demo\build\c55xx.cmd

    Do you have an additonal .cmd specified in the c55AudioDemo project properties Linker command file field?

    I have also attached one.

    Sorry for the trouble you are encountering. I would like to take some notes on your user experience once we are done to see what we can improve.

    ./cfs-file/__key/communityserver-discussions-components-files/791/1185.c55xx.cmd

    Lali

  • Hey LaLi:

    Thanks for your response. Yes, that I did a Beyond Compare on the .cmd file you sent me with the one that I am using and it is an exact match. No I don't have an additional linker command file in the "Linker command file" field of Properties->CCS General, that field is blank and I only have the c55xx.cmd file specified in the project. User experience? - boy that would not be a good question to ask me right now. :-) Your thoughts on what I could be doing wrong? Perhaps I zip up the project and send it to you? Your thoughts?

    Thanks,
    Tim
  • Tim,
    Send over your project and I will take a look.
    Stumped why you are seeing this considering that you are using the components in the package.

    Lali
  • Hey Lali:

    Ok, just emailed it to you. Please let me know what you find out.

    Thanks,
    Tim
  • Just to tie-off on the offline conversation.
    Please ensure that the dependent projects such as atafs_bios_drv_lib and C55XXCSL_LP are set to "Release" mode. Otherwise, the above mentioned linker errors will be seen.

    Lali