How to créate functions in codewarrior development studio 10.4

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

How to créate functions in codewarrior development studio 10.4

Jump to solution
975 Views
orlandozapata
Contributor II

Hi,

 

Recently I have worked in codewarrior develompmet studio 10.4 and I want to rewrite my functions in a library. So the question is, how to create a library for my functions in code warrios develompmet studio 10.4. I never have worked with functions in codewarrior and my code is becoming more extensive.  I´m using a MCF51QE128. Maybe somebody know  where can I find a tutorial step by step to how create libraries or somebody can  make me a quick video tutorial about that.

programming code attached "Accionamiento de motores.txt" where you can see my functions.

 

Thanks for you colaboration from Medellin Colombia, Best regards.

Original Attachment has been moved to: Accionamiento-de-motores.txt.zip

Labels (1)
0 Kudos
Reply
1 Solution
709 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

you need also add the self-made path into the linker input:

lib input.JPG

View solution in original post

0 Kudos
Reply
3 Replies
709 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

you can make user library with wizard. select "library" when creating a new project.

lib.JPG

0 Kudos
Reply
709 Views
orlandozapata
Contributor II

Hi Jun Zhang,

Already knew the step that you provide me, but I don't know where put the code of my function and how include de library in my main program. I´m trying to create a library with a single function (void config_reloj(void)) but when I build the main proyect the software throws me diferents problems. I attach you some screenshots about the problems. o maybe you can send me a zip file with a library projet like an example. Thancks in advance.

Lib folder.jpgProject headers folder.jpgSources folder.jpg

Where put the code.jpgMain program 1.jpgMain program 2.jpg

0 Kudos
Reply
710 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

you need also add the self-made path into the linker input:

lib input.JPG

0 Kudos
Reply