S32K310 CAN MessageBuffer and HwObjectCount

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

S32K310 CAN MessageBuffer and HwObjectCount

跳至解决方案
693 次查看
Embedded_novice
Contributor III

我在使用EB配置S32K310的MCAL的CAN模块时产生一些疑问:

1.我在手册中看到S32K310的MessageBuffer大小是64,那么HwObjectCount的最大配置数是否与MessageBuffer相关,如果不相关的话,我想知道HwObjectCount的最大配置数收什么因素的限制?MessageBuffer的最大个数64又会影响什么配置?(在我个人的理解中,FIFO的大小应该是由HwObjectCount决定的,且HwObjectCount不应该超过MessageBuffer的大小)

2.CAN模块是否一定要搭配CANIF组件使用,MailBox是在使用CANIF时才会用到的概念吗?MailBox的大小与什么有关?

CANCFG.png

感谢帮助!

0 项奖励
回复
1 解答
656 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Embedded_novice,

According to the FlexCAN MCAL user manual, in case of HRH, HwObjectCount is number of
elements in the hardware FIFO.

Regarding your question, yes, CAN hardware objects defined as a PDU buffer. The CAN RAM block can store message buffers in different configurations of sizes. According to the S32K3XX reference manual, the RAM block can store 32 messages of 8 bytes, 21 messages of 16 bytes, 12 messages of 32 bytes or 7 messages of 64 bytes. So, it is based on MB.

The CAN Interface (CanIf) is found between the low-level CAN drivers and the upper communication service layers from the AUTOSAR stack. It is not related to the Mailbox concept. The mailbox system is composed of a set of message buffers (MB) that store configuration and control data, time stamp, message ID, and data (see Message buffer structure).

Julin_AragnM_0-1740164337037.png

You can read the following article to know more about the CAN module: Communicating over the CAN Bus - NXP Community.

Hope this helps.

在原帖中查看解决方案

0 项奖励
回复
1 回复
657 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Embedded_novice,

According to the FlexCAN MCAL user manual, in case of HRH, HwObjectCount is number of
elements in the hardware FIFO.

Regarding your question, yes, CAN hardware objects defined as a PDU buffer. The CAN RAM block can store message buffers in different configurations of sizes. According to the S32K3XX reference manual, the RAM block can store 32 messages of 8 bytes, 21 messages of 16 bytes, 12 messages of 32 bytes or 7 messages of 64 bytes. So, it is based on MB.

The CAN Interface (CanIf) is found between the low-level CAN drivers and the upper communication service layers from the AUTOSAR stack. It is not related to the Mailbox concept. The mailbox system is composed of a set of message buffers (MB) that store configuration and control data, time stamp, message ID, and data (see Message buffer structure).

Julin_AragnM_0-1740164337037.png

You can read the following article to know more about the CAN module: Communicating over the CAN Bus - NXP Community.

Hope this helps.

0 项奖励
回复