Both cores with same communication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-05 8:20 AM
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?
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-05 8:57 AM - edited ‎2024-02-05 8:58 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-05 8:57 AM - edited ‎2024-02-05 8:58 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-05 9:54 AM
>>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.
Up vote any posts that you find helpful, it shows what's working..
