工具/软件:Code Composer Studio
您好!
我们的客户存在以下问题:
我尝试在"console:CIO window"中使用"printf()" show,当我使用"CCS 调试模式"时,它运行正常!
"printf()"和"led 闪存"会定期闪烁并按照我的代码执行操作。
但当我使用 CCS 闪存模式(单击闪存图标)时、"printf()"只显示一次、但 LED 也定期闪烁、
有什么错误吗? 我使用 Code Composer Studio 10.1.1.00004和更低版本是我的代码、
谢谢!
#include
#include
#include
#include
#include
#include
#include
#include "ti_drivers_config.h"
/*
*==== mainThread ====
*
void * mainThread (void * arg0)
{
uint32_t 时间= 1;
GPIO_init();
GPIO_setConfig (CONFIG_GPIO_LED_0、GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);
GPIO_WRITE (CONFIG_GPIO_LED_0、CONFIG_GPIO_LED_ON);
while (1){
printf ("通过 printf\n"Hello world via printf\n");
GPIO_TOGGLE (CONFIG_GPIO_LED_0);
睡眠(时间);
}
}