Code Warrior for 8/ 16 bit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code Warrior for 8/ 16 bit

Jump to solution
2,030 Views
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..

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,060 Views
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

View solution in original post

0 Kudos
Reply
4 Replies
1,060 Views
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 Kudos
Reply
1,061 Views
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 Kudos
Reply
1,060 Views
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 Kudos
Reply
1,060 Views
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 Kudos
Reply