FlexCAN's Mailbox and Message Buffers

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

FlexCAN's Mailbox and Message Buffers

跳至解决方案
2,061 次查看
symplesky
Contributor II

I am reading the manual, but I am a bit confused about the relationship between Mailbox and Message Buffers. Are they the same thing?

微信图片_20210830124405.png

0 项奖励
回复
1 解答
2,036 次查看
Senlent
NXP TechSupport
NXP TechSupport

理解的不对,

参考上一个回答图片中的内容,每个MB的大小是可以配置的,所有的MB处于RAM的一段连续空间,当你使用信箱的时候,你需要先选择MB的大小(16,24,40,72),当然这个大小和CAN标准有关(CAN2.0或者CAN FD)。如果配置为FIFO,又有些区别。

在原帖中查看解决方案

3 回复数
2,050 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@symplesky

S32K-RM 55.5 Functional description:

      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).

Message Buffer Structure.

    

Senlent_3-1630302439653.png

BR!

     Jim.

 

 

 

 

0 项奖励
回复
2,047 次查看
symplesky
Contributor II

Thank you for your reply, Jim. There are totally 32 Message Buffers in CAN1, when I set the Mailbox number with 16, dose it means every Mailbox have 2 Message Buffers? 

0 项奖励
回复
2,037 次查看
Senlent
NXP TechSupport
NXP TechSupport

理解的不对,

参考上一个回答图片中的内容,每个MB的大小是可以配置的,所有的MB处于RAM的一段连续空间,当你使用信箱的时候,你需要先选择MB的大小(16,24,40,72),当然这个大小和CAN标准有关(CAN2.0或者CAN FD)。如果配置为FIFO,又有些区别。