Skip to main content
mohammad yaghoobi
Visitor II
April 11, 2018
Question

stm32f407 can1 and can2 not work simultaneously

  • April 11, 2018
  • 6 replies
  • 1518 views
Posted on April 11, 2018 at 16:18

hi.

- i working on stm32f407.

- i need both can1 and can2 in my project.

- can1 separately work and can2 separately work.

my problem is:

- can1 and can2 not work simultaneously.

please help me...

    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    April 11, 2018
    Posted on April 11, 2018 at 17:17

    You'll likely need to debug your software implementation.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Frank Voorburg
    Associate II
    April 11, 2018
    Posted on April 11, 2018 at 17:45

    Hello Mohammad,

    CAN1 and CAN2 can work simultaneously. Just keep in mind that CAN1 and CAN2 share message reception filters. Only using filters 0..13 for CAN1 and 14..27 for CAN2 for example, might solve your problem.

    Good luck,

    -Frank

    mk a
    Visitor II
    January 8, 2019

    Try this

    first configure CAN1 then CAN2.

    u should give clock to both CAN1 and CAN2

    turboscrew
    Senior III
    January 8, 2019

    BTW, the allocation of filters between CAN1 and CAN2 can be done any way you want in HW, but Cube forces the split in two equal parts: 0 - 13 for CAN1 and 14 - 27 for CAN2.

    turboscrew
    Senior III
    January 8, 2019

    BTW, the allocation of filters between CAN1 and CAN2 can be done any way you want in HW, but Cube forces the split in two equal parts: 0 - 13 for CAN1 and 14 - 27 for CAN2.

    turboscrew
    Senior III
    January 8, 2019

    (This friggin' forum SW... gives an error, but still adds a comment.)