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.

fir.asm fail to compile



Dear TI,

 

I am using the c5505 eZDSP Stick. I have sucessfully run the demo software which has an FIR filter and the demo software which has an FFT filter.

I wish to have both types of filters in one application.

When I add the fir.asm file to the FFT project I get the error messages shown below:

Will you please help me to get the fir.asm to compile properly?

Regards,

Charley

 

**** Build of configuration Debug for project VC5505 FFT Filter Demo ****

 

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

'Building file: ../fir.asm'

'Invoking: C5500 Compiler'

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -vcpu:3.3 --symdebug:coff --define="_DEBUG" --define="C55X" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="C:/FilterTest2/VC5505 FFT Filter Demo/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_40_03_23/packages/ti/rtdx/include/c5500" --diag_warning=225 --sat_reassoc=off --ptrdiff_size=32 --fp_reassoc=off --algebraic --no_mac_expand --memory_model=huge --asm_source=algebraic --preproc_with_compile --preproc_dependency="fir.pp" "../fir.asm"

"../fir.asm", ERROR! at line 105: [E0000] parse error

AND #001FFh, mmap(ST0_55) ;clear all ACOVx, TC1, TC2, C

^

"../fir.asm", ERROR! at line 107: [E0000] parse error

OR #04140h, mmap(ST1_55) ;set CPL, SXMD, FRCT

^

"../fir.asm", ERROR! at line 109: [E0000] parse error

AND #0F9DFh, mmap(ST1_55) ;clear M40, SATD, 54CM

^

"../fir.asm", ERROR! at line 111: [E0000] parse error

AND #07A00h, mmap(ST2_55) ;clear ARMS, RDM, CDPLC, AR[0-7]LC

^

"../fir.asm", ERROR! at line 113: [E0000] parse error

AND #0FFDDh, mmap(ST3_55) ;clear SATA, SMUL

^

"../fir.asm", ERROR! at line 124: [E0000] parse error

MOV mmap(AR1), h_base ;base address of coefficients

^

"../fir.asm", ERROR! at line 126: [E0000] parse error

MOV #0, h_ptr ;point to first coefficient

^

"../fir.asm", ERROR! at line 128: [E0000] parse error

MOV mmap(T1), h_sz ;coefficient array size

^

"../fir.asm", ERROR! at line 134: [E0000] parse error

MOV XAR3, xdb_base ;db array address

^

"../fir.asm", ERROR! at line 135: [E0000] parse error

MOV *AR3+, db_ptr ;index of oldest db entry

^

"../fir.asm", ERROR! at line 137: [E0000] parse error

MOV mmap(AR3), db_base ;base address for db_ptr

^

"../fir.asm", ERROR! at line 139: [E0000] parse error

MOV mmap(T1), db_sz ;db_sz = nh

^

"../fir.asm", ERROR! at line 141: [E0000] parse error

ADD #1, mmap(db_sz) ;db_sz = nh+1

^

"../fir.asm", ERROR! at line 145: [E0000] parse error

OR #ST2mask, mmap(ST2_55) ;config circ/linear pointers

^

"../fir.asm", ERROR! at line 151: [E0000] parse error

SUB #1, T0 ;T0 = nx-1

^

"../fir.asm", ERROR! at line 152: [E0000] parse error

MOV T0, outer_cnt ;outer loop executes nx times

^

"../fir.asm", ERROR! at line 153: [E0000] parse error

SUB #3, T1, T0 ;T0 = nh-3

^

"../fir.asm", ERROR! at line 154: [E0000] parse error

MOV T0, inner_cnt ;inner loop executes nh-2 times

^

"../fir.asm", ERROR! at line 165: [E0000] parse error

||RPTBLOCAL loop1-1 ;start the outer loop

^

"../fir.asm", ERROR! at line 167: [E0000] parse error

MOV *x_ptr+, *db_ptr ;get next input value

^

"../fir.asm", ERROR! at line 170: [E0000] parse error

MPYM *h_ptr+, *db_ptr+, AC0

^

"../fir.asm", ERROR! at line 173: [E0000] parse error

||RPT inner_cnt

^

"../fir.asm", ERROR! at line 174: [E0000] parse error

MACM *h_ptr+, *db_ptr+, AC0

^

"../fir.asm", ERROR! at line 177: [E0000] parse error

MACMR *h_ptr+, *(db_ptr-T1), AC0

^

"../fir.asm", ERROR! at line 180: [E0000] parse error

MOV HI(AC0), *r_ptr+ ;store Q15 value to memory

^

"../fir.asm", ERROR! at line 188: [E0000] parse error

MOV db_ptr, *-AR3 ;update 1st element of db array

^

"../fir.asm", ERROR! at line 194: [E0000] parse error

||MOV #0, oflag ;clear oflag

^

"../fir.asm", ERROR! at line 196: [E0000] parse error

XCCPART check1, overflow(AC0) ;clears ACOV0

^

"../fir.asm", ERROR! at line 197: [E0000] parse error

||MOV #1, oflag ;overflow occurred

^

"../fir.asm", ERROR! at line 205: [E0000] parse error

BCLR FRCT ;clear FRCT

^

"../fir.asm", ERROR! at line 207: [E0000] parse error

AND #0FE00h, mmap(ST2_55) ;clear CDPLC and AR[7-0]LC

^

"../fir.asm", ERROR! at line 209: [E0000] parse error

BSET ARMS ;set ARMS

^

"../fir.asm", ERROR! at line 225: [E0000] parse error

||RET

^

 

Errors in Source - Assembler Aborted

33 Assembly Errors, No Assembly Warnings

 

>> Compilation failure

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [fir.obj] Error 1

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

Build complete for project VC5505 FFT Filter Demo

  • Juliana,

    Thanks ever so much for the quick reply.

    I tried the fix of changing the property of the fir.asm under the Run Time Model Options so that the Assembly Source Option is set to nmeonic.

    This caused the dreaded rex to disappear when building.

    But, I then get the following linking error:

    I guess there is still an issue with the properties for fir.asm somewhere.

    Thanks,

    Charley

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

    'Building file: ../fir.asm'

    'Invoking: C5500 Compiler'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -vcpu:3.3 --symdebug:coff --define="_DEBUG" --define="C55X" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="C:/FilterTest2/VC5505 FFT Filter Demo/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_40_03_23/packages/ti/rtdx/include/c5500" --diag_warning="225" --sat_reassoc=off --ptrdiff_size=32 --fp_reassoc=off --algebraic --no_mac_expand --memory_model=huge --asm_source=mnemonic "../fir.asm"

    ERROR! : Cannot open source file 12: No such file or directory

  • Charles,

    From the compiling information, you have the following folders included for sources:

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include"

    "C:/FilterTest2/VC5505 FFT Filter Demo/Debug"

    "C:/Program Files/Texas Instruments/bios_5_40_03_23/packages/ti/rtdx/include/c5500"

    Is the file fir.asm in one of these folders?

  • Juliana,

    Thanks for the reply!

    The fir.asm is in an entirely separate folder.

    Do you think I should move it to one of the referenced folders or change the properties of the fir.asm file so the compiler can locate it?

    Thanks for your patience!

    Regards,

    Charley

  • Charles,

    You dont' have to move the file to a different folder. To solve the problem, you need to link the folder to your project. You can do that under Build Properties of your project.

    Right click on your project name, go to Build Properties. In the C/C++ Build, go to Tool Settings tab.

    Under C5500 Compiler - Include Options, Add the directory of your folder to the list.

    To be on the safe side, also add it to the File Search Path under the C5500 Linker section.

     

  • Juliana,

     

    This seems to have cured the problem.

    Thanks for the tutoring!

    Regards,

    Charley