ホーム フォーラム Texas Instruments マイコン C2000 標準ファイルがincludeエラーになる

このトピックには1件の返信が含まれ、2人の参加者がいます。6 年、 2 ヶ月前Yojiro Yojiro さんが最後の更新を行いました。

2件の投稿を表示中 - 1 - 2件目 (全2件中)
  • 投稿者
    投稿
  • #2178 返信

    YYEC
    参加者

    標準ファイルがincludeエラーになる

    「ccsv8」で別のPCからimportしたProjrctを「Debug build」すると、「stdint.h」「math.h」などが「cannot open source file」エラーになってしまいます。解決方法を教えてください。</p><p>ビルドしたエラーリストを添付いたします。
    ※添付ファイル名(txt、zip)が添付できないのでエラー出力の一部を下記にご連絡します。

    **** Build of configuration Debug for project F28075PowerPlatform-V0.03G6 ****
    “C:\\ti\\ccs800\\ccsv8\\utils\\bin\\gmake” -k all <br /><br />Building file: “C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/source/F2807x_Adc.c”
    Invoking: C2000 Compiler<br />”C:/ti/ccs800/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/bin/cl2000″ -v28 -ml -mt –cla_support=cla1 –float_support=fpu32 –tmu_support=tmu0 –include_path=”/packages/ti/xdais” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/include” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_headers/include” –include_path=”C:/ti/controlSUITE/libs/math/IQmath/v160/include” –include_path=”C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/include” –include_path=”C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/include” –include_path=”C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/include” –advice:performance=all –define=TARGET_F28075 –define=CPU1 –define=_DEBUG –define=LARGE_MODEL –define=ccs_c2k –undefine=TARGET_F28069 -g –diag_warning=225 –issue_remarks –verbose_diagnostics –quiet –preproc_with_compile –preproc_dependency=”F2807x_Adc.d_raw” “C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/source/F2807x_Adc.c”

    >> Compilation failure
    subdir_rules.mk:9: recipe for target ‘F2807x_Adc.obj’ failed
    “C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_headers/include/F2807x_device.h”, line 195: fatal error: cannot open source file “assert.h”#include <assert.h>^
    1 catastrophic error detected in the compilation of “C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/source/F2807x_Adc.c”.
    Compilation terminated.
    gmake: *** [F2807x_Adc.obj] Error 1
    Building file: “C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/source/F2807x_CpuTimers.c”
    Invoking: C2000 Compiler
    “C:/ti/ccs800/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/bin/cl2000″ -v28 -ml -mt –cla_support=cla1 –float_support=fpu32 –tmu_support=tmu0 –include_path=”/packages/ti/xdais” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/include” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_headers/include” –include_path=”C:/ti/controlSUITE/libs/math/IQmath/v160/include” –include_path=”C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/include” –include_path=”C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/include” –include_path=”C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/include” –advice:performance=all –define=TARGET_F28075 –define=CPU1 –define=_DEBUG –define=LARGE_MODEL –define=ccs_c2k –undefine=TARGET_F28069 -g –diag_warning=225 –issue_remarks –verbose_diagnostics –quiet –preproc_with_compile –preproc_dependency=”F2807x_CpuTimers.d_raw” “C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/source/F2807x_CpuTimers.c”

    >> Compilation failure<br />subdir_rules.mk:23: recipe for target ‘F2807x_CpuTimers.obj’ failed
    “C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_headers/include/F2807x_device.h”, line 195: fatal error: cannot open source file “assert.h”
    #include <assert.h>

    1 catastrophic error detected in the compilation of “C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/driverlib/can.c”.
    Compilation terminated.
    gmake: *** [can.obj] Error 1
    Building file: “../cmdline.c”
    Invoking: C2000 Compiler
    “C:/ti/ccs800/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/bin/cl2000″ -v28 -ml -mt –cla_support=cla1 –float_support=fpu32 –tmu_support=tmu0 –include_path=”/packages/ti/xdais” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_common/include” –include_path=”C:/ti/controlSUITE/device_support/F2807x/v210/F2807x_headers/include” –include_path=”C:/ti/controlSUITE/libs/math/IQmath/v160/include” –include_path=”C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/include” –include_path=”C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/include” –include_path=”C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/include” –advice:performance=all –define=TARGET_F28075 –define=CPU1 –define=_DEBUG –define=LARGE_MODEL –define=ccs_c2k –undefine=TARGET_F28069 -g –diag_warning=225 –issue_remarks –verbose_diagnostics –quiet –preproc_with_compile –preproc_dependency=”cmdline.d_raw” “../cmdline.c”

    >> Compilation failure<br />subdir_rules.mk:107: recipe for target ‘cmdline.obj’ failed
    “../cmdline.c”, line 24: fatal error: cannot open source file “stdint.h”
    #include <stdint.h>

    • このトピックは YYECが6 年、 3 ヶ月前に変更しました。
    • このトピックは YYECが6 年、 3 ヶ月前に変更しました。
    • このトピックは YYECが6 年、 2 ヶ月前に変更しました。
    #2198 返信
    Yojiro
    Yojiro
    従業員

    コンパイラの標準インクルードパスが、CCSのインストールパスと異なった定義がされているために、このエラーが発生しているものと思われます。

    -include_path=”C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/include”
    -include_path=”C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/include”

    プロジェクトのプロパティより、インクルードパスの設定をご確認ください。

    ●インクルードパスの確認方法

    1. プロジェクトの右クリックメニューから”Properties”を選択して、プロジェクトのプロパティ画面を表示します
    2. 左側のリストから、”Build” – “C2000 Compiler” – “Include Options”を選択して、インクルードパスの設定画面を表示します
    3. 「Add dir to #include search path」を確認します

    ここで、「Add dir to #include search path」の中から、次の2点を確認ください。

    • ”ti-cgt-c2000_6.4.6”へのインクルードパスは削除してください。
    • ”ti-cgt-c2000_18.1.1.LTS”へのインクルードパスについては、パスを記述されている場合は、CCSのインストールパスに合わせて修正してください。環境変数($CG_TOOL_ROOT)を使用して指定されている場合は、プロパティのLinked Resource画面より$CG_TOOL_ROOTの設定を確認のうえ、異なっている場合は、修正してください。

    ご確認のほど、よろしくお願いします。

2件の投稿を表示中 - 1 - 2件目 (全2件中)