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.

how to use the csl for c5515 in my own project (not in the test project)




#include <stdio.h>
#include "csl_general.h"
#include "csl_gpio.h"
#include "csl_intc.h"


void main()
{
 Uint16 i;
 
}

and i add the inc and src of csl( i'm using "C55XCSL-LOWPOWER-2.10.00.00" version  ) folder into my project , and then i bullder my project , there are errors in vectors.asm and csl_irqplug.asm , it shows :

"..\src\csl_irqplug.asm", ERROR!   at line 95: [E9999] Syntax Error
       AR1 = *SP(#EventId)              ; AR1 gets EventId

"..\src\csl_irqplug.asm", ERROR!   at line 95: [E9999] Invalid mnemonic
                                                       specified
       AR1 = *SP(#EventId)              ; AR1 gets EventId

"..\src\csl_irqplug.asm", ERROR!   at line 96: [E9999] Syntax Error
       AR2 = AR1 & #15                  ; Get only lower bits

"..\src\csl_irqplug.asm", ERROR!   at line 96: [E9999] Invalid mnemonic
                                                       specified
       AR2 = AR1 & #15                  ; Get only lower bits

"..\src\csl_irqplug.asm", ERROR!   at line 97: [E9999] Syntax Error
       dbl(*AR3) = AC0                  ; Store ISR address at Vector Location

"..\src\csl_irqplug.asm", ERROR!   at line 97: [E9999] Invalid mnemonic
                                                       specified
       dbl(*AR3) = AC0                  ; Store ISR address at Vector Location

"..\src\csl_irqplug.asm", ERROR!   at line 98: [E9999] Syntax Error
       AC3 = NOP16_Operator             ; Load NOP instruction into AC3

"..\src\csl_irqplug.asm", ERROR!   at line 98: [E9999] Invalid mnemonic
                                                       specified
       AC3 = NOP16_Operator             ; Load NOP instruction into AC3

"..\src\csl_irqplug.asm", ERROR!   at line 99: [E9999] Syntax Error
       AR3 += 2                         ; Set byte address to next location

"..\src\csl_irqplug.asm", ERROR!   at line 99: [E9999] Invalid mnemonic
                                                       specified
       AR3 += 2                         ; Set byte address to next location

"..\src\csl_irqplug.asm", ERROR!   at line 100: [E9999] Illegal directive or
                                                        mnemonic
       *AR3 = AC3                       ; Plug remaining part of vector with nop

"..\src\vectors.asm", ERROR!   at line 102: [E9999] Syntax Error
   bit (ST1, #11) = #1     ; Disable interrupts

"..\src\vectors.asm", ERROR!   at line 102: [E9999] Invalid instructionsyntax,
                                                    Xmem or Ymem expected
   bit (ST1, #11) = #1     ; Disable interrupts

"..\src\vectors.asm", ERROR!   at line 102: [E9999] Invalid mnemonic specified
   bit (ST1, #11) = #1     ; Disable interrupts

"..\src\vectors.asm", ERROR!   at line 102: [E9999] Invalid mnemonic specified
   bit (ST1, #11) = #1     ; Disable interrupts

"..\src\vectors.asm", ERROR!   at line 103: [E9999] Illegal directive or
                                                    mnemonic
   @IVPD_L = #(RST >> 8) || mmap()

"..\src\vectors.asm", ERROR!   at line 104: [E9999] Illegal directive or
                                                    mnemonic
   @IVPH_L = #(RST >> 8) || mmap()

"..\src\vectors.asm", ERROR!   at line 105: [E9999] Syntax Error
     bit(ST3,#7) = #0          ; Clear bus error interrupts

"..\src\vectors.asm", ERROR!   at line 105: [E9999] Invalid mnemonic specified
     bit(ST3,#7) = #0          ; Clear bus error interrupts

"..\src\vectors.asm", ERROR!   at line 105: [E9999] Invalid mnemonic specified
     bit(ST3,#7) = #0          ; Clear bus error interrupts

"..\src\vectors.asm", ERROR!   at line 105: [E9999] Invalid mnemonic specified
     bit(ST3,#7) = #0          ; Clear bus error interrupts

"..\src\vectors.asm", ERROR!   at line 107: [E9999] Illegal directive or
                                                    mnemonic
   @#IFR0_L = #0xFFFF   || mmap()      ; clear all pending interrupts

"..\src\vectors.asm", ERROR!   at line 108: [E9999] Illegal directive or
                                                    mnemonic
   @#IFR1_L = #0xFFFF   || mmap()

"..\src\vectors.asm", ERROR!   at line 113: [E9999] Illegal directive or
                                                    mnemonic
   *port(#0x1C04) = 0x20

how to fix it,

thanks