these are my initialization of the module Flexcan in the MPC5604.but it does not work.I do not kown how to use the module 。it can not transmit data and receive data 。please help me!My English is not good,forgive me。
Hi,
For the simple FlexCAN demo you can refer to the AN2865 (chapter 25, http://cache.nxp.com/files/32bit/doc/app_note/AN2865.pdf) and associated SW package.
BR, Petr
from what I have initialized the flexcan ,which register need to initialize ?I really do not know how to do it。
What kind of board do you have?
Share full code you are using. Measure TX/RX and bus signal with scope. Do you see any signal there?
Share FlexCAN registers values.
after I run the transmitmsg function,the CAN_0.BUF[0].CS.B.CODE=0xc.it does not �automatic change to the value of 8
the code is get from the datasheet AN2865
first thank you for your help very much.The board is my design. the hardware should be no problem.there is no signal in tx and rx.
I has initialize the module flexcan as the AN2865 datasheet 。 but the flex can does not work。