I can transfer data between Jetson nano and raspberry pi using 2 mcp2515, however, the data from jetson nano to raspberry pi is transferred completely correctly, while the data from raspberry pi to jetson nano is not read correctly by jetson nano, although it is sent correctly. As far as I can see, a one-bit error occurs, the incoming data is multiplied by 2 or divided by 2, or the sign is read in a changed way.
I think the problem is caused by the MCP driver or the clock rate in the MCP and SPI communication.
I tried to communicate between different cards, STM32 ↔ Jetson Nano = same problem, STM32 ↔ raspberry pi = no problem, Raspberry pi ↔ Jetson nano = problem, Raspberry pi ↔ Raspberry pi = no problem.
I would be very grateful if you can help me with this, I have browsed the dtbo files related to MCP and looked at the spi clock rates, but I have no idea which one I need to change how much etc. I have no idea
It might be off by one bit. This could occur if one end thinks there is one stop bit, and the other end thinks there are either no stop bits, or two stop bits. Flow control is similar when different at two ends, but it is a complete halt of data in one direction. The default for a Jetson UART is normally 115200 8N1 and no flow control.