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.

Migrating Example projects from dsplib to ccsv4

Other Parts Discussed in Thread: TMS320VC5505, SPRC100

HI,

I have recently got hold of a TMS320vC5505 ezdsp usb and am having problems importing legacy projects from dsplib, after importing the legacy project from the dsp lib when I try to buil it I get the following error:

>> ERROR: Only --ptrdiff_size=16 is allowed for small memory model
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [C:/TiDoc/c55dsplib/dsplib/EXAMPLES/sqrtv/Debug/TEST.obj] Error 1
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

this happens for all examples any solutions for this issue?

If I change the memory model to large I get the following error:

fatal error: file
   "C:/Users/aimtias/Documents/workspace/sprc100/dsplib_2.40.00/EXAMPLES/sqrtv/
   ../../55xdsp.lib<sqrtv.obj>" specifies small memory model, which is not
   compatible with large memory model specified in a previous file or on the
   command line

Thanks in advance.

  • Hi Ali,

    Please see this article:

    http://processors.wiki.ti.com/index.php/DSPLIB#Q:_How_can_I_rebuild_the_DSPLIB_v2.40.00_library_for_a_newer_CPU_rev._3.x.3F

    Using these instructions, make sure to use --memory_model=large

    You could also compile your project for the small memory model, and in the Build Properties, change ptrdiff_size to 16:

    Hope this helps,
    Mark

  • Thanks for your respnse Mark I used the batch file described and the memry model accordingly however I am getting the following error now:

    "C:/TiDoc/c55dsplib/dsplib/EXAMPLES/iir32/Debug/Iir32_t.obj" -l"55xdsp.lib" "../55x.cmd" "../55xdsp.lib"
    <Linking>
    warning: archive symbol directory is missing from archive
       "C:/Users/aimtias/Documents/workspace/sprc100/dsplib_2.40.00/EXAMPLES/iir32/
       55xdsp.lib"
    warning: archive symbol directory is missing from archive
       "C:/Users/aimtias/Documents/workspace/sprc100/dsplib_2.40.00/EXAMPLES/iir32/
       55xdsp.lib"
    warning: creating ".stack" section with default size of 0x3e8; use the -stack
       option to change the default size
    warning: creating ".sysstack" section with default size of 0x3e8; use the
       -sysstack option to change the default size

     undefined first referenced                                          
      symbol       in file                                               
     --------- ----------------                                          
     _iir32    C:/TiDoc/c55dsplib/dsplib/EXAMPLES/iir32/Debug/Iir32_t.obj

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

    any idea what causes this.

    Thanks in advance.

  • Ali Imtiaz said:

    warning: archive symbol directory is missing from archive

       "C:/Users/aimtias/Documents/workspace/sprc100/dsplib_2.40.00/EXAMPLES/iir32/
       55xdsp.lib"

    This warning usually means the library is empty.  It could also mean that it is corrupted.