s32k312 flexcan

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

s32k312 flexcan

736 Views
fengba_360
Contributor III

Dear NXP engineers, I am encountering an issue when using FlexCAN to periodically send CAN messages. For instance, when I attempt to send over 10 CAN frames within a 50ms period, I notice significant deviations in the reception times of these CAN data, with some deviations even reaching around 4ms. Specifically, I am sending CAN messages in the following manner within my task period:

FlexCAN_Ip_Send(CAN_NODE_0, mb9, &CAN_NODE_0_TX_STD_Config, 0x01, mb_data);
FlexCAN_Ip_Send(CAN_NODE_0, mb10, &CAN_NODE_0_TX_STD_Config, 0x02, mb_data);
FlexCAN_Ip_Send(CAN_NODE_0, mb11 &CAN_NODE_0_TX_STD_Config, 0x03, mb_data);
.....
FlexCAN_Ip_Send(CAN_NODE_0, mb18 &CAN_NODE_0_TX_STD_Config, 0x10, mb_data);

Could you please provide some insights on this matter?

0 Kudos
Reply
1 Reply

711 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

possible root cause could be interrupt processing, which could delay MB preparation for transmission. Can be other modules interrupts or also FlexCAN ISR itself. After successful transmission MB interrupt is called, assuming polling mode is not used.

BR, Petr

0 Kudos
Reply