主题中讨论的其他器件:C2000WARE
您好
我更改了 C2000ware 4.3.0.0示例(can_ex4_simple_transmit) c 文件并在 F28379D LaunchPad 上进行检查、可以正常工作。
最后、我将项目文件和相关文件复制到另一个文件夹中、按如下所示更改.proectspec 文件的内容:
<projectSpec>
<project
name="can_ex4_simple_transmit_F28379D"
device="TMS320F28377D"
cgtVersion="22.6.0.LTS"
products="c2000ware_software_package"
outputFormat="ELF"
launchWizard="False"
linkerCommandFile=""
enableSysConfigTool="true"
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json --device F2837xD"
>
<pathVariable name="C2000WARE_ROOT" path="C:/ti/c2000/C2000Ware_4_03_00_00" scope="project" />
<pathVariable name="C2000WARE_DLIB_ROOT" path="${C2000WARE_ROOT}/driverlib/f2837xd/driverlib/" scope="project" />
<configuration name="CPU1_RAM" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${C2000WARE_DLIB_ROOT} -v28 -ml -mt --define=_LAUNCHXL_F28379D --define=DEBUG --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --define=CPU1 --diag_warning=225 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--entry_point code_start --stack_size=0x100 " />
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${C2000WARE_DLIB_ROOT} -v28 -ml -mt --define=_LAUNCHXL_F28379D --define=DEBUG --define=_FLASH --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --define=CPU1 --diag_warning=225 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--entry_point code_start --stack_size=0x100 " />
<file action="copy" path="${C2000WARE_ROOT}/device_support/f2837xd/common/include/driverlib.h" targetDirectory="device" />
<file action="copy" path="${C2000WARE_ROOT}/device_support/f2837xd/common/include/device.h" targetDirectory="device" />
<file action="copy" path="${C2000WARE_ROOT}/device_support/f2837xd/common/source/device.c" targetDirectory="device" />
<file action="copy" path="${C2000WARE_ROOT}/device_support/f2837xd/common/targetConfigs/TMS320F28379D.ccxml" targetDirectory="targetConfigs" />
<file action="copy" path="${C2000WARE_ROOT}/device_support/f2837xd/common/cmd/2837xD_RAM_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="CPU1_RAM" />
<file action="copy" path="${C2000WARE_ROOT}/device_support/f2837xd/common/cmd/2837xD_FLASH_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="CPU1_FLASH" />
<file action="copy" path="${C2000WARE_ROOT}/device_support/f2837xd/common/source/F2837xD_CodeStartBranch.asm" targetDirectory="device" />
<file action="link" path="${C2000WARE_DLIB_ROOT}/ccs/Debug/driverlib.lib" targetDirectory="" />
<file action="copy" path="${C2000WARE_DLIB_ROOT}" targetDirectory="device" excludeFromBuild="True"/>
<file action="copy" path="can_ex4_simple_transmit_F28379D.c" targetDirectory="" />
</project>
</projectSpec>
e2e.ti.com/.../can_5F00_ex4_5F00_simple_5F00_transmit_5F00_F28379D.zip
在 LaunchPad 上运行程序时、无法从 CAN 接收器获得任何通信数据。
有人会为我指出错误的地方吗?
谢谢。
家开市