I am using two Peak Systems PCAN PCI cards with two different Jetson TX2 for CAN communication. My setup initializes the channels as follows:
Code: Select all
result = CAN_Initialize(PCAN_PCIBUS1, PCAN_BAUD_500K, 0, 0, 0);
// Similarly, initializing PCAN_PCIBUS2, PCAN_PCIBUS3, etc.
80h: TX | Stuff error
40h: TX | Form error
When I set my device to Listen-Only mode:
Code: Select all
CAN_SetValue(PCAN_PCIBUS1, PCAN_LISTEN_ONLY, &PCAN_PARAMETER_ON, 4);
Baudrate is correctly set to 500K on all devices.
If I swap PCAN PCI cards, the issue remains on the same bus.
I have checked ID conflicts and there is none.
Could this be a driver issue or something related to hardware initialization? Any insights would be greatly appreciated.