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.

error #2628: #pragma vector requires function symbol operands, not interrupt vector index values.

Other Parts Discussed in Thread: CC2650

Hi,

I'm trying to port a project from an older MSP430 to an ARM chip. There's some functionality that I'm attempting to change, and I'm not sure why I'm getting an error. 

error #2628: #pragma vector= requires function symbol operands, not interrupt vector index values.

Here's the line of code

#pragma vector = 0

I simplified this from a previous macro: #define BASICTIMER_VECTOR (0 * 2u)

Thanks in advance!

  • Hi,

    Which ARM chip are you using? If you're using MSP432, I'd recommend reading through Section 4.2.3 Interrupt System in the MSP432 Platform Porting Guide. The traditional #pragma vector method to define interrupts on the MSP432 is not supported yet. However, this method would most likely be supported by the CCS compiler only, which could affect code portability across different compilers.

    Regards,

    James

    MSP Customer Applications

  • Hi,

    I'll take that link a look.

    I probably should have stated sooner that I'm using CCS version 6.
    I'm porting to a SimpleLink CC2650, the old compilation method was using IAR and the intrinsic functions were called with __intrinsic void __no_operation(void)... etc...

    Here is what CCS is claiming:

    undefined                     first referenced
    symbol                          in file
    ---------                          ----------------
    __disable_interrupt         ./filepath1.obj
    __enable_interrupt         ...
    __no_operation              ...

    This document has been pretty useful so far: www.ti.com/.../spru187u.pdf It seems to indicate that the same intrinsic functions are handled by the compiler, but that's a good point you make that they may not be supported on the device.

    Thanks!

  • Here are some additional resources that may help your porting effort:

    Regards,

    James

    MSP Customer Applications

  • Thanks, I appreciate the resources!

    I've looked some, and I haven't found right off the bat a "Code Composer Studio™ v6.1 User's Guide" for the CC2650. What would come close to that document if it isn't out there. It fell out of the sky after I asked (how typical): http://www.ti.com/lit/ug/spnu151l/spnu151l.pdf

    Also, I've looked for a little while now and I can't find an enable or disable interrupt intrinsic function that CCS will accept. Could you point me in the right direction for that?

**Attention** This is a public forum