Re: Source code for CAN Implementations




"Urs Beeli" <usenet@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:slrnf9rv41.jre.usenet@xxxxxxxxxxxxxxxxxxx
On Mon, 16 Jul 2007 20:45:57 GMT dathome wrote:
"raj" <maddukuri.rajesh@xxxxxxxxx> wrote in message
news:1184104563.300014.48500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear All

I Kindly request the Source code links for CAN Implementation as I am
very curious about insights.

Unfortunately I am not aware of any CAN implementation that are open
source
or in the public domain.

In my former job we have been using CAN on both an infineon C167/C164 and
on
a PPC5200. On the former we wrote our own CAN and CANopen library, on the
latter we bought the Vector CAN/CANopen stack and had them adapt their CAN
driver for our hardware.

Hi Raj,

This depends on how much detail you need! I've written my own small
drivers
for C164 and have also used drivers from Vector. The Vector ones are
pretty
daunting to get started with and it's unlikely you'll be able to get
hold of
them anyway unless you know someone ;-).

I doubt you would get them without dishing out some serious money!
However,
despite being daunting, they are a fine piece of software, I was very much
impressed with them (both their performance and their source code). Also,
their people are competent and helpful.


I've got to disagree somewhat with the comments regarding how good the
Vector drivers were with particular reference to the coding standards used.
They were littered with continue and break statements as well as having
bunches of code that was compiled dependant on #defines. Not at all MISRA-C
compliant despite being for vehicle platforms! Additionally the footprint
was way bigger than necessary occupying about 8-9k on a 16bit micro. They
obviously have very good sales teams to have got all the major car
manufacturers to use it.

When I asked them about MISRA compliance and SIL2 in particular they had no
good answer and technically if you are using a non SIL2 compliant drivers in
your application then you can't claim your system to be SIL2 even if all
your code has been developed in this way. Bit of a problem when the
customer stipulates both SIL2 and to use the Vector drivers!

To be fair though the support was good including on one occasion that I
visited them at short notice in their offices and sat with a developer to
fix a problem I had, well worth the ~£1000 round trip cost as it was
critical to the project. The execution time of the various tasks also
seemed pretty good as well which suggests that a large amount of the code
was never actually used.



.



Relevant Pages

  • Re: Source code for CAN Implementations
    ... I Kindly request the Source code links for CAN Implementation as I am ... for C164 and have also used drivers from Vector. ... MISRA-C and SIL2 were not something we cared about greatly:) ... third party libraries I have seen in my time, that was a positive surprise. ...
    (comp.arch.embedded)
  • GNU asks Taiwan PC makers to free their drivers
    ... operating system and the free software movement, is in Taiwan on a new ... "We just need the information about what their drivers have to do," Stallman ... two Taiwanese makers of graphics chips released the source code ...
    (alt.os.linux.redhat)
  • Re: Driver Expert
    ... WinDBG requires source code for each driver version that you ... > to debug, but your major revisions will have labels in VSS anyways. ... > However, minor revisions may not, so having the source in the SoftICE ... This is not always nice IMO, especially for big drivers. ...
    (microsoft.public.development.device.drivers)
  • GNU asks Taiwan PC makers to free their drivers
    ... operating system and the free software movement, is in Taiwan on a new ... "We just need the information about what their drivers have to do," Stallman ... two Taiwanese makers of graphics chips released the source code ...
    (alt.os.linux.suse)
  • Re: Anybody using 64-bit Windows?
    ... I am using Vista 64bit. ... software becomes compliant over time. ... occassional BSOD with a tv tuner because the drivers aren't ... The latest Adobe Photoshop CS4 includes a version specifically ...
    (alt.comp.hardware.pc-homebuilt)