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.

UNable to blink leds on tms320c5535 ezdsp using ccs studio 5.50

I am able to blink the lights using CSS 4.2.4 and also allowed to listen to music using other usb port but when I import the led project from css 4.2.4 using existing code composer studio in css 5 I am allowed to import the project and i test the target and it works ok  but when i go and build the led project i get the following error.

*** Clean-only build of configuration Debug for project led ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k clean

DEL /F  "led.out"

Could Not Find C:\Texas Instruments\ccsv4\emulation\boards\ezdsp5535_v1\tests\led\Debug\led.out

DEL /F ".\led_test.obj" ".\main.obj"

Could Not Find C:\Texas Instruments\ccsv4\emulation\boards\ezdsp5535_v1\tests\led\Debug\led_test.obj

DEL /F ".\led_test.pp" ".\main.pp"

Could Not Find C:\Texas Instruments\ccsv4\emulation\boards\ezdsp5535_v1\tests\led\Debug\led_test.pp

' '

**** Build Finished ****

Buildfile generation error occurred..

Build-configuration 'Debug' does not exist in the referenced project 'ezdsp5535bsl'. Use the 'Properties > Build > Dependencies' page to select an existing build-configuration.

Build stopped..

 

 

If you could provide some insight I really like to use ccs5 to use my 320 development platform

 

thanks in advance

 

regards,

 

Jeff

  • Hi Jeff,

    In your condition, some project files seem to be missing. One immediate solution that I can give you is to import an example code (please check that it has not been altered/modified) and paste your implementation.

    This would ensure that your project would have all the above files.

    Regards,

    Gautam

  • Hi Gautam,

     

    You have the right idea and that is exactly what i did I imported the led example from css4 to css5 and i still get this error.  Would it be better to start from scratch in ccs 5 and write the code by creating a new project and starting from there.  I seen before that import export utilities do not work as they should be in other programs :-)

    Best Regards,

    Tim

     

  • Tim,

    It looks like the original led project had a project dependency on the ezdsp5535bsl project. Did you import that project into v5 also?

    Thanks

    ki

  • hey ki ,

     

    the ezdsp5535bsl is a lib in the ccsv4  this is a simple led blink of the board  I check out the files that are supposed to be in the following path and they are not there   You can search the path for both ccs4 and ccs5 and these file can not be found are they generated at runtime. and the bsl file is lib file but has a directory named bsl you can check this if you like below is the following message i get when i build the project.thanks for all your help.  jeff tim is my brother

    I am able to blink the lights using CSS 4.2.4 and also allowed to listen to music using other usb port but when I import the led project from css 4.2.4 using existing code composer studio in css 5 I am allowed to import the project and i test the target and it works ok  but when i go and build the led project i get the following error.

    *** Clean-only build of configuration Debug for project led ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k clean

    DEL /F  "led.out"

    Could Not Find C:\Texas Instruments\ccsv4\emulation\boards\ezdsp5535_v1\tests\led\Debug\led.out

    DEL /F ".\led_test.obj" ".\main.obj"

    Could Not Find C:\Texas Instruments\ccsv4\emulation\boards\ezdsp5535_v1\tests\led\Debug\led_test.obj

    DEL /F ".\led_test.pp" ".\main.pp"

    Could Not Find C:\Texas Instruments\ccsv4\emulation\boards\ezdsp5535_v1\tests\led\Debug\led_test.pp

    ' '

    **** Build Finished ****

    Buildfile generation error occurred..

    Build-configuration 'Debug' does not exist in the referenced project 'ezdsp5535bsl'. Use the 'Properties > Build > Dependencies' page to select an existing build-configuration.

    Build stopped..

    If you could provide some insight I really like to use ccs5 to use my 320 development platform

    thanks in advance

    regards,

    Jeff

     

  • Jeff,

    There is some project dependency setup. This message indicates this:

    Jeff Moran said:
    Build-configuration 'Debug' does not exist in the referenced project 'ezdsp5535bsl'. Use the 'Properties > Build > Dependencies' page to select an existing build-configuration.

    It is looking for a project of that name in the workspace and trying to build the 'Debug' configuration for it. If you have the lib and do not need to rebuild it, remove the project dependency. This will eliminate the build error.

  • ki-soo lee,

     

    thank you for your responses you are very generous.  This is what i have done I have two projects one led that i imported from css4 and getting the error message that i have been displaying. so i build another project called led2 i placed the headers from css4 into the css5 project and copied the code both main and led_test.c into the project.now in the ccs5 project I build the project and i pass the build stage with out any ezdsp5535bdl errors but I do get the following linking error if you have any insight as why i get this error I really appreciated it.

    **** Build of configuration Debug for project LED2 ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all

    'Building target: LED2.out'

    'Invoking: C5500 Linker'

    "C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --define=c5535 --display_error_number --diag_warning=225 --ptrdiff_size=16 -z -m"LED2.map" --stack_size=0x200 --heap_size=0x400 -i"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/lib" -i"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --reread_libs --display_error_number --warn_sections --xml_link_info="LED2_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "LED2.out"  "./main.obj" "./led_test.obj" "../C5535.cmd" -l"libc.a"

    <Linking>

    "../C5535.cmd", line 69: error #10099-D: program will not fit into available

       memory.  placement with alignment/blocking fails for section ".text" size

       0x4158 page 0.  Available memory ranges:

       DARAM1       size: 0x2000       unused: 0x2000       max hole: 0x2000   

    undefined             first referenced

      symbol                   in file    

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

    _EZDSP5535_LED_init   ./led_test.obj 

    _EZDSP5535_LED_off    ./led_test.obj 

    _EZDSP5535_LED_on     ./led_test.obj 

    _EZDSP5535_LED_setall ./led_test.obj 

    _EZDSP5535_XF_toggle  ./led_test.obj 

    _EZDSP5535_init       ./main.obj     

    _EZDSP5535_waitusec   ./led_test.obj 

    error #10234-D: unresolved symbols remain

    error #10010: errors encountered during linking; "LED2.out" not built

    >> Compilation failure

    gmake: *** [LED2.out] Error 1

    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    Regards,

     

    JEFF

  • Jeff Moran said:

    "../C5535.cmd", line 69: error #10099-D: program will not fit into available

       memory.  placement with alignment/blocking fails for section ".text" size

       0x4158 page 0.  Available memory ranges:

       DARAM1       size: 0x2000       unused: 0x2000       max hole: 0x2000   

    See: http://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/10099

    Basically your code is too big to fit in DARAM1. You will need to place it elsewhere or break it up.

    Jeff Moran said:

    undefined             first referenced

      symbol                   in file    

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

    _EZDSP5535_LED_init   ./led_test.obj 

    _EZDSP5535_LED_off    ./led_test.obj 

    _EZDSP5535_LED_on     ./led_test.obj 

    _EZDSP5535_LED_setall ./led_test.obj 

    _EZDSP5535_XF_toggle  ./led_test.obj 

    _EZDSP5535_init       ./main.obj     

    _EZDSP5535_waitusec   ./led_test.obj 

    error #10234-D: unresolved symbols remain

    error #10010: errors encountered during linking; "LED2.out" not built

    See: http://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/10234

    Sounds like you are missing the BSL library. The one that gets generated from ezdsp5535bsl.

    Thanks

    ki

  • FYI, if there is no memory range large enough for your .text section, you can try the suggestion by Rafael at the end of a related thread:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/215845/761954.aspx#761954

    Thanks

    ki

  • Gautam,

     

    I found the missing library in a cc4 folder that is a project called  ezdsp5535bdl.lib.  In cc4 the project is referenced in the properties of the project.  you can find this reference under properties --> refercences and there is a check mark under ezdsp5535bdl.lib  It appears that cc4 puts all projects under this property section and allows you to do reference other projects within an active project it is a very powerful way to code.  Now I'm in CCs5 and I can't find this way of referencing projects under properties.  Do you know if cc5 supports this way  of coding if so how to you reference the other project.  I understand how to reference other includes and I know cc5 supports this any ideas will be appreciated

    thanks in advance

     

    JEFF

     

  • Hi Jeff,

    See:

    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Project_Dependencies

    Since you seem new to the project and build environment to CCSv5, I suggest reading the entire Project and Build Handbook. It is an excellent guide that covers the topic in good detail.

    Thanks

    ki