Problems with the S32K144 FlexCAN message buffer

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

Problems with the S32K144 FlexCAN message buffer

704 Views
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 Kudos
5 Replies

703 Views
JihongZhang
Contributor II

zhangjihong_0-1668073938647.png

 

0 Kudos

685 Views
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 Kudos

675 Views
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 Kudos

666 Views
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 Kudos

659 Views
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.