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.

5505 DMA interrupt

I'm using EVM5515, CCS v4.1,  I use TMS55xx CSL low power 2.1 (the newest version I found), I want to use DMA interrupt mode, but when I added csl_intc.c to my project,

I got errors when I build code, like these. Please help me to find the reason.

Thanks

"C:\Tmp\0707610", ERROR! at line 1733: [E9999] Syntax Error

BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1733: [E9999] Invalid instructionsyntax, Xmem

or Ymem expected

BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1733: [E9999] Invalid mnemonic specified

BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1733: [E9999] Invalid mnemonic specified

BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1796: [E9999] Syntax Error

BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1796: [E9999] Invalid instructionsyntax, Xmem

or Ymem expected

BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1796: [E9999] Invalid mnemonic specified

BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1796: [E9999] Invalid mnemonic specified

BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1862: [E9999] Syntax Error

BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1862: [E9999] Invalid instructionsyntax, Xmem

or Ymem expected

BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1862: [E9999] Invalid mnemonic specified

BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1862: [E9999] Invalid mnemonic specified

BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1870: [E9999] Syntax Error

BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1870: [E9999] Invalid instructionsyntax, Xmem

or Ymem expected

BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1870: [E9999] Invalid mnemonic specified

BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

 

"C:\Tmp\0707610", ERROR! at line 1870: [E9999] Invalid mnemonic specified

BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

  • Hi,

    You need to change some of the Build properties of your project.

    Right click on the project, select "Build Properties"

    Under the Tool Settings tab, select Runtime model options

    Select assembly source language (--asm_source) >> "algebraic" from the pull down menu

    Let me know if that works.

     

  • Juliana,

    Thank you for your reply, I added "algebraic" now, but I met much more errors in building code, in problem tab, errors are


    [E0000] parse error                                                                                                                                                                                             ESM_DSP line 0 1308951942091 20565
    [E0003] Only labels and comments may begin in the first column. Make sure that the label name is not a reserved keyword.  ESM_DSP line 0 1308951942091 20566
    [E0004] Substitution symbol operand expected    
                                                                                                                                            ESM_DSP line 0 1308951942091 20564

    In console tab, there are many errors like,

    "C:\Tmp\1012810", ERROR! at line 255: [E0000] parse error

    MOV *SP(#0), AR1 ; |50|

    ^

    "C:\Tmp\1012810", ERROR! at line 256: [E0000] parse error

    BCC $C$L2,AR1 == #0 ; |50|

    Please help me to find the reason.

    Thanks

     

     

  • At what file are you finding the error? can you check the first file at which the parse error occurs?

    When you do, right click on the file, choose Properties.

    Then under C/C++ choose the same Runtime options, but this time select mnemonic.

  • I have the same problem.

    When I changed the assembler Runtime option --asm_source to be algerbraic , it then caused the *.c CSL files to fail to compile; The assembler aborted. 

    I'm gussing my C compiler is outputting the opposite format .asm files than the format the csl .asm files. were written.  I created a workaround by changing properties of only the .asm files in csl library to be the algerbraic option, and that worked, but am wondering if there is a better method. I looked for an option to select the format of the assembler output for the compiler, but didn't see any options. It think I am using C/C++ Development Tools 3.1.0.

     

  • Hi,

    i am working on 5535 and trying to run the sar.c on ezdsp5535.

    I get the follwing error ,very similar to the one above ,

    "C:\Users\Software\AppData\Local\Temp\0330410", ERROR! at line 1364:

    [E9999]

    Syntax Error

    BIT (ST1, #ST1_INTM) = #0

     

    "C:\Users\Software\AppData\Local\Temp\0330410", ERROR! at line 1364:

    [E9999]

    Invalid instructionsyntax, Xmem or Ymem expected

    BIT (ST1, #ST1_INTM) = #0

     

    "C:\Users\Software\AppData\Local\Temp\0330410", ERROR! at line 1364:

    [E9999]

    Invalid mnemonic specified

    BIT (ST1, #ST1_INTM) = #0

     

    "C:\Users\Software\AppData\Local\Temp\0330410", ERROR! at line 1364:

    [E9999]

    Invalid mnemonic specified

    BIT (ST1, #ST1_INTM) = #0

     

    "C:\Users\Software\AppData\Local\Temp\0330410", ERROR! at line 1408:

    [E9999]

    Syntax Error

    BIT (ST1, #ST1_INTM) = #1

     

    "C:\Users\Software\AppData\Local\Temp\0330410", ERROR! at line 1408:

    [E9999]

    Invalid instructionsyntax, Xmem or Ymem expected

    BIT (ST1, #ST1_INTM) = #1

     

    "C:\Users\Software\AppData\Local\Temp\0330410", ERROR! at line 1408:

    [E9999]

    Invalid mnemonic specified

    BIT (ST1, #ST1_INTM) = #1

     

    "C:\Users\Software\AppData\Local\Temp\0330410", ERROR! at line 1408:

    [E9999]

    Invalid mnemonic specified

    BIT (ST1, #ST1_INTM) = #1

     

    8 Assembly Errors, No Assembly Warnings

     

    Errors in Source - Assembler Aborted

     

    >> Compilation failure

    My compliation is aborted. I tried doing the change from mnemonic to algebraic in the project's build property.But i am getting an other unusual error. wud someone help me solve it.

    parse error

    MOV *SP(#1), AR1 ; |50|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 194:

    [E0000]

    parse error

    CMPU AR1 < AR2, TC1 ; |50|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 195:

    [E0000]

    parse error

    BCC $C$L1,TC1 ; |50|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 199:

    [E0000]

    parse error

    MOV #50, AR3 ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 200:

    [E0000]

    parse error

    MOV #100, AR4 ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 205:

    [E0000]

    parse error

    MOV #0, *SP(#1) ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 207:

    [E0000]

    parse error

    MOV *SP(#1), AR1 ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 208:

    [E0000]

    parse error

    CMPU AR1 >= AR4, TC1 ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 209:

    [E0000]

    parse error

    BCC $C$L5,TC1 ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 217:

    [E0000]

    parse error

    ADD #1, *SP(#1) ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 219:

    [E0000]

    parse error

    MOV #100, AR2 ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 220:

    [E0000]

    parse error

    MOV *SP(#1), AR1 ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 221:

    [E0000]

    parse error

    CMPU AR1 < AR2, TC1 ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 222:

    [E0000]

    parse error

    BCC $C$L4,TC1 ; |56|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 228:

    [E0000]

    parse error

    MOV #46080, *port(#28690) ; |59|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 234:

    [E0000]

    parse error

    MOV #0, *SP(#1) ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 236:

    [E0000]

    parse error

    MOV *SP(#1), AR1 ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 237:

    [E0000]

    parse error

    CMPU AR1 >= AR3, TC1 ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 238:

    [E0000]

    parse error

    BCC $C$L8,TC1 ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 246:

    [E0000]

    parse error

    ADD #1, *SP(#1) ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 248:

    [E0000]

    parse error

    MOV #50, AR2 ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 249:

    [E0000]

    parse error

    MOV *SP(#1), AR1 ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 250:

    [E0000]

    parse error

    CMPU AR1 < AR2, TC1 ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 251:

    [E0000]

    parse error

    BCC $C$L7,TC1 ; |63|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 257:

    [E0000]

    parse error

    MOV *port(#28692), AR1 ; |65|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 258:

    [E0000]

    parse error

    MOV AR1, *SP(#0) ; |65|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 260:

    [E0000]

    parse error

    BTST #15, *SP(#0), TC1 ; |66|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 261:

    [E0000]

    parse error

    BCC $C$L3,!TC1 ; |66|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 267:

    [E0000]

    parse error

    B $C$L6 ; |61|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 374:

    [E0000]

    parse error

    AADD #-3, SP

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 385:

    [E0000]

    parse error

    ADD #1, *(#_keyCnt2) ; |81|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 387:

    [E0000]

    parse error

    MOV #90, AR2 ; |82|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 388:

    [E0000]

    parse error

    MOV *(#_keyCnt2), AR1 ; |82|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 389:

    [E0000]

    parse error

    CMPU AR1 <= AR2, TC1 ; |82|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 390:

    [E0000]

    parse error

    BCC $C$L9,TC1 ; |82|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 393:

    [E0000]

    parse error

    MOV #0, *(#_keyCnt2) ; |84|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 395:

    [E0000]

    parse error

    MOV #1022, *(#_preKey) ; |85|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 398:

    [E0000]

    parse error

    MOV #500, AR3 ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 399:

    [E0000]

    parse error

    MOV #47104, *port(#28690) ; |89|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 404:

    [E0000]

    parse error

    MOV #0, *SP(#1) ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 406:

    [E0000]

    parse error

    MOV *SP(#1), AR1 ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 407:

    [E0000]

    parse error

    CMPU AR1 >= AR3, TC1 ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 408:

    [E0000]

    parse error

    BCC $C$L12,TC1 ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 416:

    [E0000]

    parse error

    ADD #1, *SP(#1) ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 418:

    [E0000]

    parse error

    MOV #500, AR2 ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 419:

    [E0000]

    parse error

    MOV *SP(#1), AR1 ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 420:

    [E0000]

    parse error

    CMPU AR1 < AR2, TC1 ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 421:

    [E0000]

    parse error

    BCC $C$L11,TC1 ; |92|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 427:

    [E0000]

    parse error

    MOV *port(#28692), AR1 ; |94|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 428:

    [E0000]

    parse error

    MOV AR1, *SP(#0) ; |94|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 430:

    [E0000]

    parse error

    BTST #15, *SP(#0), TC1 ; |95|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 431:

    [E0000]

    parse error

    BCC $C$L10,TC1 ; |95|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 437:

    [E0000]

    parse error

    CMP *SP(#0) == #1022, TC1 ; |99|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 438:

    [E0000]

    parse error

    BCC $C$L13,!TC1 ; |99|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 441:

    [E0000]

    parse error

    MOV AR1, T0

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 442:

    [E0000]

    parse error

    B $C$L17 ; |101|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 446:

    [E0000]

    parse error

    BCC $C$L14,AR1 == #0 ; |103|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 448:

    [E0000]

    parse error

    CMP *SP(#0) == #358, TC1 ; |103|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 449:

    [E0000]

    parse error

    BCC $C$L14,TC1 ; |103|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 451:

    [E0000]

    parse error

    CMP *SP(#0) == #470, TC1 ; |103|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 452:

    [E0000]

    parse error

    BCC $C$L14,TC1 ; |103|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 454:

    [E0000]

    parse error

    CMP *SP(#0) == #599, TC1 ; |103|

    ^

    "C:\Users\Software\AppData\Local\Temp\0441210", ERROR! at line 455:

    [E0000] ....

    please help me regarding this.

     

  • Hello Hsm Mahesh,

    you have to select the correct instruction syntaxt in the build options - mnemonic or algebraic. You can do this for all the project or for concrete file. In CCS 3.1 you can find this option in the Build Options window, tab Compiler, category Advanced, checkbox Algebraic Assembly. Try to check this option for the file sar.c.

    Best regards,

    Jiri