How to créate functions in codewarrior development studio 10.4

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

How to créate functions in codewarrior development studio 10.4

跳至解决方案
1,595 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,329 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

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

lib input.JPG

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,329 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

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

lib.JPG

0 项奖励
回复
1,329 次查看
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 项奖励
回复
1,330 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

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

lib input.JPG

0 项奖励
回复