I want to test the CAN bus, but can't find FlexCAN exmple code for the mpc8306som board.
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!
-----------------------------------------------------------------------------------------------------------------------
thanks for your reponse. but i can't find the flexcan file fold in my mpc8306 ltib,why?
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.
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.