#include "msp430.h"
void main(void)
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
// We need to make a variable to generate a Delay
volatile unsigned int i;
P1DIR |= BIT0; //Declare the Direction of P1.0
while(1){
P1OUT |= BIT0; //Set P1.0 to logic = 1
for(i=0; i<100;i++);
P1OUT &= ~BIT0; //Set P1.0 to logic = 0
for(i=0; i<100;i++);
}
}Hi,
I'm using MSP430G2 launchpad & MSP430G2231 microcontroller.
I'm trying to compile the code above on Code Composer Studio, but it keeps giving me the following warning:
#10443-D The ".stack" section size is required to be aligned to 4 bytes, but the specified size, 0x32, is not. The aligned size is 0x34 C/C++ Problem
I searched for the same problem on the forum but couldn't find any useful solution