2024-03-08 11:51 AM - last edited on 2024-03-08 12:51 PM by SofLit
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.
2024-03-14 03: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.
2024-03-08 12:32 PM
Hello,
Start by using HSE as system clock source instead of HSI for STM32G4.
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.
2024-03-09 01: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.
2024-03-09 06:49 AM
Did you change the clock source from HSI to HSE?
2024-03-09 12:13 PM
Yes I did, but I am still facing the same issues.
2024-03-11 07:57 AM
Hello,
I will try to provide you a working example this week with these boards.
2024-03-14 03: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.
2024-03-14 04:18 AM
Thanks a bunch for this, I will apply this on my system and get back to you as soon as possible.
2024-03-14 08: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.