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
尊敬的:
我正在尝试使用 TivaWare 库并编译示例代码。 由于我使用的是 Linux、因此我下载了 tivaware c_series_2_1_4_178。 其中包含 driverlib 和 examples 等目录。
在 Code Composer Studio 8.0.0.00016版中、我转到了 Windows >首选项>编译器、并将发现路径添加到我的 TIVAware _c_series_2_1_1_4_178目录。
我还转到了 Windows > Preferences > General > Workspace > Linked Resources、并添加了一个路径变量 TIVAWARE_BASE"、其中包含指向我的 TIVAware -c_series_2_1_1_4_178目录的相对路径。
当我右键单击我的项目并单击属性时、我转到"生成">" ARM 编译器">"包含选项"、并添加了刚刚定义的目录"${TIVAWARE_BASE}"。
如果我编译 ADC single_ended.c 文件、我将获得以下输出。
构建配置调试项目 ADC3 **** /opt/ccstudio/ccsv8/utils/bin/gmake -k -j 4所有-O 构建目标:"ADC3.out" 调用:ARM 链接 器"/opt/ccstudio/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl -mv7M4 -code_state=16 --float_support=FPv4SPD16 -me --define=ccs="ccs"--define=part_TM4C12=16 --float_support=fpv4SPD16 -m=-mc3-m_diag=-m=-define -define -guid=-m=-m=-m_abi_display-m=-m=-dat_bat_bi-dag=-m=-m=-date-dag_bi-display-ma- stack_size=512 -i"/opt/ccstudio/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/lib -i"/opt/ccstudio/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="adc3_linkInfo.xml"--rom_model -o "adc3.out""./single_end.obj"-xml_link_info="adccs.dlt94t/cmctr.cmdlt/cmc12t94t.cmp.c.obj " 未定义 第一 个引用的符号 文件中 ------ -------- ADCIntClear /single_ended.obj ADCIntStatus /single_ended.obj ADCProcessorTrigger /single_ended.obj ADCSequenceConfigure /single_ended.obj ADCSequenceDataGet ./single_ended.obj ADCSequenceEnable /single_ended.obj ADCSequenceStepConfigure ./single_ended.obj GPIOPinConfigure /single_ended.obj GPIOPinTypeADC /single_ended.obj GPIOPinTypeUART /single_ended.obj SysCtlClockGet /single_ended.obj SysCtlClockSet /single_ended.obj SysCtlDelay /single_ended.obj SysCtlPeripheralEnable ./single_ended.obj UARTClockSourceSet /single_ended.obj UARTStdioConfig /single_ended.obj UARTprintf /single_end.obj 错误#10234-D:未解析的符号仍然 >>编译失败 makefile:140:目标'ADC3.out'的配方失败 错误#10010:链接期间遇到错误;"ADC3.out"未编译 gmake[1]:***[ADC3.out]错误1 gmake:***[All]错误2:错误2 ****构建完成的目标 makefile:136
有人能告诉我如何包括 Tivaware 库吗?