TI中文支持网
TI专业的中文技术问题搜集分享网站

求教CCS编译报错的问题~~

Other Parts Discussed in Thread:HALCOGEN

新人求教,我拿CCS新建了空的工程,然后用HALCoGen配置了串口,CAN,就一直报如下错误,要怎么解决呀,谢谢啦。

Susan Yang:

不知您的具体步骤如何?建议您按照官网给出的步骤来操作,如

Hercules\HALCoGen\v04.07.01\examples\TMS570LS31x_21x

下的example_canCommunication.c内描述的类似步骤:

@b Step @b 1:
*
*Create a new project.
*
*Navigate: -> File -> New -> Project
*
*@image html example_createProject.jpg "Figure: Create a new Project"
*
*@b Step @b 2:
*
*Configure driver code generation:*- Enable can driver*- Disable others
*
*Navigate: -> TMS570LSxx /RM4 -> Enable Drivers
*
*@image html can_enabledriver.JPG "Figure: Enable CAN Driver"
*
*@b Step @b 3:
*
*Configure CAN Baudrate:*
*Navigate: -> TMS570LSxx /RM4 -> CAN
*
*@image html can1baud.JPG "Figure: CAN1 BaudRate Configuration"
*@image html can2baud.JPG "Figure: CAN2 BaudRate Configuration"
*
*@b Step @b 4:
*
*Configure CAN MessageBox:*
*- Configure CAN1 , MessageBox 1 -- Activate and Enable TX
*- Configure CAN2 , MessageBox 1 -- Activate and Enable RX
*
*Navigate: -> TMS570LSxx /RM4 -> CAN
*
*@image html canCommunication1.JPG "Figure: CAN1 MBox Configuration"
*@image html canCommunication2.JPG "Figure: CAN2 MBox Configuration"
*
*@b Step @b 5:
*
*Copy the source code below into your sys_main.c or replace sys_main.c with this file.
*
*The example file can also be found in the examples folder: ../HALCoGen/examples
*
*@note HALCoGen generates an empty main function in sys_main.c,*

赞(0)
未经允许不得转载:TI中文支持网 » 求教CCS编译报错的问题~~
分享到: 更多 (0)