2812c语言编译时头文件无法打开

wangmengjun123   2007-10-19 07:45 楼主
我在用2812c语言编译时头文件无法打开,错误如下:
\"pmsm.c\", line 24: fatal error: could not open source file \"DSP281x_Device.h\"
1 fatal error detected in the compilation of \"pmsm.c\".
请高手帮忙指点一二。

回复评论 (5)

引用:
cz20022631 写道:
可能是头文件路径错误,如果不想设置路径就把所需头文件放到工程文件目录下
怎么设置引用路径啊?
点赞  2008-3-1 06:17
楼主做的是永磁电动机吗,留个联系方式吧
点赞  2008-3-5 01:31
引用:
louiewong 写道:
全部错误显示如下:
------------------------------  pmsm.pjt - Debug  ------------------------------
[clarke.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"clarke.c\"
\"clarke.c\", line 15: fatal error: could not open source file \"dmctype.h\"
1 fatal error detected in the compilation of \"clarke.c\".
Compilation terminated.

>> Compilation failure

[f281xileg_vdc.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"f281xileg_vdc.c\"
\"f281xileg_vdc.c\", line 18: fatal error: could not open source file \"DSP281x_Device.h\"
1 fatal error detected in the compilation of \"f281xileg_vdc.c\".
Compilation terminated.

>> Compilation failure

[f281xpwm.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"f281xpwm.c\"
\"f281xpwm.c\", line 18: fatal error: could not open source file \"DSP281x_Device.h\"
1 fatal error detected in the compilation of \"f281xpwm.c\".
Compilation terminated.

>> Compilation failure

[f281xqep.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"f281xqep.c\"
\"f281xqep.c\", line 18: fatal error: could not open source file \"DSP281x_Device.h\"
1 fatal error detected in the compilation of \"f281xqep.c\".
Compilation terminated.

>> Compilation failure

[ipark.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"ipark.c\"
\"ipark.c\", line 16: fatal error: could not open source file \"dmctype.h\"
1 fatal error detected in the compilation of \"ipark.c\".
Compilation terminated.

>> Compilation failure

[park.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"park.c\"
\"park.c\", line 15: fatal error: could not open source file \"dmctype.h\"
1 fatal error detected in the compilation of \"park.c\".
Compilation terminated.

>> Compilation failure

[pid_reg3.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"pid_reg3.c\"
\"pid_reg3.c\", line 16: fatal error: could not open source file \"dmctype.h\"
1 fatal error detected in the compilation of \"pid_reg3.c\".
Compilation terminated.

>> Compilation failure

[pmsm.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"pmsm.c\"
\"pmsm.c\", line 24: fatal error: could not open source file \"DSP281x_Device.h\"
1 fatal error detected in the compilation of \"pmsm.c\".
Compilation terminated.

>> Compilation failure

[sin_tab.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"sin_tab.c\"
\"sin_tab.c\", line 17: fatal error: could not open source file \"dmctype.h\"
1 fatal error detected in the compilation of \"sin_tab.c\".
Compilation terminated.

>> Compilation failure

[speed_fr.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"speed_fr.c\"
\"speed_fr.c\", line 16: fatal error: could not open source file \"IQmathLib.h\"
1 fatal error detected in the compilation of \"speed_fr.c\".
Compilation terminated.

>> Compilation failure

[svgen_dq.c] \"C:\\CCStudio_v3.1\\C2000\\cgtools\\bin\\cl2000\" -g -q -fr\"c:/pmsm/pmsm/Debug\" -d\"_DEBUG\" -d\"LARGE_MODEL\" -ml -v28 -@\"../pmsm/Debug.lkf\" \"svgen_dq.c\"
\"svgen_dq.c\", line 15: fatal error: could not open source file \"IQmathLib.h\"
1 fatal error detected in the compilation of \"svgen_dq.c\".
Compilation terminated.

>> Compilation failure

Build Complete,
  11 Errors, 0 Warnings, 0 Remarks.
点赞  2009-1-4 14:09
变量定位到B1和定位到B0 DP值是不一样的,分别为6和4。
点赞  2009-1-15 09:15
我看了你的程序,没发现什么错误。
PHANTOM            RET                                                ;假中断
改为
PHANTOM    CLRC    INTM       
                    RET        ;假中断
可能会好点。
点赞  2009-1-16 12:24
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复