Flexcan Recieve message

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

Flexcan Recieve message

ソリューションへジャンプ
1,701件の閲覧回数
AparnaSridharan
Contributor II

Hi,

I am trying to  transmit and receive message through CAN. I am using following part to receive message through code. 

AparnaSridharan_1-1647940058222.png

I am transmitting message through vechicle SPY which is not updated in CAN_recieve buffer. Also whether this function depends IFLAG value. If CAN receive depends on IFLAG value how we need to update?

 Also I am using CAN_recieve part of FlexCAN program for CAN 2.0 in cookbook for S32K144.

Please help to fix this issue. Let me know if any another information needed to fix this.

0 件の賞賛
返信
1 解決策
1,685件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this function just read out MB4, so should be called after MB4 receive a message. You should have some code which test MB4 flag if set, which indicates received message into this MB. Or could be called from interrupt if this is enabled for MB4.

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,686件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this function just read out MB4, so should be called after MB4 receive a message. You should have some code which test MB4 flag if set, which indicates received message into this MB. Or could be called from interrupt if this is enabled for MB4.

BR, Petr

0 件の賞賛
返信