s32k312 flexcan

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

s32k312 flexcan

1,003 次查看
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 项奖励
回复
1 回复

978 次查看
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 项奖励
回复