xTimeComposer Wont Build or Run Project

Technical questions regarding the XTC tools and programming with XMOS.
lsteeler
Junior Member
Posts: 6
Joined: Fri Oct 11, 2013 12:20 am

xTimeComposer Wont Build or Run Project

Post by lsteeler »

When I build a project I get the following errors visible in the screenshot below.
You do not have the required permissions to view the files attached to this post.


User avatar
TSC
Experienced Member
Posts: 111
Joined: Sun Mar 06, 2011 11:39 pm

Post by TSC »

Does helloworld.xc actually exist in the project/src/ directory?

Can you post the contents of your makefile?
lsteeler
Junior Member
Posts: 6
Joined: Fri Oct 11, 2013 12:20 am

Post by lsteeler »

yh helloworld.xc exists and this is the makefile contents:

# The TARGET variable determines what target system the application is
# compiled for. It either refers to an XN file in the source directories
# or a valid argument for the --target option when compiling
TARGET = XC-1A

# The APP_NAME variable determines the name of the final .xe file. It should
# not include the .xe postfix. If left blank the name will default to
# the project name
APP_NAME = helloworld

# The USED_MODULES variable lists other module used by the application.
USED_MODULES =

# The flags passed to xcc when building the application
# You can also set the following to override flags for a particular language:
# XCC_XC_FLAGS, XCC_C_FLAGS, XCC_ASM_FLAGS, XCC_CPP_FLAGS
# If the variable XCC_MAP_FLAGS is set it overrides the flags passed to
# xcc for the final link (mapping) stage.
XCC_FLAGS_Debug = -g -O0 -Wcodes -Xmapper -Wcodes
XCC_FLAGS_Release = -g -O3 -Wcodes -Xmapper -Wcodes

# The VERBOSE variable, if set to 1, enables verbose output from the make system.
VERBOSE = 0

XMOS_MAKE_PATH ?= ../..
-include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common
lsteeler
Junior Member
Posts: 6
Joined: Fri Oct 11, 2013 12:20 am

Post by lsteeler »

I can run via command line , the problem seems to be that the makefile is looking in the wrong directory but I don't know how to change that
User avatar
TSC
Experienced Member
Posts: 111
Joined: Sun Mar 06, 2011 11:39 pm

Post by TSC »

Also make sure that your run configuration (in the Run menu in xTimeComposer) is set up properly. Maybe try deleting the old configuration and set up a new one.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

On which version of tool you are facing this issue? Can you see what XMOS_MAKE_PATH is, using the command "echo %XMOS_MAKE_PATH% from the XMOS command line? Can you upload your wokspace to see what's causing error in your case?

Sethu.
lsteeler
Junior Member
Posts: 6
Joined: Fri Oct 11, 2013 12:20 am

Post by lsteeler »

XMOS_MAKE_PATH=C:/Program\ Files\ (x86)/XMOS/xTIMEcomposer/12.2.0/build

I have also attached the workspace below
You do not have the required permissions to view the files attached to this post.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

Hi lsteeler,

The Makefile in the project and the Makefile you posted in the forum are not identical. The one which you have attached(the one in the workspace) does not contain optimization level indicated to it.
XCC_FLAGS_Debug = -O
I changed this to XCC_FLAGS_Debug = -O0 to make it build. I am able to build the same project on my machine without any issues. Your XMOS_MAKE_PATH also looks fine. Not sure what's causing the issue in your machine. Did you try creating the workspace in different location and build it?

Sethu.