Using a file across multiple projects

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

Using a file across multiple projects

1,587 Views
robertsmith
Contributor I

I have been using LPCxpresso for several years and there is something i can't figure out how to do that I have done with previous development environments.  I want to have two projects that have each have a set of distinct modules while the share modules such as CAN Bus communications, accessing flash memory, etc.  How do i set this up in LPCXpresso?

I have been using #defines and then generate two different sets of code but that is not the easiest way to handle this situation.

Labels (2)
0 Kudos
Reply
4 Replies

1,523 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Your LPCXpresso installation has an Examples folder with project examples. You didn't say which part you're using, but there are LPCOpen (and other) projects targeted for the LPC parts. All LPCOpen archives have board, chip, and other library projects included.

Thanks and regards,

LPCXpresso Support

0 Kudos
Reply

1,523 Views
robertsmith
Contributor I

Thanks. I inherited this project and we converted from Code Red a few years ago, so the only examples i have seen are code red.  I haven't really had time to dive into LPCXpresso but will start doing that now.

0 Kudos
Reply

1,522 Views
lpcxpresso_supp
NXP Employee
NXP Employee

You're not very clear about what you want to do. Most users move module related code/data off into library projects. Projects which depend on a particular module configuration link to the respective library project(s). Please provide more detail.

Thanks and regards,

LPCXpresso Support

0 Kudos
Reply

1,522 Views
robertsmith
Contributor I

I have a module electric.c that i want to compile along with several other modules into an electric.bin file.

I then have a module hydraulic.c that i want to compile with those same other modules into hydraulic.bin. 

It sounds like i need to learn how to learn how to generate a library project. I will search the NXP site and try to figure out how to do this.  Can you point me to a library project example?

Thank you

0 Kudos
Reply