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/TMS320F28379D:ADC 问题

Guru**** 2595800 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/669201/ccs-tms320f28379d-problem-with-adc

器件型号:TMS320F28379D

工具/软件:Code Composer Studio

大家好、我将使用 LAB3来执行我的项目。 在此 LAB3中、没有文件 F2837xD_ADC.c、因此我添加了该文件、以便能够根据我的项目使用。 但编译会产生许多错误。 如何解决?

****项目 Lab3_cpu01的配置调试构建****

"C:\\ti\\ccsv7\\utils\\bin\\gmake"-k all
'生成文件:./Constants.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/cn_superts/prevulate_boards=v28xd_super-boards/probuld_suppremotes=us-boards/probulation_reas_display-boards/probultran.us_suppage-boards/prob_suppage-boards/probuld_display_suppage-boards/probuld_suppage-boards/probuld_suppage-boards/probuld_suppage-display_suppage-guidtes=f37xd_guides=fus
'完工建筑:君士坦丁斯.c'
'
'生成文件:./F2837xD_ADC.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/suppremote_display-f37xd"-board_suppremote_display-f2837xd_suppremote_display_suppremote_display-f37xd"-f28xd_suppremote_display_us/guid_suppremote_display-f37xd_suppage-f37xd_suppage-f37xd_suppage-f28xd_supers/guid_super -ines=f2837xd_supp_supp_suppage-board_suppage-ine_display_supp

>>编译失败
subdir_rules.mk:16:目标'F2837xD_ADC.obj'的配方失败
"./F2837xD_ADC.c"、第24行:警告#225-D:隐式声明函数"CalAdcINL"
"./F2837xD_ADC.c"、第26行:错误#20:标识符"GetAdcOffsetTrimOTP"未定义
"./F2837xD_ADC.c"、第42行:错误#20:标识符"ADC_ADCA"未定义
"./F2837xD_ADC.c"、第46行:错误#20:标识符"ADC_Resolution _12bit"未定义
"./F2837xD_ADC.c"、第49行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM1"
"./F2837xD_ADC.c"、第50行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM2"
"./F2837xD_ADC.c"、第51行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM4"
"./F2837xD_ADC.c"、第52行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM5"
"./F2837xD_ADC.c"、第55行:错误#20:标识符"ADC_ADCB"未定义
"./F2837xD_ADC.c"、第62行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM1"
"./F2837xD_ADC.c"、第63行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM2"
"./F2837xD_ADC.c"、第64行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM4"
"./F2837xD_ADC.c"、第65行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM5"
"./F2837xD_ADC.c"、第68行:错误#20:标识符"ADC_ADCC"未定义
"./F2837xD_ADC.c"、第75行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM1"
"../F2837xD_ADC.c"、第76行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM2"
"./F2837xD_ADC.c"、第77行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM4"
"../F2837xD_ADC.c"、第78行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM5"
"./F2837xD_ADC.c"、第81行:错误#20:标识符"ADC_ADCD"未定义
"./F2837xD_ADC.c"、第88行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM1"
"./F2837xD_ADC.c"、第89行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM2"
"./F2837xD_ADC.c"、第90行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM4"
"./F2837xD_ADC.c"、第91行:错误#137:结构"ADC_regs"没有字段"ADCINLTRIM5"
"./F2837xD_ADC.c"、第102行:警告#161-D:声明与之前的"CalAdcINL"(在第24行声明)不兼容
"./F2837xD_ADC.c"、第105行:错误#20:标识符"ADC_ADCA"未定义
"./F2837xD_ADC.c"、第106行:错误#20:标识符"CalAdcainL"未定义
"./F2837xD_ADC.c"、第114行:错误#20:标识符"ADC_ADCB"未定义
"./F2837xD_ADC.c"、第115行:错误#20:标识符"CalAdcbINL"未定义
"./F2837xD_ADC.c"、第123行:错误#20:标识符"ADC_ADCC"未定义
"./F2837xD_ADC.c"、第124行:错误#20:标识符"CalAdccINL"未定义
"./F2837xD_ADC.c"、第132行:错误#20:标识符"ADC_ADCD"未定义
"./F2837xD_ADC.c"、第133行:错误#20:标识符"CalAdcdINL"未定义
在"../F2837xD_ADC.c"的编译中检测到30个错误。
gmake:***[F2837xD_ADC.obj]错误1.
'生成文件:./F2837xD_CodeStartBranch.asm'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/suppremote_display-f37xd_suppremote_display_suppremote_display-f37xd_suppremote_display-f37xd_suppremote_display-f37xd_supers-f37xd_suppremote_display_suppremote_display_supers-f37xd_suppremote_display_suppage-f37xd_suppremote_display_suppage-f37xd_suppremote_display_suppage-f37xd_suppage-f37xd_suppremote_display_sup
'已完成的建筑:./F2837xD_CodeStartBranch.asm'
'
'生成文件:./F2837xD_CpuTimers.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 "-v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xd/supers_suppremote_display_supd_supd_suppense/f37xd="-f2837xd"-board_supd_supd_display_supd_supd_supd_supmers/guides=f2837xd_supers/pred_supd_supd_supd_supd_supd_supd_supd_supd_supd_supmers/guides=f2837xd_guides=-suppage-ination="_supers/guides=f37xd_supers/guides_supp
'完成的构建:./F2837xD_CpuTimers.c'
'
'生成文件:./F2837xD_DefaultISR.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/supert_us_suppremote_display_guides=-f2837xd_us_display_suppage-file_display_suppage-f37xd_suppage-file_display_guide/f37xd_us_suppage=f28xd_us_suppage-filter_suppage-f37xd_us_suppage-f37xd_guid_guid_supp_guide/guide/f37xd_suppage=-f37xd_us.us_supp_supp_suppage-fus
'已完成构建:./F2837xD_DefaultISR.c'
'
'生成文件:./F2837xD_ePWM.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/suppwm_super-f37xd_display_suppremote_display-f37xd_suppwm_board-suppwm_board-f28xd_suppremote_display_suppremote_display-f37xd_suppage-f37xd_suppage-f37xd_display_supp_suppremote_display-f37xd_suppage-f37xd_guest_suppage-f37xd_guest_suppf-nature_suppremote_display-f37xd_supp_supp_
'完成的建筑:./F2837xD_ePWM.c'
'
'生成文件:./F2837xD_GlobalVariableDefs.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xd/sup两者 之间的 prev28xd_support=v28xd_suppremote_display_suppremote_display-f37xd_suppage-f37xd_suppends=v28xd_supers-file_display_suppremote_display_suppage-f37xd_supers-f37xd_suppremote_display_suppage-f37xd_suppendag_supers-f28xd_supers-fus/guest_super -f37xd_suppremote_display_suppage-f37xd_suppremot
'完成的建筑:./F2837xD_GlobalVariableDefs.c'
'
'构建文件:./F2837xD_GPIO.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/suppremote_display-f37xd"-f2837xd_suppremote_display_suppremote_display-f37xd_suppage-f28xd_supers/guide/guide_suppage=f2837xd_supers/guide_supers/guide_supers/guide_suppremote_display-f37xd_suppage-f37xd_suppage-f28xd_suppage-suppremote_display_suppage-f37xd_suppage-f37xd_sup
'完成的建筑:./F2837xD_GPIO.c'
'
'生成文件:./F2837xD_IPC.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xd/sup两者 之间的 prev-board_supd_display_us/guides=f28xd_supp_suppremote_display/guides=f2837xd_suppage-board.us/guides=f28xd_supp_supp_suppage-ines=v2837xd_supp_suppage-intrends=v37xd_supp_supp_supp_suppage-f37xd_supp_suppage-inu.c:-f37xd_display_suppage-f37xd/
'完成的建筑:./F2837xD_IPC.c'
'
'构建文件:./F2837xD_PIECTRL.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/suppremote_display-f37xd"-f37xd_super-f28xd_suppremote_display_suppremote_display_guides=f2837xd_suppremote_display_guide-f37xd"-f37xd_super -trus/prev-f37xd_display_suppremote_display_suppage-f37xd_guid_supp_super -f37xd_guid_supp_supp_suppage-f37xd_guid_supp_supp_supp_supp_sup
'完成的建筑:./F2837xD_PIECTRL.c'
'
'生成文件:./F2837xD_PieVect.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xd/pieux_support=v28xd_super-board/pred_supd_display_supd_supd_supd_display/guest/guest_suppage=v37xd_suppage=v37xd_supd_suppref_suppage-ination="2837xd_supd_suppage=v37xd_supd_suppage=v37xd_suppage-inu_probuls=v37xd_suppage-suppage-inu_suppage-f37xd_suppage-inu_display_suppage
'完成的建筑:./F2837xD_PieVect.c'
'
'生成文件:./F2837xD_SYSCTRL.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/supert_suppremote_display-f37xd"-us_display_suppremote_display_suppremote_display-f37xd_us_suppage-f37xd_suppremote_display_us/guide-board-f37xd_display_supp_super -f37xd_supp_suppremote_display_suppage-f37xd_suppage-f37xd_supp_suppage-ine_display_us_suppage-ine_display_us_suppage-f37xd_suppage-fus
'完成的建筑:./F2837xD_SYSCTRL.c'
'
'生成文件:./F2837xD_usDelay.asm'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/supert_suppremote_display-f37xd"-us/guide-board_suppremote_display_super -f37xd_suppremote_display_suppage-f37xd_us/guide-board.us/guides=f28xd_supp_supp_suppremote_display_suppage-f37xd_suppremote_display_suppremote_display_suppage-f37xd_suppage-f37xd_suppage-f37xd_suppage-fus/guid_suppage
'完成的建筑:./F2837xD_usDelay.asm
'
'生成文件:./Lab3_cpu01.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xD/supervisor_supervisore_display_guide-proc:-f37xd_supervisore_display_supervisorit_supervisore_prob_guid/cpu.cpu.c:-supervisor_supervisore_display_supervisore_prob_guid/cpu.cpu.cpu_supervisor_supervisore_display_supervisore_prob.c:-f_supervisore_prob.c:-f37x=f_us/cpu.cpu.c:-f_
'完成的建筑:./Lab3_cpu01.c'
'
'生成文件:./Tabela_Seno.c'
'调用:C2000编译器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla1 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu2 -fp_mode=relaxed -include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include -include_path="C:/f2837xd/sup两者 之间的 prev/cn/supit_board-prob_display_suppage-board.cn/sense_display_board.cn/sense_display_suppage=-board.cn/secrand_decrand_decurity/guid_super -board.c:-board_suppage-super -suppage-suppage-suppage-suppage-suppage-suppage-inu.c:-board_suppage-inu.cn_suppage-suppage=fus/cn_guid_suppage-supp
'完工建筑:.../Tabela_Seno.c'
'
gmake:目标"全部"不会由于错误而重新生成。

****构建完成****

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

    F2837xD 一日技术讲座中的 Lab3? 我假设您也在使用来自技术讲座的头文件和 F2837xD_ADC.c 文件?

    我自己将 F2837xD_ADC.c 添加到 Lab3没有遇到任何问题。 您是否更改了任何文件中的#include? F2837xD_ADC.c 是否仍包含 F237xD_device.h 和 F237xD_examples.h? F237xD_Examples.h 是否包含 F2837xD_ADC_defins.h?

    惠特尼

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、我没有更改任何头文件/#。 但是、当我尝试包含文件 F2837xD_ADC.c 时、它会生成上述错误。 我不知道该怎么做...
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    >>编译失败
    subdir_rules.mk:16:目标'F2837xD_ADC.obj'的配方失败
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    这些错误意味着由于某种原因它找不到 F2837xD_Adc_defines.h 和 F2837xD_adc.h 文件。 如果您在 Project Explorer 中查看您的项目并打开 Include > C:/F2837xD/Device_support/F2837xD_common/include、您能确保看到此处列出的 F2837xD_Adc_defines.h 文件吗?

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

    您是否成功构建了您的项目?

    惠特尼