View previous topic :: View next topic |
Author |
Message |
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
Is it OK to sell source code containing CCS Drivers ? |
Posted: Wed May 16, 2007 8:37 am |
|
|
Hi,
I have developed several projects that use the standard CCS drivers for various devices like 24LC256, MCP3208 etc alongwith the code I developed.
Is it OK to sell source code containing the drivers for these devices ??
Also can the source code be freely distributed.
Some other clarifications...
1. Please be advised that, some buyers may not have PCM or PCH installed on their systems, or they may have the free version installed, are there any licensing issues here as well ??
2. How will the license apply for magazine readers ?? Is it OK to print source code of drivers alongwith , code developed by me ???
thanks
arunb |
|
|
Guest
|
|
Posted: Wed May 16, 2007 9:05 am |
|
|
The CCS source code comes with the compiler. Since anyone wanting to compile the project, will have to have the compiler, they will have the source code allready. Look at the heading inside one of the driver modules, to see the exact terms.
Best Wishes |
|
|
rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
|
|
Posted: Wed May 16, 2007 10:49 am |
|
|
I do not believe you can distribute CCS source code without express permission from CCS. You can't even really publish it on this site.
r.b. |
|
|
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE: |
Posted: Wed May 16, 2007 11:47 pm |
|
|
Hi,
Well OK instead of publishing I sell my code (containing the drivers) to my customers all in a zip file .... then will this be OK ??
Instead of printing out the source code I could give a general flow diagram of the system and then sell the code (as a zip file) to people , will this be OK ??
thanks
arunb |
|
|
languer
Joined: 09 Jan 2004 Posts: 144 Location: USA
|
|
Posted: Thu May 17, 2007 12:05 am |
|
|
I do not see why would there be any doubts of how to handle this. Directly from the driver files:
Quote: | //// This source code may only be used by licensed users of the CCS C ////
//// compiler. This source code may only be distributed to other ////
//// licensed users of the CCS C compiler. No other use, reproduction ////
//// or distribution is permitted without written permission. ////
//// Derivative programs created using this software in object code ////
//// form are not restricted in any way. ////
|
Once you compile the code you are free to use as you wish, since at that point it is yours. But the source code is not, you are licensed to use it but distribution is very clearly stated. |
|
|
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE: |
Posted: Thu May 17, 2007 9:22 am |
|
|
Hi,
Thank you for the reply, this clears my query ..
But options arare the options left open to me if I want to, distribute my source code containing the drivers....???,
thanks
arunb |
|
|
RolandAldridge
Joined: 26 Mar 2007 Posts: 7 Location: Southern California
|
|
Posted: Thu May 17, 2007 10:10 am |
|
|
I'd suggest you distribute your code by itself, and tell people that to make it work they have to compile it with the CCS compiler available at CCS - this way they will *have* to get the drivers too.
You may want to add some documentation telling the user how to modify the code to point to the right location of the drivers if he installs them somewhere non-standard.
Roland _________________ Roland Aldridge
www.amio2.com |
|
|
Ttelmah Guest
|
|
Posted: Thu May 17, 2007 10:12 am |
|
|
Write your own.
However, since the code can't be compiled without a CCS compiler, anyone wanting to use the sources is going to need a compiler that will include the drivers.
Best Wishes |
|
|
languer
Joined: 09 Jan 2004 Posts: 144 Location: USA
|
Re: RE: |
Posted: Thu May 17, 2007 12:50 pm |
|
|
arunb wrote: | But options arare the options left open to me if I want to, distribute my source code containing the drivers....??? |
I think the simplest answer is to create your own. Look at the source files, they're not complicated at all (at least 24256.C & MCP3208.C) - straight from the datasheet. You should be able to re-write this in your own way, and then you are the owner. Or you can ask CCS permission to distribute the source code.
There is a third option, but I am no advocate for it so I won't go there ([spam] might though...). |
|
|
Ttelmah Guest
|
|
Posted: Fri May 18, 2007 2:13 am |
|
|
There is one other option possible with the newer compilers.
You could generate a library 'header', and precompile the drivers to a .o file. This way the sources are not needed for the drivers, and you can keep to the terms of the CCS agreement.
Best Wishes |
|
|
|