Hello, I have the MSP-EXP430FR2311 board. While experimenting with interrupts, I came across a strange problem: setting the interrupt to trigger on a falling edge causes the chip to hang when the debugger exits. The program runs fine until I exit the debugger in Code Composer Studio. To demonstrate the problem, I added these three lines of code to the "BlinkLED" example (right before the infinite loop): GPIO_selectInterruptEdge(GPIO_PORT_P1, GPIO_PIN6, GPIO_HIGH_TO_LOW_TRANSITION); //Interrupt on rising edge __enable_interrupt(); // enable all interrupts GPIO_enableInterrupt(GPIO_PORT_P1, GPIO_PIN6); //Interrupt on P1.1 When the interrupt is set to trigger on the rising edge (GPIO_LOW_TO_HIGH_TRANSITION), the problem goes away, and the chip resets as expected when the debugger exits. I'm completely out of ideas on this one. Anyone know what could be going on? Thanks, Will
↧