LPC54616 TWO CHANNEL CANFD MASSAGE RAM

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

LPC54616 TWO CHANNEL CANFD MASSAGE RAM

661 Views
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 Kudos
Reply
1 Reply

506 Views
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 Kudos
Reply