I'm trying to transmit messages onto the EV-CAN. I've tested my hardware (a microcontroller controlling a Microchip MCP25625 CAN controller/transceiver combo) external to the car at 500kbaud and it works great. However, when I hook it up to my car's EV-CAN it receives messages just fine but when I try to transmit anything, it throws errors.
I assume this is due to wrong setup parameters in my CAN transceiver; either the baud rate or the PRSEG, PHSEG, SJW and Tq settings. My current settings are:
16MHz crystal
BRP = 1 (so Tq = 4MHz)
PRSEG = 1 Tq
PHSEG1 = 3 Tq
PHSEG2 = 3 Tq
Has anyone else successfully bidirectionally communicated on EV-CAN, and if so, what were your settings?
I assume this is due to wrong setup parameters in my CAN transceiver; either the baud rate or the PRSEG, PHSEG, SJW and Tq settings. My current settings are:
16MHz crystal
BRP = 1 (so Tq = 4MHz)
PRSEG = 1 Tq
PHSEG1 = 3 Tq
PHSEG2 = 3 Tq
Has anyone else successfully bidirectionally communicated on EV-CAN, and if so, what were your settings?