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.

28377D工程编译报错

Other Parts Discussed in Thread: SYSBIOS

请问编译出现如图的错误需要如何解决,在整个工程中没有找到显示有错误的地方

  • 请问您的Console内是什么信息?能否给出?

  • **** Build of configuration Debug for project Project100 ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 8 all -O
    making ../src/sysbios/sysbios.a28FP ...
    gmake[1]: Nothing to be done for 'all'.
    'Building file: ../my source/EPwm.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ti-cgt-c2000_6.4.0/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --cla_support=cla1 --vcu_support=vcu2 --include_path="C:/ti/ti-cgt-c2000_6.4.0/include" --include_path="C:/Users/Leo/Desktop/Project100/my include" --include_path="C:/Users/Leo/Desktop/Project100/TI include" -g --diag_warning=225 --diag_warning=255 --display_error_number --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="my source/EPwm.d" --obj_directory="my source" --cmd_file="configPkg/compiler.opt" "../my source/EPwm.c"
    2 Assembly Errors, No Assembly Warnings

    >> Compilation failure
    my source/subdir_rules.mk:105: recipe for target 'my source/EPwm.obj' failed
    "C:\Users\Leo\AppData\Local\Temp\1090810", ERROR! at line 705: [E0300] Symbol EALLOW has already been defined
    .dwpsn file "../my source/EPwm.c",line 265,column 2,is_stmt,isa 0

    "C:\Users\Leo\AppData\Local\Temp\1090810", ERROR! at line 710: [E0300] Symbol EDIS has already been defined
    .dwpsn file "../my source/EPwm.c",line 268,column 2,is_stmt,isa 0


    Errors in Source - Assembler Aborted
    gmake: *** [my source/EPwm.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • 'Building file: ../my source/EPwm.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ti-cgt-c2000_6.4.0/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --cla_support=cla1 --vcu_support=vcu2 --include_path="C:/ti/ti-cgt-c2000_6.4.0/include" --include_path="C:/Users/Leo/Desktop/Project100/my include" --include_path="C:/Users/Leo/Desktop/Project100/TI include" -g --diag_warning=225 --diag_warning=255 --display_error_number --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="my source/EPwm.d" --obj_directory="my source" --cmd_file="configPkg/compiler.opt" "../my source/EPwm.c"
    2 Assembly Errors, No Assembly Warnings

    >> Compilation failure
    my source/subdir_rules.mk:105: recipe for target 'my source/EPwm.obj' failed
    "C:\Users\Leo\AppData\Local\Temp\1449210", ERROR! at line 705: [E0300] Symbol EALLOW has already been defined
    .dwpsn file "../my source/EPwm.c",line 265,column 2,is_stmt,isa 0

    "C:\Users\Leo\AppData\Local\Temp\1449210", ERROR! at line 710: [E0300] Symbol EDIS has already been defined
    .dwpsn file "../my source/EPwm.c",line 268,column 2,is_stmt,isa 0


    Errors in Source - Assembler Aborted
    gmake: *** [my source/EPwm.obj] Error 1
    ------------------------------------------------------------------------------------------------------------------------------------------------
    以上是Console中出错的部分,似乎是因为我在C文件中有asm("EALLOW:")和asm("EDIS:")
  • >> Compilation failure
    my source/subdir_rules.mk:105: recipe for target 'my source/EPwm.obj' failed
    "C:\Users\Leo\AppData\Local\Temp\1449210", ERROR! at line 705: [E0300] Symbol EALLOW has already been defined
    .dwpsn file "../my source/EPwm.c",line 265,column 2,is_stmt,isa 0

    "C:\Users\Leo\AppData\Local\Temp\1449210", ERROR! at line 710: [E0300] Symbol EDIS has already been defined
    .dwpsn file "../my source/EPwm.c",line 268,column 2,is_stmt,isa 0

    这两个错误是说EALLOW 和EDIS重复定义了
    在C文件中调用EALLOW和EDIS也不需要加asm,只要包含定义EALLO和EDIS的头文件就好了
  • 是这样的,十分感谢!