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.

Can't even build program

Other Parts Discussed in Thread: CCSTUDIO

using CCS v3.3, trying out tutorial "Developing a simple program" from the Help menu

i can't even compile, and the error message as follows:

----------------------------  volume1.pjt - Debug  ----------------------------
[Configuration5.cdb] "C:\CCStudio_v3.3\bios_5_31_02\xdctools\tconf" -b -Dconfig.importPath="C:/CCStudio_v3.3/bios_5_31_02/packages"  Configuration5.cdb
js: "./Configuration5.cdb", line 4: missing ; before statement
js: object BIOSREGS :: MEM {
js: ...............^
js: "./Configuration5.cdb", line 5: missing name after :: operator
js:     param iComment :: "This object defines space for the BIOS on-chip registers and can't be deleted"
js: ....................................................................................................^
js: "./Configuration5.cdb", line 6: missing name after :: operator
js:     param iIsUsed :: 1
js: .....................^
js: "./Configuration5.cdb", line 7: missing name after :: operator
js:     param iId :: 0
js: .................^
js: "./Configuration5.cdb", line 8: missing name after :: operator
js:     param iDelUser :: "USER"
js: ...........................^
js: "./Configuration5.cdb", line 9: missing name after :: operator
js:     param iDelMsg :: "This object defines space for the BIOS on-chip registers and can't be deleted"
js: ...................................................................................................^
js: "./Configuration5.cdb", line 10: missing name after :: operator
js:     param base :: 124
js: ....................^
js: "./Configuration5.cdb", line 11: missing name after :: operator
js:     param len :: 4
js: .................^
js: "./Configuration5.cdb", line 12: missing name after :: operator
js:     param iAllocHeap :: 0
js: ........................^
js: "./Configuration5.cdb", line 13: missing name after :: operator
js:     param iHeapSize :: 1024
js: ..........................^
js: "./Configuration5.cdb", line 14: missing name after :: operator
js:     param iUserHeapId :: 0
js: .........................^
js: "./Configuration5.cdb", line 15: missing name after :: operator
js:     param iHeapId :: @segment_name
js: .....................^
js: "./Configuration5.cdb", line 16: missing name after :: operator
js:     param iReqHeapCount :: 0
js: ...........................^
js: "./Configuration5.cdb", line 17: missing name after :: operator
js:     param space :: "data"
js: ........................^
js: "./Configuration5.cdb", line 18: missing name after :: operator
js:     param dynamicLoading :: 0
js: ............................^
js: "./Configuration5.cdb", line 19: missing name after :: operator
js:     param iIsModifiable :: 1
js: ...........................^
js: "./Configuration5.cdb", line 22: missing ; before statement
js: object CSLREGS :: MEM {
js: ..............^
js: "./Configuration5.cdb", line 23: missing name after :: operator
js:     param iComment :: "This object defines space for the CSL on-chip registers and can't be deleted"
js: ...................................................................................................^
js: "./Configuration5.cdb", line 24: missing name after :: operator
js:     param iIsUsed :: 1
js: .....................^
js: "./Configuration5.cdb", line 25: missing name after :: operator
js:     param iId :: 0
js: .................^
js: "./Configuration5.cdb", line 26: missing name after :: operator
js:     param iDelUser :: "USER"
js: ...........................^
js: "./Configuration5.cdb", line 27: missing name after :: operator
js:     param iDelMsg :: "This object defines space for the CSL on-chip registers and can't be deleted"
js: ..................................................................................................^
js: "./Configuration5.cdb", line 28: missing name after :: operator
js:     param base :: 122
js: ....................^
js: "./Configuration5.cdb", line 29: missing name after :: operator
js:     param len :: 2
js: .................^
js: "./Configuration5.cdb", line 30: missing name after :: operator
js:     param iAllocHeap :: 0
js: ........................^
js: "./Configuration5.cdb", line 31: missing name after :: operator
js:     param iHeapSize :: 1024
js: ..........................^
js: "./Configuration5.cdb", line 32: missing name after :: operator
js:     param iUserHeapId :: 0
js: .........................^
js: "./Configuration5.cdb", line 33: missing name after :: operator
js:     param iHeapId :: @segment_name
js: .....................^
js: "./Configuration5.cdb", line 34: missing name after :: operator
js:     param iReqHeapCount :: 0
js: ...........................^
js: "./Configuration5.cdb", line 35: missing name after :: operator
js:     param space :: "data"
js: ........................^
js: "./Configuration5.cdb", line 36: missing name after :: operator
js:     param dynamicLoading :: 0
js: ............................^
js: "./Configuration5.cdb", line 37: missing name after :: operator
...

..

js: ...........................................................................................^
js: "./Configuration5.cdb", line 2770: missing ( before function parameters.
js:     param function :: @PRD_F_swi
js: ....................^
js: "./Configuration5.cdb", line 1: Compilation produced 2337 syntax errors.

[load.asm] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/volume1/Debug" -d"_DEBUG" -@"Debug.lkf" "load.asm"
"load.asm", ERROR!   at line 23: [E0002] Invalid mnemonic specification
            ADDB      SP,#1

"load.asm", ERROR!   at line 24: [E0002] Invalid mnemonic specification
            CMPB      AL,#0                 ; |3|

"load.asm", ERROR!   at line 25: [E0002] Invalid mnemonic specification
            MOV       *-SP[1],AL            ; |2|

"load.asm", WARNING! at line 26: [W0000] Trailing operands ignored
            B         L2,EQ                 ; |3|

"load.asm", ERROR!   at line 29: [E0002] Invalid mnemonic specification
            DEC       *-SP[1]               ; |4|

"load.asm", ERROR!   at line 30: [E0002] Invalid mnemonic specification
            MOV       AL,*-SP[1]            ; |4|

"load.asm", WARNING! at line 31: [W0000] Trailing operands ignored
            B         L1,NEQ                ; |4|

"load.asm", ERROR!   at line 34: [E0004] Not expecting immediate value - Operand
                                         2
            SUBB      SP,#1

"load.asm", ERROR!   at line 35: [E0002] Invalid mnemonic specification
            LRETR

7 Assembly Errors, 2 Assembly Warnings

Errors in Source - Assembler Aborted

>> Compilation failure

[vectors.asm] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/volume1/Debug" -d"_DEBUG" -@"Debug.lkf" "vectors.asm"

[volume.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/volume1/Debug" -d"_DEBUG" -@"Debug.lkf" "volume.c"

Build Complete,
  2345 Errors, 2Warnings, 0 Remarks.

please help me. why is it so hard :(

  • Hi,

    Please list down the steps (create the CCS project and etc) followed before compilation procedure.

    To which processor, you are compiling this program, please provide the hardware and software details.

    -Thanks

    N. Balaji

  • was too tired just now and didn't post these information:

    i'm using a DSK5416 board, the steps that i did are:

    - Project--> New Project

    - New --> DSP/BIOS configuration--> selected ti.platforms.dsk5416

    - new pane pops up -> configured a heap at MEM - Memory Section Manager -> at D_DARAM47 (properties) -> updated properties for MEM - Memory Section Manager for Segment for DSP/BIOS objects and Segment For malloc/free() to point to the heap

    - saved DSP/BIOS config into project directory

    -added the newly generated configuration files (.cdb and .cmd) to project via Project ---> Add Files to Project

    - change build options to Use Far Calls

    - create main source file, saved it in project directory, added it to project

    - clicked Project --> Build

    and then mayhem - 2339 errors.:(

  • adrian gold said:
    [load.asm] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/volume1/Debug" -d"_DEBUG" -@"Debug.lkf" "load.asm"
    "load.asm", ERROR!   at line 23: [E0002] Invalid mnemonic specification
                ADDB      SP,#1

    I don't know why you're getting the errors with the .cdb file, but the errors in load.asm are because load.asm is a C2000 assembly language file, and you are trying to compile it with the C54x compiler/assembler.