urgent in codewarrior

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

urgent in codewarrior

2,928 Views
koko
Contributor I
 I have a critical problem in code warrior, that's I want to combine two
projects to be one project.

the first project is written with mixed c & asm and it's the main
program to be burnt on the MCU (mc9s12ne64).

the second project is written in C only, and it includes TCP/IP
function.

Now we want to add TCP/IP function to the main program..i.e second project to be a part of the first project, but the problem we faced is :
The files and Link order in the project window inside the project file (.mcp) of each project are different. i.e some files needed by second project is not in the files of first project. so we were obliged to add them manually by right click and selecting crate groups and add files. but we found that some
files (like MC9S12NE64.c) have the same name in each project, but not the same content! so what to do?

Is there some civilzed way to combine two projects?
Labels (1)
Tags (1)
0 Kudos
Reply
4 Replies

583 Views
koko
Contributor I
yes that's exactly what we wanted to do, and finally we succeeded :smileytongue: thanx for your help
0 Kudos
Reply

583 Views
CompilerGuru
NXP Employee
NXP Employee
Well, the simplest thing would probably be to rename the files :smileyhappy:.
With CW, make sure every project (build target) finds its own "MC9S12NE64.c" before the other one in its search path. The order of the search paths does matter, they can be dragged and droped.
Daniel
0 Kudos
Reply

583 Views
koko
Contributor I

Sorry, I am a beginner in CW, so I don't understand some terms like search paths and build target!! but i would explain the problem in a more clear way: how to combine two projects, i.e how to make the second project be a function to be called by the first project, knowing that each project has its own files (in the project window) and some of these files have the same name but different in content!!!

0 Kudos
Reply

583 Views
CrasyCat
Specialist III

Hello

Do you mean you want to create an object library including TCP/IP functions and use that library in your project?

Or are you looking for something else?

I do not understand what you are trying to do here.

CrasyCat

0 Kudos
Reply