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.

Problem using USBSTK5505 functions

In the LED test code, there are some functions I'd like to use in another project. Namely, USBSTK5505_LED_off, USBSTK5505_LED_on and USBSTK5505_LED_get. I include the header files, but when I try to compile, I get the following error:

**** Build of configuration Debug for project CSL_GPTExampale_Out ****

C:\TI\ccsv4\utils\gmake\gmake -k all
'Building target: CSL_GPTExampale_Out.out'
'Invoking: Linker'
"C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/bin/cl55" -g --define="_DEBUG" --diag_warning=225 --large_memory_model --algebraic --asm_source=algebraic -z -m"CSL_GPTExampale_Out.map" --warn_sections -i"C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/lib" -i"C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/include" -i"C:/TI/bios_5_41_10_36/packages/ti/rtdx/lib/c5500" -i"C:/TI/bios_5_41_10_36/packages/ti/bios/lib" -i"C:/ee410/C5505_CSL_Rel_1.1_CCS40/VC5505_CSL/cslVC5505" -i"C:/ee410/CSL_GPTExampale_Out" -i"/lib" --reread_libs --rom_model -o "CSL_GPTExampale_Out.out"  "./csl_gpt_examaple.obj" -l"Debug/cslVC5505_Lib.lib" -l"rts55x.lib" "../VC5505_GPT.cmd"
<Linking>

 undefined           first referenced     
  symbol                 in file          
 ---------           ----------------     
 _USBSTK5505_LED_get ./csl_gpt_examaple.obj
 _USBSTK5505_LED_off ./csl_gpt_examaple.obj
 _USBSTK5505_LED_on  ./csl_gpt_examaple.obj

error: unresolved symbols remain
error: errors encountered during linking; "CSL_GPTExampale_Out.out" not built

>> Compilation failure
gmake: *** [CSL_GPTExampale_Out.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project CSL_GPTExampale_Out

What else do I need to make these functions usable? I cannot find references to them in the API documentation.

  • Hi Tim,

    I believe those undefined symbols are stored in Spectrum Digital's Board Support Library (BSL) for the eZdsp: usbstk5505_v1\lib\usbstk5505bsl.lib (located in the directory where you extracted the board's projects, etc.)

    And the include files are under usbstk5505_v1\include\

    You can add the path to the library and include files from the Project Build Properties in CCS4. You might also be able to drag the files into the project.

    Let us know if you have any issues.

    Regards,
    Mark

  • I have downloaded and extracted the usbstk5505_v1 package, and put \usbstk5505_v1\lib in the lib search path, usbstk5505_v1\include into the include search path, put usbstk5505_v1\lib\usbstk5505bsl.lib as an included library file, copied usbstk5505.c and usbstk5505_led.c into the project directory, and I get new errors.

    **** Build of configuration Debug for project CSL_GPTExampale_Out ****

    C:\TI\ccsv4\utils\gmake\gmake -k all
    'Building file: ../csl_gpt_examaple.c'
    'Invoking: Compiler'
    "C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/bin/cl55" -g --define="_DEBUG" --include_path="C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/include" --include_path="C:/ee410/usbstk5505_v1/include" --include_path="C:/TI/ccsv4/emulation/boards/usbstk5505_v2/c55xx_csl/inc" --include_path="C:/ee410/CSL_GPTExampale_Out/Debug" --include_path="C:/TI/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/TI/bios_5_41_10_36/packages/ti/rtdx/include/c5500" --include_path="C:/TI/xdais_6_25_01_08/packages/ti/xdais" --include_path="C:/ee410/C5505_CSL_Rel_1.1_CCS40/VC5505_CSL/example/inc" --include_path="C:/ee410/C5505_CSL_Rel_1.1_CCS40/VC5505_CSL/inc" --diag_warning=225 --large_memory_model --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="csl_gpt_examaple.pp"  "../csl_gpt_examaple.c"
    "../csl_gpt_examaple.c", line 45: warning: function declared implicitly
    "../csl_gpt_examaple.c", line 49: error: too few arguments in function call
    "../csl_gpt_examaple.c", line 54: error: too few arguments in function call

    "../csl_gpt_examaple.c", line 228: warning: statement is unreachable
    >> Compilation failure
    2 errors detected in the compilation of "../csl_gpt_examaple.c".
    gmake: *** [csl_gpt_examaple.obj] Error 1
    'Building file: ../usbstk5505.c'
    'Invoking: Compiler'
    "C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/bin/cl55" -g --define="_DEBUG" --include_path="C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/include" --include_path="C:/ee410/usbstk5505_v1/include" --include_path="C:/TI/ccsv4/emulation/boards/usbstk5505_v2/c55xx_csl/inc" --include_path="C:/ee410/CSL_GPTExampale_Out/Debug" --include_path="C:/TI/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/TI/bios_5_41_10_36/packages/ti/rtdx/include/c5500" --include_path="C:/TI/xdais_6_25_01_08/packages/ti/xdais" --include_path="C:/ee410/C5505_CSL_Rel_1.1_CCS40/VC5505_CSL/example/inc" --include_path="C:/ee410/C5505_CSL_Rel_1.1_CCS40/VC5505_CSL/inc" --diag_warning=225 --large_memory_model --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="usbstk5505.pp"  "../usbstk5505.c"
    'Finished building: ../usbstk5505.c'
    ' '
    'Building file: ../usbstk5505_led.c'
    'Invoking: Compiler'
    "C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/bin/cl55" -g --define="_DEBUG" --include_path="C:/TI/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/include" --include_path="C:/ee410/usbstk5505_v1/include" --include_path="C:/TI/ccsv4/emulation/boards/usbstk5505_v2/c55xx_csl/inc" --include_path="C:/ee410/CSL_GPTExampale_Out/Debug" --include_path="C:/TI/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/TI/bios_5_41_10_36/packages/ti/rtdx/include/c5500" --include_path="C:/TI/xdais_6_25_01_08/packages/ti/xdais" --include_path="C:/ee410/C5505_CSL_Rel_1.1_CCS40/VC5505_CSL/example/inc" --include_path="C:/ee410/C5505_CSL_Rel_1.1_CCS40/VC5505_CSL/inc" --diag_warning=225 --large_memory_model --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="usbstk5505_led.pp"  "../usbstk5505_led.c"
    "C:\Users\shonen\AppData\Local\Temp\0256410", ERROR!   at line 142:
     [E0000]
             parse error
         bset XF
        ^      
    "C:\Users\shonen\AppData\Local\Temp\0256410", ERROR!   at line 213:
     [E0000]
             parse error
         bclr XF
        ^      

    2 Assembly Errors, No Assembly Warnings
    Errors in Source - Assembler Aborted

    >> Compilation failure
    gmake: *** [usbstk5505_led.obj] Error 1
    gmake: Target `all' not remade because of errors.
    Build complete for project CSL_GPTExampale_Out

     

  • Hi, have you been able to solve this?

    Try to change your assembly source language (--asm_source) to mnemonic instead of algebraic. BCLR XF and BSET XF are mnemonic notations. Let me know how this works for you. 

  • I was able to fix this...I did not change the asm source language, but rather updated everything, rechecked the include and library paths, and it started working.

  • That's good to hear! 

    Closing this thread. 

  • Hi, can you elobrate " updated everything"  in your last message? because even i am facing the same issue.  

  • Hi Nishanth,

    Can you paste the compiler log showing the error you are seeing?

    Regards,
    Mark