how to use the module flexcan in mpc5604p

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to use the module flexcan in mpc5604p

2,079件の閲覧回数
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 件の賞賛
返信
8 返答(返信)

1,898件の閲覧回数
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 件の賞賛
返信

1,898件の閲覧回数
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 件の賞賛
返信

1,898件の閲覧回数
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,898件の閲覧回数
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 件の賞賛
返信

1,898件の閲覧回数
ananan
Contributor III

the code is get from the datasheet AN2865

0 件の賞賛
返信

1,898件の閲覧回数
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 件の賞賛
返信

1,898件の閲覧回数
ananan
Contributor III

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

0 件の賞賛
返信

1,898件の閲覧回数
ananan
Contributor III

SIUL.jpg

0 件の賞賛
返信