Hi all,
I have a MSP430's EZ430-F2013 kit which was working well with IAR studio. But in Code Compressor Studio V 4, I am having problem with watch variables of Registers . I can neither watch ( they are always of same value) nor can i change variables from watch window. For example in watch window i can see any variable like "int i" but i cannot watch /change compiler defined variables TACTL, CCTL0 etc....
Same code compressor studio works well with my Blackhawk programmer for F28335 processor for all kind of variables.
I have played around with optimization level, heap size and other project settings but with no luck.
Can someone suggest a solution....
Regards.
Following is the simple code i have used for testing.....
#include <msp430x20x3.h>
void main(void)
{
int i;
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
P1DIR |= 0x01; // P1.0 output
//BCSCTL2 = SELM_1 + DIVM_3;
CCTL0 = CCIE; // CCR0 interrupt enabled
i = 20;
//CCR0 = 50000;
TACTL = TASSEL_2 + MC_2; // SMCLK, contmode
//BCSCTL2 = 0xff; //SELM_1 + DIVM_3;
_BIS_SR(LPM0_bits + GIE); // Enter LPM0 w/ interrupt
}
// Timer A0 interrupt service routine
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void)
{
P1OUT ^= 0x01; // Toggle P1.0
//CCR0 += 50000; // Add Offset to CCR0
//BCSCTL2 = SELM_1 + DIVM_3;
}