LPC54616 TWO CHANNEL CANFD MASSAGE RAM

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

LPC54616 TWO CHANNEL CANFD MASSAGE RAM

647 次查看
Cherrin
Contributor I

When two CANFD interfaces of LPC54616 chip are used, when there are a lot of CAN bus messages, CAN read messages with ID of 0 will appear (but there are no actual messages in the bus, it is speculated that rxfifo, massage ram overlap? Or failed to read?) The following is the massgeram of the two CAN interfaces that I configured. I used rxfifo in interrupt to read the message. Now I hope the kind people CAN provide a configuration method in which two CAN/CANFD messages do not make mistakes. If I want can1 to use rxfifo1, and the massageram of the two routes do not overlap, what should I do to configure the message without error

_0-1731647479348.png

_1-1731647607073.png

_2-1731647624901.png_3-1731647649417.png

LPC546XX LPC54616 CANFD USE BRS ERROR 

0 项奖励
回复
1 回复

492 次查看
Pablo_Ramos
NXP Employee
NXP Employee

There is different configuration that you should take in consideration between CAN and CANFD.

For example, for datafieldSize any size bigger than 8 is for CANFD.
You can see this as a note in the SDK

Pablo_Ramos_0-1735599502248.png

Also, default configuration taken from the instruction MCAN_GetDefaultConfig from the SDK, CANFD is not activated by default.

You can take as reference the SDK example mcan_interrupt _transfer, even though it doesn't use two CAN configuration at the same time it shows how to use them separately.

0 项奖励
回复