Skip to main content
DKuma.3
Associate II
December 14, 2021
Question

SPC582B60E1 CAN message filtering issue.

  • December 14, 2021
  • 1 reply
  • 797 views

I am using dedicated Rx buffer and configured the filter to accept 3 CAN messages.

For example,

0x250 in Rx buffer 0

0x240 in Rx buffer 7

0x270 in Rx buffer 12

Total number of Rx buffer used 32.

Using MCAN Subsystem 0 MCAN 0. Shared RAM size is 3072. Standard CAN message with 500K baud rate (No CANFD).

My problem is, until few minutes (~5 min) all the above messages are received perfectly. Suddenly, all but the lowest buffer ID message (Here 0x250) is received only. Other messages are dropped.

Callback is used to copy received message to another buffer.

Anyone faced similar issue?

If you have any idea, please share your experience.

Thanks

D. Kumar

    This topic has been closed for replies.

    1 reply

    DCARR
    Visitor II
    December 17, 2021

    Hi,

    please take care that after reading a received message the message buffer is correctly unlocked by your SW clearing the corresponding bit in NDAT register. If the NDAT bit associated to a message buffer is set, then the message buffer will not be updated and you will lost incoming messages.

    Best regards

    Domenico