Flexcan Recieve message

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

Flexcan Recieve message

Jump to solution
1,706 Views
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 Kudos
Reply
1 Solution
1,690 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
1,691 Views
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 Kudos
Reply