Skip to main content
Explorer
December 24, 2024
Solved

CAN1 and CAN2 for STM32F407EVB

  • December 24, 2024
  • 2 replies
  • 581 views

Hi all

I want to understand configuration for CAN1 and CAN2 in a single board.

Can you suggest me example code ?

B.R

Ash

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

    Hello, 

    You will use CAN2 as CAN1 but you need to take care of the filter configuration especially the SlaveStartFilterBank and FilterBank for CAN2: read this article.

    PS: there is no CAN1 + CAN2 example available in CubeF4.

    2 replies

    mƎALLEmAnswer
    Technical Moderator
    December 24, 2024

    Hello, 

    You will use CAN2 as CAN1 but you need to take care of the filter configuration especially the SlaveStartFilterBank and FilterBank for CAN2: read this article.

    PS: there is no CAN1 + CAN2 example available in CubeF4.

    Ash1Author
    Explorer
    December 24, 2024

     

    Technical Moderator
    December 24, 2024

    But you need to do some tests and tell us what you found before asking questions.

    Then better to attach your complete project. Sharing parts of code may hide some issues.

    Technical Moderator
    December 26, 2024

    Almost the same question (continuation) on this thread