Flex CAN Message buffer Configuration

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

Flex CAN Message buffer Configuration

1,069 次查看
satheesh_mb
Contributor I

Hi ,

I have an NXP S32K142 EVB board. I had a code which works fine In FD mode with 64 bytes message configuration.

When I tried to configure the message buffer to 8 bytes or less than 64 bytes I couldn't see transmit signal in oscilloscope.

The change I made is configuring the FDCTRL.MBDSR0 = 00 to make message buffer as 8byte size. Is there any thing more to update to configure for 8 byte message buffer.

Regards,

Satheesh.

0 项奖励
1 回复

795 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

even if you set the memory buffer area to 64 payload, you can easily send 8 bytes only, just set the MB's DLC (Data Length Code) properly. Of course you have less number of MBs available.

If the payload configuration is changed using FDCTRL.MBDSR0, starting address of each MB is different, so you must be sure correct addresses are used. You can refer to chapter 53.4.5 of the RM for a MB's memory map for each payload configuration.

Do you use SDK driver or some own code?

BR, Petr  

0 项奖励