This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm trying to set up a CAN network with two nodes, namely tms570ls1224 and tms570ls1227. I'm following TI's CAN communication example on youtube to get a feel of how the communication protocol is configured, link:
In my CAN project, the TMS570ls1227 is transmitting and tms570ls1224 is the receiver. The issue that I'm facing is that I don't receive anything on my receiving node.
Any ideas what I should look into, to figure out what's wrong in my network? I have the transceiver for both nodes to convert from TTL logic to CAN bus logic, I've checked for open-circuit, the circuit is complete.
I've never worked with CAN before so it would be really helpful if someone can guide me towards figuring out what the issue could be. Looking forward to your responses. Thank you for your time.
Sincerely,
Junaid Khan
Hello,
You are saying that nothing is received from the RX side but are you sure there is signal going out from Tx side?
Hello Miro,
Thank you for your reply.
I'm going to attach my code for you, hoping you can point my mistakes.
And to answer your question, yes I've seen data go out of the TX side, but nothing is received on the receiving end.
I'm using:
CAN1 on both 1224 and 1227.
MB1 on 1224 to transmit a message with ID=1 to MB2 of 1227 with receive filter of ID=1
I'm using transmit and receive interrupts.
I've activated and enabled interrupts on both ends.
I've attached zipped files of my projects for both 1224 and 1227 for your reference.
Looking forward to your reply. Thank you for your time.
Cheers, 5518.1224_CAN_NODE1.zip3125.1227_CAN_NODE2.zip
Junaid Jawed Khan
I figured it out. I switched the transceiver on the receiving end and I'm receiving the message. But I'm unable to transmit a message from the receiving end - which is odd. What could possibly be the issue?
Hello,
yes, I've resolved this issued. The transceiver was the issue. Swapped the transceiver with a new one, communication is good.