I have a very basic code. Just blink the LED at the interrupt on any GPIO.
Issue is I am not able to debug the code. All works fine when it reached at the last curly braces of closing ISR it does not go back and on pressing 'step into' t gives this error.
MSP430: Can't Single Step Target Program: Could not single step device.
here is code
#include <msp430.h>
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= BIT0; // Set P1.0 to output direction
P1REN |= BIT4; // Enable P1.4 internal resistance
P1OUT |= BIT4; // Set P1.4 as pull-Up resistance
P1IES |= BIT4; // P1.4 Hi/Lo edge
P1IFG &= ~BIT4; // P1.4 IFG cleared
P1IE |= BIT4; // P1.4 interrupt enabled
__bis_SR_register(LPM4_bits + GIE); // Enter LPM4 w/interrupt
}
// Port 1 interrupt service routine
#pragma vector=PORT1_VECTOR
__interrupt void Port_1(void)
{
P1OUT ^= BIT0; // P1.0 = toggle
P1IFG &= ~BIT4; // P1.4 IFG cleared
}