Hello everyone,
I'm trying to use the I2S and the I2C libs with my XCore Explorer Kit... I am new with XMOS Hardware and xTime Composer.
I've been trying to compile my code for more than an hour now and I always get the same error in the console:
Using build modules: lib_gpio(1.1.0) lib_i2c(4.0.0) lib_i2s(2.3.0) lib_logging(2.1.0) lib_xassert(3.0.0)
Analyzing debug_printf.c
xcc: D:/Documents/DÚveloppement/WSPACE_TEST/lib_logging/src/debug_printf.c: No such file or directory
xmake[1]: *** [.build_Debug/_l_logging/src/debug_printf.c.pca.xml.decouple] Error 1
xmake: *** [analyze] Error 2
The only libraries i'm using are I2C, GPIO and I2S but i think I2C depends on lib_logging and lib_xassert.
Do you have a idea to solve the issue ?
I tried to compile the application note "Using I2S Library " and I can't compile it, i get the same messages.
Thank you.
[SOLVED][I2S - I2C] Unable to build - lib_logging problems
-
- Member
- Posts: 9
- Joined: Sat Mar 24, 2018 12:40 pm
[SOLVED][I2S - I2C] Unable to build - lib_logging problems
Last edited by sgtpepper335 on Sat Apr 28, 2018 6:52 am, edited 1 time in total.
-
Verified
- XCore Legend
- Posts: 1140
- Joined: Thu May 27, 2010 10:08 am
Presumably the files are where you expect them to be? You can see all of the library directories?
If so, perhaps try Project->Clean to see if that helps.
If so, perhaps try Project->Clean to see if that helps.
Engineer at XMOS
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
Hello.
1) File -> New -> xTimecomposer Project -> Change the target hardware to xCORE-200 Explorer Kit -> apply a project name -> rest are default checkboxes -> Finish.
2) Go to Examples icon on left side of screen -> Audio Examples -> double click the Using the I2S Library (AN00162) -> allow for the import of this library -> Finish.
3) In the XMOS EDIT perspective -> highlight the now imported AN00162_i2s_loopback_demo -> Project tab -> Build project -> the toolchain will now raise some errors and will proceed to automatically import the required dependencies for this project -> should finally compile this project.
4) After a successful compilation, proceed to review the main.xc file which you may now change to suit.
1) File -> New -> xTimecomposer Project -> Change the target hardware to xCORE-200 Explorer Kit -> apply a project name -> rest are default checkboxes -> Finish.
2) Go to Examples icon on left side of screen -> Audio Examples -> double click the Using the I2S Library (AN00162) -> allow for the import of this library -> Finish.
3) In the XMOS EDIT perspective -> highlight the now imported AN00162_i2s_loopback_demo -> Project tab -> Build project -> the toolchain will now raise some errors and will proceed to automatically import the required dependencies for this project -> should finally compile this project.
4) After a successful compilation, proceed to review the main.xc file which you may now change to suit.
-
- Member
- Posts: 9
- Joined: Sat Mar 24, 2018 12:40 pm
Hello, thank you for your help.
I installed xTime Composer on an other computer with Mac OS and I've been able to compile with it.
I'll try the solution of mon2 with the other computer to see if it works.
I installed xTime Composer on an other computer with Mac OS and I've been able to compile with it.
I'll try the solution of mon2 with the other computer to see if it works.
-
- Member
- Posts: 9
- Joined: Sat Mar 24, 2018 12:40 pm
-
- Respected Member
- Posts: 366
- Joined: Wed May 31, 2017 6:55 pm
You seem to have an odd U character in your path - would that upset the compiler or OS? Have you tried building in a different workspace location?
Another idea - it looks like all your projects are open: have you tried closing all projects except the one you're working on?
Another idea - it looks like all your projects are open: have you tried closing all projects except the one you're working on?
-
- Member
- Posts: 9
- Joined: Sat Mar 24, 2018 12:40 pm
Hello CousinItt, thank you for your reply.
I tried building in different workspace locations and I also tried to close all the projects, I even tried to clean the project.
After the importation of the libraries by xTime Composer I make a refresh, I clean the project and I check the depedencies in the makefile editor.
I tried building in different workspace locations and I also tried to close all the projects, I even tried to clean the project.
After the importation of the libraries by xTime Composer I make a refresh, I clean the project and I check the depedencies in the makefile editor.
-
- Member
- Posts: 9
- Joined: Sat Mar 24, 2018 12:40 pm
Problem Solved ! Thank you CousinItt for your suggestion, it was just a problem due to the odd U character ! The folder in which all my workspaces were contained an "accent" -> "Développement".
I guess the compiler doesn't use the same character encoding !
I guess the compiler doesn't use the same character encoding !
-
- Respected Member
- Posts: 366
- Joined: Wed May 31, 2017 6:55 pm
-
- XCore Expert
- Posts: 580
- Joined: Thu Nov 26, 2015 11:47 pm