Code Warrior for 8/ 16 bit

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Code Warrior for 8/ 16 bit

跳至解决方案
1,891 次查看
RohitSinghal
NXP Employee
NXP Employee

how to generate the *.lib  file from the original .c /.h file using specific setting done in the code warrior suite..

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
921 次查看
CrasyCat
Specialist III

Hello

 

Thanks it is much more clear to me now.

 

In order to create a project for an object library:

   - Create your project as usual using the wizard

   -  Open the Target Settings dialog (Press ALT + F7)

   - In the Target -> Target Settings panel change Linker to Libmaker for HC12 or Libmaker for HC08 (depending on the processor you are targeting).

   - You will see a new panel Libmaker for HC12 or Libmaker for HC08 (according to the target), where you can adjust name of the library you want to create.

 

If your library is MCU independent, you can remove the MCU related .c and ,h file from your project. Just select the corresponding file names and click DELETE key.

 

I hope this helps.

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
4 回复数
921 次查看
RohitSinghal
NXP Employee
NXP Employee

To make my question more simple, In one of the project customer asked us to develop of specific algo related to their

 

application.  In order to protect the algo i want to covert this file in .lib format & provide to customer with some known API

 

defination so that further can be used for development purpose without disclosing the background code.

 

I hope it will be much clear situation.

0 项奖励
回复
922 次查看
CrasyCat
Specialist III

Hello

 

Thanks it is much more clear to me now.

 

In order to create a project for an object library:

   - Create your project as usual using the wizard

   -  Open the Target Settings dialog (Press ALT + F7)

   - In the Target -> Target Settings panel change Linker to Libmaker for HC12 or Libmaker for HC08 (depending on the processor you are targeting).

   - You will see a new panel Libmaker for HC12 or Libmaker for HC08 (according to the target), where you can adjust name of the library you want to create.

 

If your library is MCU independent, you can remove the MCU related .c and ,h file from your project. Just select the corresponding file names and click DELETE key.

 

I hope this helps.

 

CrasyCat

0 项奖励
回复
921 次查看
RohitSinghal
NXP Employee
NXP Employee

Thanks for your wonderful support..

 

It works as i required to send the info.. to my customer..

 

Warm Regards,

Rohit

 

 

 

 

0 项奖励
回复
921 次查看
CrasyCat
Specialist III

Hello

 

Not sure I understand the question here.

Are you asking how you can rebuild the ANSI library after changing some compilation option?

 

If this is the question, there is a .mcp file in the {Install}\lib\hc08c or  {Install}\lib\hc12c that can be loaded in CodeWarrior to rebuild the libraries.

 

CrasyCat

0 项奖励
回复