How to use FlexCAN1 to communicate with FreeMaster

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use FlexCAN1 to communicate with FreeMaster

995 次查看
ChenBowen
Contributor II

Dear Expert:

    MPC5744P,now I need to use CAN1 to connect with FreeMaster,because the CAN0 is being used by app.

   The Freemaster SDK only uses CAN0,is it possible to use CAN1 ?

0 项奖励
回复
1 回复

989 次查看
iulian_stan
NXP Employee
NXP Employee

Hi @ChenBowen,

You can configure FreeMASTER Driver to use CAN1 by updating its corresponding base address in freemaster_cfg.h:

/*****************************************************************************
* Select communication interface (SCI/FlexCAN base address)
******************************************************************************/

#define FMSTR_SCI_BASE         0xFBE84000UL /* LINFlex0 base on MPC574xP */
#define FMSTR_CAN_BASE         0xFFEC0000UL /* FlexCAN0 base on MPC574xP */

Note: FreeMASTER Driver does not configure the CAN interface, the setup is expected to be done in your application code.

 

0 项奖励
回复