How to use FlexCAN1 to communicate with FreeMaster

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use FlexCAN1 to communicate with FreeMaster

991 Views
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 Kudos
Reply
1 Reply

985 Views
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 Kudos
Reply