How could i build one project that have several targets?

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

How could i build one project that have several targets?

跳至解决方案
1,755 次查看
taofu
Contributor II

How could i build one project that have several targets?

I found one project in AN4258 which have so many targets. So i want  to build one project which have several targets, but i  can't found how to do it in cw5.1.

Anyway, does anybody have done this before? How to do it?

 

Best regard!

taok

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,607 次查看
taofu
Contributor II

Thanks for your answers, RadekS.

The problem has been solved now.

Your answer is one of the reasons. There is another reason. The *.prm file should be added into the target that created.

Here is the step:

project-add files..., selecting *.prm file for your new target.

In addition,  other files of the target should be added, such as main.c *.h .

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,607 次查看
RadekS
NXP Employee
NXP Employee

Hi tao,

In Project window go to Targets tab and mark default target

step1.png

go to menu-Project-Create Target

Step2.png

enter new target name and select Empty target or Clone existing target (recommended)

Step3.png

double click on new target name (Alt+F7) will open target settings and you could change for example debugger ini file

Step4.png

or compiler settings

Step5.png

Note: Targets are selected by clicking on icon.png icon on left side.


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,607 次查看
taofu
Contributor II

Hi, RadekS,

     I have created two new target in my project.

     The first one select Clone existing target ( it is the recommended), and this target works well.

     The second one select Empty target, then I copy all settings in standard to this new empty target.  Here is the problem, when i make for the second target, one error occurs.

Link Error: No file with extension prm found  in project.

     Now i don't understand is there any wrong in the second target? Are there any else settings what should i done?

Thanks a lot.

taok

0 项奖励
回复
1,607 次查看
RadekS
NXP Employee
NXP Employee

Hi tao,

I was able to replicate this error on my side.

It seems that you forgot update project paths:

missing paths.png

When I added paths, project make was executed without errors.


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,608 次查看
taofu
Contributor II

Thanks for your answers, RadekS.

The problem has been solved now.

Your answer is one of the reasons. There is another reason. The *.prm file should be added into the target that created.

Here is the step:

project-add files..., selecting *.prm file for your new target.

In addition,  other files of the target should be added, such as main.c *.h .

0 项奖励
回复