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.

MSP430F5252: TI-RTOS GPIO 6.3 interrupt not working as intended

Part Number: MSP430F5252

Hello E2E,

I am having trouble setting an interrupt on the GPIO Port 6 pin 3 of the MSP430f5252.

My GPIO configuration is :

GPIO_PinConfig gpioPinConfigs[] = {
    // ...
    GPIOMSP430_P2_1 | GPIO_CFG_INPUT | GPIO_CFG_IN_INT_FALLING, /* BUTTON */
    GPIOMSP430_P6_3 | GPIO_CFG_INPUT | GPIO_CFG_IN_INT_FALLING, /* IR_RX */
    // ...
}

In the init, I set a callback and enable interrupts :

GPIO_setCallback(BUTTON, buttonInterruptFxn);
GPIO_setCallback(IR_RX, irrxInterruptFxn);

GPIO_enableInt(BUTTON);
GPIO_enableInt(IR_RX);

And I have in the Project.cfg :

hwiParams.arg = 2;
Hwi.create(38, "&GPIO_hwiIntFxn", hwiParams); // PORT 2
hwiParams.arg = 1;
Hwi.create(36, '&GPIO_hwiIntFxn', hwiParams); // PORT 6

The interrupt for the BUTTON pin works fine but the one for the IR_RX pin doesn't work as intended.

It never goes into the irrxInterruptFxn, and it even seems to mess with other things such as a Clock.

(And if there is a way to setup interrupts without the cfg file, it would be easier to maintain)

What am I missing here ? Thanks for your help !

Clement