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/TMS320VC5509A: error after build all

Part Number: TMS320VC5509A

Tool/software: Code Composer Studio

www.raspberrypi.org/.../viewforum.php

Hi all
I have download dsplib v3.00 and imported "add" example from EXAMPLES directory.
I can’t debug the project.
When I debug the project a popup window appears with this error:

And also console output:
C55xx: GEL Output: C5509_Init Complete.
C55xx: GEL Output: Gel StartUp Complete.
C55xx: GEL: Encountered a problem loading file: C:\Users\sadeq\workspace_v5_3\add\Release\add.out Could not open file

And the build console when I “build all” is like this:

**** Build of configuration Release for project add ****

"D:\\ti\\ccsv5\\utils\\bin\\gmake" -k all 
'Building file: ../ADD_T.C'
'Invoking: C5500 Compiler'
"D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=small -O2 --include_path="D:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --define=c5509a --display_error_number --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="ADD_T.pp" "../ADD_T.C"
>> ERROR: Only --ptrdiff_size=16 is allowed for small memory model
gmake: *** [ADD_T.obj] Error 1
'Building file: ../DSPro5509Init.cpp'
'Invoking: C5500 Compiler'
"D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=small -O2 --include_path="D:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --define=c5509a --display_error_number --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="DSPro5509Init.pp" "../DSPro5509Init.cpp"
>> ERROR: Only --ptrdiff_size=16 is allowed for small memory model
gmake: *** [DSPro5509Init.obj] Error 1
'Building file: ../DSPro5509InitASM.ASM'
'Invoking: C5500 Compiler'
"D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=small -O2 --include_path="D:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --define=c5509a --display_error_number --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="DSPro5509InitASM.pp" "../DSPro5509InitASM.ASM"
>> ERROR: Only --ptrdiff_size=16 is allowed for small memory model
gmake: *** [DSPro5509InitASM.obj] Error 1
'Building file: ../TEST.C'
'Invoking: C5500 Compiler'
"D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=small -O2 --include_path="D:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --define=c5509a --display_error_number --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="TEST.pp" "../TEST.C"
>> ERROR: Only --ptrdiff_size=16 is allowed for small memory model
gmake: *** [TEST.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

I test huge memory model but there isn’t any change
I use texas instruments simulator
Thanks for your assists everybody

  • Hi,

    I've notified the sw team. They will post thier feedback directly here.

    Best Regards,
    Yordan
  • Sadeq,

    Please try changing the --ptrdiff_size in your project to 16 as shown below and rebuild

    Lali

  • thanks for replying

    I made the changes and recived error below.


    **** Build of configuration Debug for project add ****

    "D:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: C:/Users/sadeq/workspace_v5_3/add/ADD_T.C'
    'Invoking: C5500 Compiler'
    "D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=small -g --include_path="D:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/Users/sadeq/workspace_v5_3/add/include" --include_path="C:/Users/sadeq/include" --define="_DEBUG" --define=c5509a --quiet --display_error_number --sat_reassoc=off --ptrdiff_size=16 --fp_reassoc=off --algebraic --obj_directory="C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug" --preproc_with_compile --preproc_dependency="ADD_T.pp" "C:/Users/sadeq/workspace_v5_3/add/ADD_T.C"
    'Finished building: C:/Users/sadeq/workspace_v5_3/add/ADD_T.C'
    ' '
    'Building file: C:/Users/sadeq/workspace_v5_3/add/TEST.C'
    'Invoking: C5500 Compiler'
    "D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=small -g --include_path="D:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/Users/sadeq/workspace_v5_3/add/include" --include_path="C:/Users/sadeq/include" --define="_DEBUG" --define=c5509a --quiet --display_error_number --sat_reassoc=off --ptrdiff_size=16 --fp_reassoc=off --algebraic --obj_directory="C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug" --preproc_with_compile --preproc_dependency="TEST.pp" "C:/Users/sadeq/workspace_v5_3/add/TEST.C"
    'Finished building: C:/Users/sadeq/workspace_v5_3/add/TEST.C'
    ' '
    'Building target: C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug/add.out'
    'Invoking: C5500 Linker'
    "D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=small -g --define="_DEBUG" --define=c5509a --quiet --display_error_number --sat_reassoc=off --ptrdiff_size=16 --fp_reassoc=off --algebraic --obj_directory="C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug" -z -m"C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug/add.map" --stack_size=0x200 --heap_size=0x400 -i"D:/ti/ccsv5/tools/compiler/c5500_4.4.1/lib" -i"C:/Users/sadeq/workspace_v5_3/add/lib" -i"C:/Users/sadeq/build/ccsv5/Debug" --reread_libs --display_error_number --warn_sections --rom_model --sys_stacksize=0x200 -o "C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug/add.out" "./TEST.obj" "./ADD_T.obj" -l"DSPlib.lib" -l"rts55.lib"
    fatal error #16004: file
    "C:/Users/sadeq/workspace_v5_3/add/lib/DSPlib.lib<add.obj>" has a
    Tag_Memory_Model attribute value of "3" that is different than one
    previously seen ("1"); combining incompatible files

    >> Compilation failure
    gmake: *** [C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug/add.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    I attempt to solve it by changing diffrents runtime support library (in my case "huge" because DSPlib.lib has a huge Tag Memory Model. also i change runtime model options appropriately) when i set memory model to huge another error apears:

     

    "D:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: C:/Users/sadeq/workspace_v5_3/add/ADD_T.C'
    'Invoking: C5500 Compiler'
    "D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=huge -g --include_path="D:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/Users/sadeq/workspace_v5_3/add/include" --include_path="C:/Users/sadeq/include" --define="_DEBUG" --define=c5509a --quiet --display_error_number --ptrdiff_size=32 --obj_directory="C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug" --preproc_with_compile --preproc_dependency="ADD_T.pp" "C:/Users/sadeq/workspace_v5_3/add/ADD_T.C"
    >> ERROR: Huge memory model not supported for CPU revisions 1 or 2
    gmake: *** [ADD_T.obj] Error 1
    'Building file: C:/Users/sadeq/workspace_v5_3/add/TEST.C'
    'Invoking: C5500 Compiler'
    "D:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5509A --memory_model=huge -g --include_path="D:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/Users/sadeq/workspace_v5_3/add/include" --include_path="C:/Users/sadeq/include" --define="_DEBUG" --define=c5509a --quiet --display_error_number --ptrdiff_size=32 --obj_directory="C:/Users/sadeq/workspace_v5_3/add/ccsv5/Debug" --preproc_with_compile --preproc_dependency="TEST.pp" "C:/Users/sadeq/workspace_v5_3/add/TEST.C"
    >> ERROR: Huge memory model not supported for CPU revisions 1 or 2
    gmake: *** [TEST.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    thanks alot

  • Sadeq,
    Memory compatibility errors.
    Could you try with the large memory model across?

    The readme located at C:\c55_lp\c55_dsplib_3.00\c55_dsplib_03.00.00.03\readme.txt says the following

    ================================================================================
    6. Installation Guide
    ================================================================================

    (1) The Windows Batch Files (.bat) provided are set up to build the C55_DSPLIB with different memory models:

    * Blt55x_r3.bat - small memory model
    * Blt55xh_r3.bat - huge memory model
    * Blt55xx_r3.bat - large memory model

    (2) Running the DSPLIB using Code Composer v5.2 or later:

    Each example has the configurations for both CCS v3.3 and CCS v5.2.
    With the Code Composer Window open, import the desired example along with the project dsplib under the build directory.
    Every example is dependent on the library, so building any or all of the projects will call the dsplib project, and therefore, build the library.
    The default settings for the examples and the dsplib project are for the huge memory model. The settings can be changed on the configurations of each project.

    Lali
  • thanks

    yes i test it with large memory model but it didn't work. I change the device model to "USBSTK5515" and problem solved. I think 5509 is not supporting the huge memory model. but there is a new error comes out in debugging  and its:

    Can't find a source file at "/tmp/TI_MKLIBNhUOhW/SRC/exit.c"
    Locate the file or edit the source lookup path to include its location.

  • Sadeq,

    That error isn't very descriptive.
    Does this error occur during run-time? Can you put break points in your code to see where it fails?

    Lali
  • thanks for your patient Lali

    I don't set any breakpoint and its not occur during run-time. it's happened on the beginning of the run time. By the way i just ignore it and everything is just fine. how ever it seems this library (dplib) is use less for cv5509 because 5509 has not supporting huge memory model.

    Is there any way to use this library for 5509 processor? for instance change memory model in "dsplib.lib" file from huge to large or small memory model?