Other Parts Discussed in Thread: MSP430WARE
Tool/software: Code Composer Studio
I use msp430f5528 to blink a LED, and it work well. But when a press "suspend" button, it shows the information as below. If resume the program, it will be reset.
"Break at address "0x3d0" with no debug information available, or outside of program code."
Address "0x3d0" is Timer0_B7_TB0R.
Source code is attached. Could anyone help me to solve that?
----------------
#include "msp430f5528.h"
void main(void)
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
P4DIR |= BIT0;
P4OUT |= 0x01;
TB0CCTL0 = CCIE; // CCR0 interrupt enabled
TB0CCR0 = 10000;
TB0CTL = TASSEL_2 + MC_2 + ID_3;// SMCLK, continuous mode
_BIS_SR(LPM0_bits + GIE); // Enter LPM0 w/ interrupt
while(1)
{
__delay_cycles(32768);
}
}
// Timer B0 interrupt service routine
#pragma vector=TIMER0_B0_VECTOR
__interrupt void Timer_B (void)
{
P4OUT ^= 0x01; // Toggle
TB0CCR0 += 10000; // Add Offset to CCR0
}