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.

[参考译文] CCS:CC3200 Report/UART_PRINT OUTPUT FORMAT ERROR函数"报告"隐式声明)

Guru**** 2185245 points
Other Parts Discussed in Thread: CC3200
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/576738/ccs-cc3200-report-uart_print-output-format-error-function-report-declared-implicitly

主题中讨论的其他部件:CC3200

工具/软件:Code Composer Studio

您好:

 

 

      当我使用Report函数显示临时值中的实际值时,在此处

      使用功能时出现了一些问题。功能演示如下所示:

 

cJSON *cJSON创建编号(双数){  

cJSON *item=cJSON新项目();

 报告("----------- 很棒的酒店 :%f-------- \r\n\r\n",num)

 长k = 300;

 报告("----------- 很棒的酒店 :%f-------- \r\n\r\n",k);

 如果(项目) {

  item->type=cJSON编号;   

//UART_PRINT("--------------- :%s----------- \r\n\r\n",OUT);  

 item->valueedouble=num;

  item->valueint=(int)num;

 }  

返回项目;

}

      a.当我输入"num"值为2时,2是int模块。但 当   在%d模型中使用UART_PRINT时,打印结果为0; int和double是否有错误。

       B.当我定义临时值为int model并打印为%d时,这是可以的。但是当我定义临时值为double并将其打印为%d时,它显示错误的reslut。

      c.我尝试将双模型 输出的温度值打印为%f,它显示0.0万。

      d.打印函数的输入值时,无论以双精度或int形式打印,打印函数下都会加热。

         (<a href="file:/D:/CCS/ccsv6/tools/compiler/dMED/HTML/225. html">#225-D</A>函数"Report"
 隐式声明)

 CC3200 COTER-M4是否有问题?一些建议将很有帮助。

 

 

    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    当我包含uart_if.h文件时,加热将消失,但打印结果从未改变。