Cannot find module module_spi_master

If you have a simple question and just want an answer.
hybridalienrob
Member
Posts: 11
Joined: Thu Nov 20, 2014 9:19 pm

Cannot find module module_spi_master

Post by hybridalienrob »

I'm really struggling to understand how modules are imported / included in project builds, particularly when an existing project is imported (e.g because I'm collaborating with a colleague)

Importing the SPI master lib into a NEW project works ok

But.. importing the SPI master lib into an existing project does not. I can see the module project in my workspace and it is listed and enabled in the makefile "Used Modules" section when opened my the XMOS App makefile editor, but when I try and compile the project, all I get is..

**** Build of configuration Debug for project StartkitPinOscTest ****
 
xmake CONFIG=Debug all 
C:/Program Files (x86)/XMOS/xTIMEcomposer/Community_13.2.0/build/xcommon/module_xcommon/build/../build/Makefile.common1:510: *** Cannot find module `module_spi_master'.  Stop.
xmake: *** [bin/Debug/StartkitPinOscTest_Debug.xe] Error 2
 
This is really frustrating and also I don't understand why it can't see the module source.
 
Other modules, which I've imported from the community tab (module_capacitive_sensing, module_startkit_gpio) are build and linked as expected although these don't actually exist in my workspace folder.
 
 

 

 

hybridalienrob
Member
Posts: 11
Joined: Thu Nov 20, 2014 9:19 pm

Post by hybridalienrob »

I've rebuild a simple example workspace that demonstrates this problem by creating a simple project, importing the spi_master module into the workspace via the softip tab. I've selected it in the used modules section of the makefile but the test project "YetAnotherAttempt" doesn't build.

I would have thought I could add the module_spi_master folder to the include directories but the xmos makefile editor doesn't allow selection of any folder outside the project folder.

 
You do not have the required permissions to view the files attached to this post.