Skip to main content
Visitor II
April 5, 2025
Solved

CAN filtering to hit all filters not first one

  • April 5, 2025
  • 1 reply
  • 322 views

Hi there, I'm configuring CAN filtering for STM32Hxxx. I have several filters configured. Currently, when CAN Frame match filter it is not going through other filters.

Is there a way to change filtering behavior to hit all filters that match given pattern not the first one only.

 

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello;


    @psi wrote:

    Is there a way to change filtering behavior to hit all filters that match given pattern not the first one only.


    I'm not sure I understood your question but accepting all messages except the first one:

    - I don't see the usage a such of scenario.

    - Not possible with hardware. You need to make it with software, ignore the first message then you configure the filter but this is not guaranteed as you may miss some messages during the filter configuration.

    If the first message has a specific ID, you can ignore it all the time with the filter.

    PS: in next time please specify the MCU part number: STM32Hxxx doesn't mean anything.

    Thank you

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    April 6, 2025

    Hello;


    @psi wrote:

    Is there a way to change filtering behavior to hit all filters that match given pattern not the first one only.


    I'm not sure I understood your question but accepting all messages except the first one:

    - I don't see the usage a such of scenario.

    - Not possible with hardware. You need to make it with software, ignore the first message then you configure the filter but this is not guaranteed as you may miss some messages during the filter configuration.

    If the first message has a specific ID, you can ignore it all the time with the filter.

    PS: in next time please specify the MCU part number: STM32Hxxx doesn't mean anything.

    Thank you