Skip to main content
Visitor II
February 5, 2024
Solved

Both cores with same communication

  • February 5, 2024
  • 1 reply
  • 991 views

Hey,
I use stm32h745, I want to use FDCAN1 communication with both cores.
What is the effect of the decision on which core to perform initializer in the CubeMX?

    This topic has been closed for replies.
    Best answer by TDK

    Selecting the core will determine which core's startup code will initialize the peripheral. Either core can do initialization, just need to make sure:

    • Initialization is done before use.
    • Software state machine is accurate.
    • Cores don't access the peripheral at the same time.

    Generally, the second point is tricky as the initialization initializes the state machine. But you can set this manually.

    The third point is also tricky unless you use a hardware semaphore or other mechanism to ensure exclusive access.

     

    It's going to be a lot more straightforward to dedicate FDCAN to a single core if you can.

    1 reply

    TDKAnswer
    Super User
    February 5, 2024

    Selecting the core will determine which core's startup code will initialize the peripheral. Either core can do initialization, just need to make sure:

    • Initialization is done before use.
    • Software state machine is accurate.
    • Cores don't access the peripheral at the same time.

    Generally, the second point is tricky as the initialization initializes the state machine. But you can set this manually.

    The third point is also tricky unless you use a hardware semaphore or other mechanism to ensure exclusive access.

     

    It's going to be a lot more straightforward to dedicate FDCAN to a single core if you can.

    Graduate II
    February 5, 2024

    >>It's going to be a lot more straightforward to dedicate FDCAN to a single core if you can.

    Yeah, This..

    If you can't get this to work efficiently / effectively on a single core, your problems with simply compound if you add more.