Re: an interesting CAN driver issue



Achilles wrote:

But when I replaced the vector CAN Card XL with CAN Card X, the frames
stopped appearing on the trace window.

The only viable conclusion to be drawn from that is that something about your CanCard X (the card itself, the drivers you're using with it, or its firmware) is plain and simply broken.

after so much debugging I found that the DLC register was creating the
problem. I wanted to transmit always an 8 bytes long frame. I was
putting the value of dlc as -->> DLC_Reg |= 0x08;

When I changed the implementation to -->> DLC_Reg |= 0x08;

You're making no sense whatsoever. You changed it, to the exact same thing, and behaviour changes?

.