Tool/software: Code Composer Studio
Hello-
Is it possible to protect a portion of our source code by compiling it into a library?
If so, is there a guide available?
Thanks,
Tomas
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hello-
Is it possible to protect a portion of our source code by compiling it into a library?
If so, is there a guide available?
Thanks,
Tomas
Tomas Sadilek1 said:Is it possible to protect a portion of our source code by compiling it into a library?
Yes. By protect, I presume you mean to prevent others from somehow getting the source code. You can do things which make it much harder to understand how the code works. But I'm not aware of any method which guarantees total protection.
Tomas Sadilek1 said:If so, is there a guide available?
Unfortunately, no. But I can give you some useful tips.
To create a library project in CCS, you indicate the type of the project is a Static Library. Please see the Types of Projects section of the larger article Projects and Build Handbook for CCS. You give your customer the something.lib file, and a few header files. Keep the main source files.
To prevent others from attempting to debug your code, build with the option --symdebug:none. Warning: Don't use this option until it is close to delivery time. Using this option means you can't debug it either. Search for this option in the C2000 compiler manual.
Thanks and regards,
-George
Hi George - thank you for your answer. I will give it a shot and report back.
Thanks,
Tomas
Hello,
I have created a new project:
Create a new project - C - Static Library
I have also installed CygWin.
The only file in the project is a simple function that returns "1".
int alg(void)
{
return 1;
}
The project compiles fine but I do not see the "lib" file anywhere. What should I do to generate a lib file?
I have followed this guide:
processors.wiki.ti.com/.../Creating_Library_for_MSP430_Project_using_CCS_v5
Thanks,
Tomas
Tomas Sadilek1 said:The project compiles fine but I do not see the "lib" file anywhere.
Please look in the "Debug" folder (or whatever the current build configuration is named).
Thanks and regards,
-George
Hi George,
This is what eventually worked for me:
New CCS Project (not C Project as stated here: software-dl.ti.com/.../sdto_ccs_build-handbook.html
Output options : static library
This was a great help, too (not my video): www.youtube.com/watch
My issue is now resolved and I have made a linked a static library.
Thanks,
Tomas