how to use the module flexcan in mpc5604p

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to use the module flexcan in mpc5604p

2,081 次查看
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,900 次查看
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,900 次查看
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,900 次查看
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,900 次查看
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,900 次查看
ananan
Contributor III

the code is get from the datasheet AN2865

0 项奖励
回复

1,900 次查看
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,900 次查看
ananan
Contributor III

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

0 项奖励
回复

1,900 次查看
ananan
Contributor III

SIUL.jpg

0 项奖励
回复