Simple XC project can't find xc.h and timer.h include files

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.

Simple XC project can't find xc.h and timer.h include files

Post by leon_heller »

I've created a simple XC project for the startKIT which builds and runs OK, but xs1.h and timer.h are flagged as unresolved. I can't find out how to get the necessary includes folder containing the missing header files into the project. All the projects I've downloaded include it. I'd have thought that they would be added when I created the project, I'm sure that used to be the case with earlier versions of the tools.


AJB2K3
Member++
Posts: 27
Joined: Sat Dec 14, 2013 1:03 pm

Post by AJB2K3 »

Do the demo startkit programs complain about it?
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller »

No, they are OK as their projects include the necessary folder.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

Can you send your work space as attachment to see whats causing issue in your case?

Sethu.
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller »

It's attached.
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 »

Hello leon_heller,

I tried building the application which you have sent to me using xTIMEcomposer 13.0.1 without any issues. the application does show as warning next to the code:
Unresolved inclusion: <xs1.h>
Unresolved inclusion: <timer.h>
But the application builds and runs fine. This looks like settings file not being included properly. I exported the paths and symbols settings file from the working project (project in which these errors do not occur) and imported into this application workspace and I am able to remove the errors with this. not sure whats causing the issue in this case that corrupts the paths and symbols settings. We are investigating the issue and will update you once we have more information on this.

Sethu.
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller »

Thanks. I'll try your solution.

Importing the settings from another project fixed the problem.

I see from a previous post that someone else had the same problem, but closing Composer Studio and restarting it fixed it. I tried that, but it didn't work.

Leon
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller »

Has anyone else experienced this problem? I haven't heard anything from XMOS about it, so I suppose I will have to raise a customer support ticket to make sure that it is fixed.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

I filed this as a bug in the internal bug tracking system and we are facing difficulty replicating the issue from our end as we are not sure whats causing this. This will be fixed once we can replicate and see whats causing the problem.

Sethu.
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller »

Thanks, Sethu.

Leon