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.

DSPLIB With C5535

Other Parts Discussed in Thread: TMS320C5535

Hi,

I'm trying to make DSPLIB to work with the C5535 chip on the TMS320C5535.

Using the distributed version of DSPLIB :

fatal error #16020: file
 "C:/ti/ccsv5/tools/compiler/c5500_4.4.1/lib/55xdspx.lib<cbrev.obj>"
>> Compilation failure
   specifies "C55x CPU Rev 2.x", which is not compatible with "C55x CPU Rev
   3.x" specified in a previous file or on the command line

And that's only when I try to compile in "large" memory mode, since DSPLIB is not even distributed with a "huge" memory mode.

If I try to rebuild DSPLIB using this script :

set CGT_BIN=C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin
set PATH=%PATH%;%CGT_BIN%

set OPTIONS= -g -vcpu:3.3 --memory_model=huge --ptrdiff_size=32

set DSPLIB=55xdspx
set SRC=55x_src
set FILES= *.asm
set EXT=asm

del %DSPLIB%.src
del %DSPLIB%.lib
cd %SRC%
del *.obj

cl55 %OPTIONS% %FILES%

ar55 -r %DSPLIB%.src *.%EXT% ..\include\*.h
ar55 -r %DSPLIB%.lib *.obj
copy %DSPLIB%.src ..
copy %DSPLIB%.lib ..
del *.src
del *.lib
dir *.obj >> ..\junk.txt
del *.obj

cd ..

Then I get the following error :

C:\ti\dsplib_2.40.00\55x_src>cl55  -g --memory_model=large  *.asm
[abias.asm]
>> ERROR: cannot run masm55 - invalid argument mode

I get the same error with other variations of the "set OPTIONS" line (such as "set OPTIONS= -g -v5515 --memory_model=huge --ptrdiff_size=32" or "set OPTIONS= -g -vcpu:3.3 --memory_model=large")

Is there a simple way to use DSPLIB or DSPLIB-like functionality (fft etc.) with CCS 5.1 and the C5535 ?

Many thanks

  • Hi Adrian,

    I copied your script from above and pasted it into a .bat file within my DSPLIB directory. It runs without error for me. I tried both CGT 4.3.9 and 4.4.1...

    Any way, you can easily copy or link to the .asm files that you need out of the library

    For example, cfft32...

    1) From CCS, Import Legacy CCSv3.3 Project... select dsplib_2.40.00\EXAMPLES\cfft32\cfft32.pjt

    2) Right click on project, Add link... select cbrev32.asm and then cfft32_noscale.asm (located in dsplib_2.40.00\55x_src)

    3) Rebuild project...

    Hope this helps,
    Mark

  • Hi Mark,

    Thanks for your answer.

    I tried again to rebuild DSPLIB using the script, without success.
    I tried various configurations but I always get the same error mentioned in the OP:

     ERROR: cannot run masm55 - invalid argument mode

    I use Windows 7, ccs4.1 (I tried also with CGT from ccs5 and I get the same error)
    I ended up using the bundled version with a large memory model.

  • Are you able to try this on a Windows XP machine?

  • Hi,

    The problem was because of differences in handling of the search path between Windows 7 and whatever Windows version was used to test the script.

    I managed to recompile the library after some conversion work but nobody uses Windows XP anymore so you should provide more robust ways to recompile DSPLIB.