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.

CCS START up file



Intruppt Handlers how to add in  start up file. Example timer1handler it is in source file and its prototype is in header file.

I am try to add a header file in start file it showing errors. if i gave  exturn also it showing error.

 

Please let me know if any other method to solve this.

  • Which device are you using (MSP430, CortexM3/M4, C2000, ...)?

    If you are using MSP430, the definition of a timer interrupt is quite simple:

    #pragma vector=TIMERA1_VECTOR
    __interrupt void TimerA1_ISR (void)
    {
    // your code
    }

    You don't need to put a definition of the interrupt in an assembler startup file or similar. The compiler does this for you with the #pragma command (see above).

    The list of available vectors can be seen in the device specific include file.

    If this does not help, maybe you can post a code snippet explaining your problem?

    Best regards,

    Kai

  • in start up file

    Vectors:

    .word

    Timer1IntHandler ;; Offset 98: Timer 1 subtimer B

     

    The error is

    [E0300] The following symbols are undefined: Timer1IntHandler   startup_ccs.s  C/C++ Problem

  • Dear Kai,

    Thanks for your reply...

    In start up file :      Vectors: .word Timer1IntHandler ;; Offset 98: Timer 1 subtimer B The error is [E0300] The following symbols are undefined: Timer1IntHandler startup_ccs.s C/C++ Problem

    Controller is ARM9 Cortex M- LM3s5B91

    Please provide the solustion for this problem.

    Kinly let me know if you have any quires..

    Regards,

    Govardhan

     

     

     

     

  • Dear Govardhan,

    Is it possible to send me the startup_ccs.c/.s files?
    If you don't want to post it to the forum, you can email it to: K-Gossner@ti.com

    Is Timer1IntHandler declared as extern?

    Best regards,

    Kai