工具/软件:Code Composer Studio
您好!
我不熟悉 MSP430。 使用 MSP43fr5994 Launchpad、
使用 Code Composer Studio 9.1.0.00010
代码基于'BlinkLED..." 示例。
代码正在编译并且运行良好(LED 已切换)、但我在 CCS "Console"选项卡中看不到任何 Put 输出。
缺少什么?
#include
#include
int main (void){
volatile uint32_t i;
//停止看门狗计时器
WDT_A_HOLD (WDT_A_base);
//将 P1.0设置为输出方向
GPIO_setAsOutputPin (
GPIO_PORT_P1、
GPIO_PIN0
);
//禁用 GPIO 上电默认高阻抗模式
//激活先前配置的端口设置
PMM_unlockLPM5 ();
PUT ("已启动");
while (1)
{
//切换 P1.0输出
GPIO_toggleOutputOnPin (
GPIO_PORT_P1、
GPIO_PIN0
);
PUes("1");
//延迟
for (i=100000;i>0; i--);
}
}
谢谢。