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.
工具/软件:Code Composer Studio
我想在 msp430fr2311 lauchpad中使用printf(),但无法成功工作。
如果我想查看我的变量(现在我想使用printf),是否有任何方法可以使用? 如果有任何问题,请告诉我。
以下是我的代码,错误已超出范围
#include "stdio.h"
#include <MSP4S.h>
#include <string.h>
int main (void){
WDTCTL = WDTPW | WDTHOLD;//停止看门狗计时器
PM5CTL0 &=~LCKLPM5;//禁用GPIO开机默认高阻抗模式
P1DIR = 0x01;
P2DIR = 0x00;
printf ("测试");
返回0;
}
我发现我可以使用变量表来解决问题。 感谢您的回复。