Problem with gpio.h

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
alwalker
Active Member
Posts: 45
Joined: Sun Apr 08, 2018 11:19 pm

Problem with gpio.h

Post by alwalker »

I'm just starting coding with xTIMEcomposer, I don't understand why I am getting an error with gpio.h not being found when I do a build, can anyone help please?

Thanks!

Al
Attachments
gpio include error.jpg
(1.37 MiB) Not downloaded yet
gpio include error.jpg
(1.37 MiB) Not downloaded yet
gpio Makefile.jpg
(377.11 KiB) Not downloaded yet
gpio Makefile.jpg
(377.11 KiB) Not downloaded yet
Last edited by alwalker on Tue Dec 25, 2018 12:25 pm, edited 1 time in total.


alwalker
Active Member
Posts: 45
Joined: Sun Apr 08, 2018 11:19 pm

Post by alwalker »

I tried the recommendation in this thread

http://www.xcore.com/viewtopic.php?f=47&t=6586

But whilst the code still runs ok on my eXplorer Kit, I still get warnings when I do the Build.

Any ideas please?

Thanks!

Al
Attachments
AN00155 gpio.jpg
(527.94 KiB) Not downloaded yet
AN00155 gpio.jpg
(527.94 KiB) Not downloaded yet
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hi. I get different warnings but try the following procedure:

1) start with a fresh workspace

2) follow these steps and then Edit view -> Project -> Build All and keep selecting Finish button till the code compiles.
xmos_launch_example.png
xmos_launch_example.png (59.19 KiB) Viewed 36284 times
xmos_launch_example.png
xmos_launch_example.png (59.19 KiB) Viewed 36284 times
Hope this helps.
User avatar
CousinItt
Respected Member
Posts: 360
Joined: Wed May 31, 2017 6:55 pm

Post by CousinItt »

Have you tried doing a "clean project" before a "build project"? I've had similar problems and this often helps.
alwalker
Active Member
Posts: 45
Joined: Sun Apr 08, 2018 11:19 pm

Post by alwalker »

Thanks very much, a Clean seems to do the trick!
Post Reply