how to use the module flexcan in mpc5604p

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

how to use the module flexcan in mpc5604p

2,082 Views
ananan
Contributor III

时钟.jpg

can.jpg

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。

0 Kudos
Reply
8 Replies

1,901 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

1,901 Views
ananan
Contributor III

from what I have initialized the flexcan  ,which register need to initialize ?I really do not know how to do it。

0 Kudos
Reply

1,901 Views
PetrS
NXP TechSupport
NXP TechSupport

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.

BR, Petr 

1,901 Views
ananan
Contributor III

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

0 Kudos
Reply

1,901 Views
ananan
Contributor III

the code is get from the datasheet AN2865

0 Kudos
Reply

1,901 Views
ananan
Contributor III

时钟.jpg

can初始化.jpg

寄存器值.jpg

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.

0 Kudos
Reply

1,901 Views
ananan
Contributor III

I has initialize the module flexcan as the AN2865 datasheet 。 but the flex can does not work。

0 Kudos
Reply

1,901 Views
ananan
Contributor III

SIUL.jpg

0 Kudos
Reply