I have two CAN transceivers on the same PCB; they are connected to a Raspberry and a PIC32 MCU.
The PIC32 can receive and send any message, but the RPI can rarely receive messages from the microcontroller. Messages from external USB CAN devices can be received perfectly by both devices. Termination is OK between L and H.
Is it a problem that the 2 transceivers are too close together? Should I look for the problem in the software settings?
simulate this circuit – Schematic created using CircuitLab
Update: Thank you for your answers. Sorry if my question did not contain enough information.
I have been using and planning CAN bus communication for years. When I designed the circuit I thought it shouldn't be a problem if I put two transceivers that close together. I tried so many things in the troubleshooting process that I started to doubt everything. I actually wondered if the particular arrangement could cause a problem.
Baud rate, wiring, other basic things to look at are fine. Now I suspect the timing, but I would be very surprised if there was a problem with that, since all the devices run an external oscillator to get the clock as accurate as possible.
I also thought about intermittent bad soldering, but then there would be more problems with the external usbcan device also. I will doublecheck that.
I think there is a software problem, but I have tried the same configuration several times and so far no problem.