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.

TMS320F280049C: 移植程序求助

Part Number: TMS320F280049C
Other Parts Discussed in Thread: SFRA, DRV8329AEVM, DAC128S085

大家好! 我在移植例程时出现了编译失败情况(f28002x的例程移植到f28004x中)希望有大佬指点迷津!感激不尽!

>> Compilation failure
libraries/control/mtpa/subdir_rules.mk:9: recipe for target 'libraries/control/mtpa/mtpa.obj' failed
"D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device/device.h", line 63: fatal error #35: #error directive: "Invalid TMU Configuration"
1 catastrophic error detected in the compilation of "../libraries/control/mtpa/mtpa.c".
Compilation terminated.
gmake: *** [libraries/control/mtpa/mtpa.obj] Error 1
Building file: "../sys_main.c"
Invoking: C2000 Compiler
"C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcu0 -O3 --opt_for_speed=3 --fp_mode=relaxed --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/pi" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/fwc" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/mtpa" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/vs_freq" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/dclink_ss" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/filter/filter_fo" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/est_lib" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/esmo" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/speedfr" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/speedcalc" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/ssipd" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/isbldc" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/encoder" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/hall" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/clarke" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/ipark" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/park" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/svgen" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/volts" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/angle_gen" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/cpu_time" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/datalog" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/step_response" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/traj/" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/rimpulse" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/mod6cnt" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/types/include" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/sfra" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/dacs/dac128s085" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_control" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_control/common/include" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_control/drivers/include" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_board" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device/device_support/headers/include" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device/driverlib" --include_path="C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=_INLINE --define=_FLASH --define=_F28004x --define=_FULL_FAST_LIB --define=DRV8329AEVM_REVA --define=MOTOR1_FAST --define=MOTOR1_ESMO_N --define=MOTOR1_ENC_N --define=MOTOR1_HALL_N --define=HALL_CAL_N --define=MOTOR1_ISBLDC_N --define=MOTOR1_DCLINKSS --define=SST_ENABLE_N --define=MOTOR1_OVM_N --define=MOTOR1_FWC_N --define=MOTOR1_MTPA_N --define=MOTOR1_SSIPD_N --define=MOTOR1_VOLRECT_N --define=DATALOGF2_EN_N --define=DAC128S_ENABLE --define=DAC128S_SPIB --define=CPUTIME_ENABLE_N --define=TEST_ENABLE_N --define=SFRA_ENABLE_N --define=STEP_RP_EN_N --define=CMD_POT_EN_N --define=CMD_CAP_EN_N --define=CMD_SWITCH_EN_N --define=CMD_CAN_EN_N --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="sys_main.d_raw" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/Flash_lib_DRV8329A_1SC/syscfg" "../sys_main.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'sys_main.obj' failed
"D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device/device.h", line 63: fatal error #35: #error directive: "Invalid TMU Configuration"
1 catastrophic error detected in the compilation of "../sys_main.c".
Compilation terminated.
gmake: *** [sys_main.obj] Error 1
Building file: "../libraries/dacs/dac128s085/dac128s085.c"
Invoking: C2000 Compiler
"C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu1 --vcu_support=vcu0 -O3 --opt_for_speed=3 --fp_mode=relaxed --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/pi" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/fwc" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/mtpa" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/vs_freq" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/control/dclink_ss" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/filter/filter_fo" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/est_lib" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/esmo" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/speedfr" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/speedcalc" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/ssipd" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/isbldc" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/encoder" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/observers/hall" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/clarke" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/ipark" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/park" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/svgen" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/transforms/volts" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/angle_gen" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/cpu_time" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/datalog" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/step_response" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/traj/" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/rimpulse" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/mod6cnt" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/utilities/types/include" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/sfra" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/libraries/dacs/dac128s085" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_control" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_control/common/include" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_control/drivers/include" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_board" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device/device_support/headers/include" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device/driverlib" --include_path="C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=_INLINE --define=_FLASH --define=_F28004x --define=_FULL_FAST_LIB --define=DRV8329AEVM_REVA --define=MOTOR1_FAST --define=MOTOR1_ESMO_N --define=MOTOR1_ENC_N --define=MOTOR1_HALL_N --define=HALL_CAL_N --define=MOTOR1_ISBLDC_N --define=MOTOR1_DCLINKSS --define=SST_ENABLE_N --define=MOTOR1_OVM_N --define=MOTOR1_FWC_N --define=MOTOR1_MTPA_N --define=MOTOR1_SSIPD_N --define=MOTOR1_VOLRECT_N --define=DATALOGF2_EN_N --define=DAC128S_ENABLE --define=DAC128S_SPIB --define=CPUTIME_ENABLE_N --define=TEST_ENABLE_N --define=SFRA_ENABLE_N --define=STEP_RP_EN_N --define=CMD_POT_EN_N --define=CMD_CAP_EN_N --define=CMD_SWITCH_EN_N --define=CMD_CAN_EN_N --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="libraries/dacs/dac128s085/dac128s085.d_raw" --include_path="D:/TI/transport/universal_motorcontrol_lab_f28004x/Flash_lib_DRV8329A_1SC/syscfg" --obj_directory="libraries/dacs/dac128s085" "../libraries/dacs/dac128s085/dac128s085.c"

>> Compilation failure
libraries/dacs/dac128s085/subdir_rules.mk:9: recipe for target 'libraries/dacs/dac128s085/dac128s085.obj' failed
"D:/TI/transport/universal_motorcontrol_lab_f28004x/src_device/device.h", line 63: fatal error #35: #error directive: "Invalid TMU Configuration"
1 catastrophic error detected in the compilation of "../libraries/dacs/dac128s085/dac128s085.c".
Compilation terminated.
gmake: *** [libraries/dacs/dac128s085/dac128s085.obj] Error 1
Building file: "../libraries/filter/filter_fo/filter_fo.c"

  • 您好

    您可以查看通用工程和实验用户指南:www.ti.com/.../spruj26、然后按照该指南将实验移植到 F280049C。 您可以根据错误消息来解决此问题、似乎您更改了实验目录、并且某些头文件无法正确导入和找到。