How could i build one project that have several targets?

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

How could i build one project that have several targets?

Jump to solution
1,092 Views
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

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
944 Views
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 .

View solution in original post

0 Kudos
Reply
4 Replies
944 Views
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 Kudos
Reply
944 Views
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 Kudos
Reply
944 Views
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 Kudos
Reply
945 Views
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 Kudos
Reply