Module using module

New to XMOS and XCore? Get started here.
Post Reply
dimitris
Active Member
Posts: 37
Joined: Tue Feb 19, 2013 5:07 pm

Module using module

Post by dimitris »

Hi everybody,
I'll try to be straight cause I am pretty sure that this is an easy problem.
I am building an application that uses a module(m1) which uses another module(m2). As explained m1 uses some functions of m2 but how do I compile these so that they can "see" eachother? I tried to play with the "Project References" but with no luck.

Thank you in advance,
Dimitris


User avatar
Andy
Respected Member
Posts: 279
Joined: Fri Dec 11, 2009 1:34 pm

Post by Andy »

See Section 10 of the tools user guide for information on how to setup the Makefiles correctly: http://www.xmos.com/download/public/xTI ... 66A%29.pdf

You need to set the USED_MODULES parameter in the application Makefile to reference the used modules. This can be done via the Eclipse XMOS Makefile editor GUI or via a text editor.
dimitris
Active Member
Posts: 37
Joined: Tue Feb 19, 2013 5:07 pm

Post by dimitris »

Andy thank you. I can't believe I have missed that part.
Post Reply