Unable to establish FDCAN communication between two different NUCLEO boards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-08 11:51 AM - last edited on ‎2024-03-08 12:51 PM by mƎALLEm
I am trying to establsih communication between a NUCLEO G474RE and a NUCLEO H7A3ZI-Q thorugh FDCAN. I have successfully accomplished FDCAN communication for both the boards individually using Normal mode as these boards have multiple FDCAN peripherals. I am using two ADM3050E FDCAN transceivers for communication. Now, I have set the baud rate and clock speed of FDCAN same for both boards, yet I have been unsuccessful. So, I wanted to know what I am doing wrong. Please find atteched zip files containing my projects.
Solved! Go to Solution.
- Labels:
-
CAN
-
FDCAN
-
STM32G4 Series
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-14 3:45 AM
Hello,
As promised, I setup two projects (in attachment) with NUCLEO-G474RE and NUCLEO-H7A3ZI-Q based on this example with some modifications (ex: using RNG to generate random data to send from both sides):
I'm using MCP2562FD transceiver.
Each time you push a key on a board, the data is received from the other one and vice versa. A LED toggles each time you receive a frame.
A photo of my setup:
Hope it helps you and other users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-08 12:32 PM
Hello,
Start by using HSE as system clock source instead of HSI for STM32G4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-08 12:50 PM
You have code commented out so no telling what you're doing right now between the two boards. Set the code as you'd expect the two boards to communicate correctly. Then we can further evaluate what is happening.
Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle with multiple UART instances tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-09 1:36 AM
Thank you for your reply, Let me clear up on what I am trying to do. I am trying to transmit from G474 and receive on H7. These codes were initially configured to transmit and receive both, hence the commenting of code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-09 6:49 AM
Did you change the clock source from HSI to HSE?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-09 12:13 PM
Yes I did, but I am still facing the same issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-11 7:57 AM
Hello,
I will try to provide you a working example this week with these boards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-14 3:45 AM
Hello,
As promised, I setup two projects (in attachment) with NUCLEO-G474RE and NUCLEO-H7A3ZI-Q based on this example with some modifications (ex: using RNG to generate random data to send from both sides):
I'm using MCP2562FD transceiver.
Each time you push a key on a board, the data is received from the other one and vice versa. A LED toggles each time you receive a frame.
A photo of my setup:
Hope it helps you and other users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-14 4:18 AM
Thanks a bunch for this, I will apply this on my system and get back to you as soon as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-14 8:15 AM
It worked!!! Thanks a lot for your help, I was totally stuck with my code, although I still have to figure out what was wrong with my code.
