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.

MSP430FR5994: Error 10056 symbol "__TI_int27" redefined: first defined in "./main.obj"

Part Number: MSP430FR5994
Other Parts Discussed in Thread: SYSBIOS

HI Team,

I am trying to set a hardware interrupt on Port 5 and toggle LED connected at P1.1, Below code is the ISR. I have found many thread like this on this isse. However, I could not resolve it. The error is related to "#pragma vector=PORT5_VECTOR" line. The msp430fr5994.h defines PORT5 like this : 

#define PORT5_VECTOR           ".int27"                      /* 0xFFC6 */ 

which I think creating an issue here. 

The compilation error is : error #10056: symbol "__TI_int27" redefined: first defined in "./main.obj"; redefined in "C:\Users\kamle\OneDrive\Desktop\Work\RWL\TI_RTOS\Blinky\src\sysbios\sysbios.ae430X<BIOS.obj>"

I have modified the existing TI RTOS example for blinking LED on the 430FR5994 Launch Pad. Most of the suggestions are saying to check for redefinition in any of the header files. But I can't find one. I am using the headers included within the example itself. Please help.

#include <msp430.h>

#include <xdc/std.h>
#include <xdc/runtime/Log.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Semaphore.h>

/* Semaphore handle defined in task.cfg */
extern const Semaphore_Handle mySem;

/* Counter incremented by timer interrupt */
volatile UInt tickCount = 0;



#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=PORT5_VECTOR
__interrupt
#elif defined(__GNUC__)
__attribute__((interrupt(PORT5_VECTOR)))
#endif
void Port_1(void)
{
  P1OUT ^= 0x2;                            // P1.1 = toggle
  P5IFG &= ~BIT6;                           // P5.6 IFG cleared
  __bis_SR_register_on_exit(GIE);           // Interrupt enabled
}
int main()
{
    /*
     * Uncomment this next line to initialize the port direction for the LED.
     */
    WDTCTL = WDTPW | WDTHOLD;
    PM5CTL0 &= ~LOCKLPM5;
    P1SEL0 = 0x0;
    P1SEL1 = 0x0;
    P1DIR |= BIT0;
    P1OUT |= BIT0;


                            //Enable interrupt on P5.6
    P5SEL0 & ~BIT6;
    P5SEL1 & ~BIT6;
    P5DIR |= BIT6;          // Set up port as input
    P5REN |= BIT6;          // Pull up and pull down enable
    P5OUT |= BIT6;          // Pull up the Pin
    P5IES |= BIT6;          // Sets high to low edge
    P5IFG &= ~BIT6;         // clearing the interrupt flag, in case it has set
    P5IE  |= BIT6;          // Enable Interrupt

    __bis_SR_register(GIE); //normal mode -> enable GIE;
//  BIOS_Start();
}

**Attention** This is a public forum