Flexcan Recieve message

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

Flexcan Recieve message

跳至解决方案
1,706 次查看
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,690 次查看
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,691 次查看
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 项奖励
回复