Hello everyone. I have been trying to set up a CAN communication between two teensy 3.6. I have been using a TJA1051T/3 (link) can transiver. I have connected the Vref pin to 3.3V, Tx to Tx and Rx to Rx, CANH to CANH and CANL to CANL. Using two 60ohm resistors with a cap to ground for each termination. Both microcontrollers and the transivers share a common ground.
First I tried using the example code found of the FlexCAN library. The second teensy never received any message and the CAN1.available condition was never met. I have also tried measuring the voltage on the can bus lines using an oscilloscope and no signal was measured. The Tx pin on the transmitting teensy instead presented some PWM signal. The RX pin on the receiving is stuck at one.
I have also tried some other codes found online (such as this one and the result was the same. I am quite confused on what I'm doing wrong so any help is appreciated!
PS: I don't have pictures of wiring/signal readings right now. If needed I can add them on Monday.
First I tried using the example code found of the FlexCAN library. The second teensy never received any message and the CAN1.available condition was never met. I have also tried measuring the voltage on the can bus lines using an oscilloscope and no signal was measured. The Tx pin on the transmitting teensy instead presented some PWM signal. The RX pin on the receiving is stuck at one.
I have also tried some other codes found online (such as this one and the result was the same. I am quite confused on what I'm doing wrong so any help is appreciated!
PS: I don't have pictures of wiring/signal readings right now. If needed I can add them on Monday.