We want to hid the source code. How can we transfer the source code into library?
Hi Henry
To create .lib file, you need follow the steps below.(please also refer the attached mylib project)
The following is how to use the lib file in the project:
can this help you?
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Dear Jennie,
Thanks a lot. Let me try it.
BTW, is it the only way to prohibit people for reading the source code?
Any hardware protection of S12 MCU?
Best regards,
Henry
Hi Henry,
>>BTW, is it the only way to prohibit people for reading the source code?
from software respect, yes.
>>Any hardware protection of S12 MCU?
MCU can has mechanism to prevent code in flash being read out by others. to do it, we need secure flash when we program it. To secure the flash, we need set Flash Security Register (FSEC).
If you want to secure it with back door key(thus ctm can not see the code but worker still can see the code with backdoor key), the attached document and its related code will be helpful. The example code is for MC9S12DP256, but the method and theory is the same to other HCS12 family MCUs.
http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2880.pdf
If this post answers your question, please click the Correct Answer button.Thank you!
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------