Merging two projects

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

Merging two projects

493 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ignaciowaldman on Tue Mar 18 09:52:02 MST 2014
Hello All,
                   I have my workspace with two projects. One of them is the example project "ADC" just like they was delivered. The other is an empty FreeRTOs project. I'm able to compile both independently without errors. Now, I want to include the ADC programm  as a task of the FreeRTOs project, but I can't. I receive messages like 'undefined reference' Could anybody give some clue for do this? 
Thanks a lot in advance!
0 Kudos
2 Replies

390 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ignaciowaldman on Wed Mar 19 07:52:11 MST 2014
Hello support, thanks for your answer.
        I'm working with an LPC1769. In the worksapece I put a project from the examples (examples->nxp->lpc1000->lpc17xx->ADC) plus an empty project with FreeRtos (File->new->project->c/c++->LPCXpresso C project->FreeRTOS project). Now, I need call in vUserTask1 the ADC projectc as a function. So, I suppose i need trnsform ADC project in a kind of library. Any advice will be really apreciated!
0 Kudos

390 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Mar 19 01:48:29 MST 2014
Without knowing exactly what projects (and MCU) you are starting from, it is hard to give a definitive answer here.

But this is probably a failure to add appropriate links to library projects that the ADC code makes use of. The following FAQs will be good starting points for more information.

http://www.lpcware.com/content/faq/lpcxpresso/linker-undefined-reference
http://www.lpcware.com/content/faq/lpcxpresso/linker-cannot-find-library

If you need further assistance, please let us know what projects and MCU you are using, and post your build log…

http://www.lpcware.com/content/faq/lpcxpresso/build-console

Regards,
LPCXpresso Support
0 Kudos