Re: C_CAN/D_CAN bug and fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Wolfgang,


On 21/06/18 13:59, Wolfgang Grandegger wrote:

<snip>

> Looking to the code, I see a problem with reading the status register
> (C_CAN_STS_REG). It should *only* be read if bit 15 of the interrupt
> status register (C_CAN_INT_REG) is set/pending. According to the manual,
> reading the status register will also clear the bit in C_CAN_INT_REG.
> This could explain lost (bus-off) status interrupts and also the strange
> messages I mentioned above.
>
> Wolfgang.

It sounds plausible. I can try it. Have you got a good datasheet for D_Can ?

Best I have is:

https://www.yumpu.com/en/document/view/24499391/d-can-bosch-semiconductors-and-sensors

which is terrible!

Joe


--
To unsubscribe from this list: send the line "unsubscribe linux-can" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux