2023-11-08 03:27 AM
I am trying to connect 2 NUCLEO-G0B1RET6 boards,using CAN FD. I previously did it using CAN, But now i am trying to connect these boards using CAN FD. So far no success,I want to know if it is possible to do it using CANFD.Kindly help me in this regard.
Solved! Go to Solution.
2023-11-09 08:28 AM
For all we know, the OP could have 2 different computers or just two USB chargers connected to each setup. If so then the grounds are not common to each other and communication will not work correctly. However, If both Nucleo boards are connected to the same computer then the USB ports would provide ground reference between the 2 Nucleo boards/Transceivers.
I think some people may mistakenly think they only have to run a twisted pair of wires from one location to another location, but don't know that differential signals also need a ground reference between all nodes.
2023-11-14 01:43 AM - edited 2023-11-14 09:18 AM
It's a controversy subject on the internet: "is common ground needed for CAN communication?"
Example:
https://www.edn.com/does-the-can-bus-need-a-common-ground/
https://electronics.stackexchange.com/questions/198864/is-a-ground-common-needed-for-proper-can-bus-communication#:~:text=Yes%2C%20a%20common%20ground%20is,able%20to%20recognize%20the%20bits.
For me, common ground is not necessary at least for just testing with the same power levels. And I don't think the issue above is related to a common mode level / ground offset issues. It's more likely related to the usage of a non-suitable transceiver.
2023-11-15 08:26 PM - edited 2023-11-15 08:33 PM
Hello everyone
I have achieved,whatever i was trying to do.Thanks for your inputs.This really helped me to understand few basic things.
Although there was problem related to my filter ID configuration due to which i wasn't able to transmit and receive the data.
Now everything is resolved.
Current issue: I'm trying to transmit,the data which was recieved(using FDCAN) from MCU1 and MCU2,to serial monitor(Tera Term) by using UART but I'm getting "d" for 100, "(" for 40. Is there any way to overcome this? Please share your views on it.
2023-11-15 10:01 PM
show your code
2023-11-15 10:31 PM - edited 2023-11-15 10:48 PM
2023-11-15 11:00 PM
I Googled Tera Term and I think Tera Term doesn't show hex values, only ASCII. If so, try Docklight as it can show either type, plus decimal or binary
2023-11-15 11:08 PM - edited 2023-11-16 01:10 AM
2023-11-16 12:49 AM
Hi @Arjun_Bansal ,
You're welcome. Please click on Accept as Solution on the reply which solved your first issue (described in your first comment) as its gives a better visibility on the answered topics.
Thank you