I want to design a bare board can driver, but something goes wrong, and I don't know how to solve it:
When I loopback CAN1 and CAN2 everything is right!
But when I disconnect them ,there are bus errors all the time !
And I can't send or receive any data from other board.
I'm sure the baud rate is right, and the pins are right.
How to config flexcan's registers?
I copy from Linux.