Hello,
What am I doing wrong?
I'm trying to get the CAN-bus up running on a Hercules development board.
Until now I have copied the example from HalCodGen on CAN-bus with interrupt.
I am adding this to a small program where I am already have interrupt up running from RTI and ADC.
But I cannot get the CAN-bus running. It seems like the command is never sent from CAN1. When I try to send the command a second time, it returns from the can.c in the middle of the transmit function (Pending command return). The first time, it goes all the way through the transmit function.
As far as I can see, I never get an interrupt that the command is received on CAN2. (Yes, they are connected with wires :-) )
The interrupt in VIM is set as shown in the HalCodGen example.
Question: There is a function in can.c to enable errorNotification, but I cannot find a function to enable the commandNotification. As far as I can see from the code in can.c, that bit (bit 3) is never touched in can.c. Is that function covered in some other way elsewhere or how is it handled?. I have tried to enable that bit after enabling errorNotification, but without any success.
Looking forward to a good hint :-)
Best regards
Michael c".)

