Problems with the S32K144 FlexCAN message buffer

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

Problems with the S32K144 FlexCAN message buffer

761 次查看
JihongZhang
Contributor II

Hi,

  I am programming the S32K144 FlexCAN, About whether this RAMn is a message cache buff?For example,I will reading the data,do I read it from the RAM section 0x80 to 0x87F?

0 项奖励
5 回复数

760 次查看
JihongZhang
Contributor II

zhangjihong_0-1668073938647.png

 

0 项奖励

742 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, from address offset 0x80 a message buffer (MB) space is allocated. To send and receive messages you need to set/read those MBs. See chapters 55.5.3-55.5.5 of the device Reference Manual to know the MB structure and a MBs address offset for different RAM block configuration (payload).

BR, Petr

0 项奖励

732 次查看
JihongZhang
Contributor II

Hi PetrS,

Thank you for your answer.I have another question,What determines the size of FlexCAN RAM  message buffer,such as the 16, 32, 64, and 128 parameters.As shown blow:

zhangjihong_0-1668408244090.png

 

0 项奖励

723 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

what is the document you are referring to?
Each individual MB is formed by 16, 24, 40, or 72 bytes, depending on the quantity of data bytes allocated for the message payload: 8, 16, 32, or 64 data bytes, respectively.
FlexCAN module of the S32K144 has 32MBs max.

BR, Petr 

0 项奖励

716 次查看
JihongZhang
Contributor II

Hi PetrS,

Thank you for your answer. I'm looking at the flexcan ug document.I read your reply, which means that the maximum MB parameter limit is determined by the chip design.