Dear All,
不用driverlib的时候,直接用printf 就可以在CCS的调试窗口看到输出了,但是用driverlib后,printf没有输出。
谢谢
Regards,
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear All,
不用driverlib的时候,直接用printf 就可以在CCS的调试窗口看到输出了,但是用driverlib后,printf没有输出。
谢谢
Regards,
我的代码很简单,随便写了个闪烁LED的。。
#include "driverlib.h"
#include <stdio.h>
void main(void)
{
WDT_A_hold(WDT_A_BASE);
GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0);
GPIO_setOutputHighOnPin(GPIO_PORT_P1, GPIO_PIN0);
PMM_unlockLPM5();
while(1) {
printf("hello\n");
GPIO_toggleOutputOnPin(GPIO_PORT_P1, GPIO_PIN0);
__delay_cycles(40000);
}
}