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/TM4C123GH6PM:编译器警告的巨大列表

Guru**** 3038620 points

Other Parts Discussed in Thread: TM4C123GH6PM

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/899832/ccs-tm4c123gh6pm-huge-list-of-compiler-warnings

器件型号:TM4C123GH6PM

工具/软件:Code Composer Studio

如何清除这个庞大的警告列表、我只复制了两个警告:

'调用:ARM 编译器'

"c:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.11.LTS/bin/armcl -mv7M4 -code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/workspace_CCS74/I2CMproc 发送器"--include_path="C:/ti/TivaWare_C_Series-2.1.4.178 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.11.LTS/include --define=ccs="pred=ccs_supervisit_code.gcc=-remote_remote_display-guidature=-g4premote_display-trab-rom-code.g_guide-guide-guide-ine_display-tran.tran.tran.tran.tran.cc=-code.g_supervise_remote_remote_remote_remote_guide-guide-d=-code.g.cc=
"C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_ints.h、第352行:警告#48-D:宏"INT_ADC0SS0"的重新定义不兼容(在"C:/ti/TivaWare_C_Series-2.1.4.178/inc/tm4c123gh6pm.h "的第62行声明)
"C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_ints.h、第353行:警告#48-D:宏"INT_ADC0SS1"的重新定义不兼容(在"C:/ti/TivaWare_C_Series-2.1.4.178/inc/tm4c123gh6pm.h "的第63行声明)

我的应用程序包括以下文件:

#include
#include
#include "inc/tm4c123gh6m.h"
#include "inc/hw_types.h"
#include "inc/hw_gpio.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.c"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.c"
#include "driverlib/gpio.h"

和链接至:

C:\ti\TivaWare_C_Series-2.1.4.178\driverlib\ccs\Debug\driverlib.lib

我不使用 Tiva 库函数调用。 我将访问中定义的寄存器 进行了比较。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我不熟悉 TivaWare。  但我可以为您提供一些可能有所帮助的调试技术。

    使用-gen_preprocessor_listing 选项构建 。  这将创建与源文件同名的列表文件、但扩展名更改为.rl。  此文件向您展示编译的预处理阶段发生的情况。  您可以看到同一宏的多个定义发生在何处。   

    或者... 使用-preproc_includes 选项构建 。  这将创建与源文件同名的文本文件、但扩展名更改为.pp  它显示了主源文件包含的文件。

    有关更多详细信息、请在 ARM 编译器手册中搜索这些选项。

    请告诉我这些技术是否能帮助您解决问题。

    谢谢、此致、

    乔治

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的乔治:

    在哪个构建选项卡下插入该选项。

    谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请参阅文章 如何提交编译器测试用例中的说明。  选项--preproc_with_comment 和--preproc_includes 位于同一位置。

    选项--gen_preprocessor_listing 位于选项类别"补充信息"中。

    谢谢、此致、

    乔治

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢