Does it has FlexCAN exmple code in mpc8306-ltib?

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

Does it has FlexCAN exmple code in mpc8306-ltib?

1,380 Views
00lirui
Contributor I

     I want to test the CAN bus, but can't find FlexCAN exmple code for the mpc8306som board.

0 Kudos
Reply
4 Replies

1,247 Views
r8070z
NXP Employee
NXP Employee

Have a great day, my name Sergey,

The MPC8306 LTIB Linux BSP supports FlexCAN. There is FlexCAN driver code for the TWR-MPC830x board.

Here excerpt from flexcan.h  included into the BSP :

/*

* drivers/net/flexcan/flexcan.h

*

* Definitions for Freescale flexcan Driver in MPC830x

* Based on imx25\flexcan driver.

*

* Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.

*

*

* The code contained herein is licensed under the GNU General Public

* License.

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,247 Views
00lirui
Contributor I

thanks for your reponse. but i can't find the flexcan file fold in my mpc8306 ltib,why?

0 Kudos
Reply

1,247 Views
r8070z
NXP Employee
NXP Employee

Please create service request to Freescale support about that on page
http://www.freescale.com/webapp/sps/site/homepage.jsp?code=SUPPORTHOME

and they will point where to find it or send you the source files. I myself got source files as example for CAN programming from Freescale expert.

0 Kudos
Reply

1,247 Views
00lirui
Contributor I

I created a requeset to Freescale support.but I am not sure what can I get. Could you give your example to me?  thank you so much.

0 Kudos
Reply