compiling issue: "target" and target's-folder?

New to XMOS and XCore? Get started here.
jerryXCORE
Experienced Member
Posts: 65
Joined: Tue Apr 30, 2013 10:41 pm

compiling issue: "target" and target's-folder?

Post by jerryXCORE »

Intuitively:
* If you change "TARGET" in Makefile, like: TARGET = XC-3
* The compiler should find .XN file in folder "XC-3" in the path:
C:\Program Files (x86)\XMOS\xTIMEcomposer\12.2.0\targets

But it is NOT true! Here is my problem:
* I want to move sample codes of SLICEKIT-L2 to XC-3
(I already bought XC-3, don't want to buy SLICEKIT-L2 now)
* So I copy sample codes of SLICKIT-L2 as template project, and compile successfully!
(Also, I have original sample codes for XC-3, and compiled successfully! )
* I change its MakeFile to: TARGET = XC-3
* The compiler seems not know about the .XN file inside folder "XC-3", and raises error messages.
(surely I modified .XN file in XC-3 to fit new sample codes accordingly)


So what is the trick?


User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

Hi,

If you specify the target as XC-3 it takes the default target defined in the targets folder. If you want to use the customized XN file, you have to change the name of the XN file and specify the name in make file accordingly.

Sethu.