请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:MSP430G2231 #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++);
}
}您好!
我正在使用 MSP430G2 Launchpad 和 MSP430G2231微控制器。
我正尝试在 Code Composer Studio 上编译上面的代码、但它不断给出以下 警告:
#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
我在论坛上搜索同一个问题、但找不到任何有用的解决方案