Including libraries for xc Project with XTC Tools in VScode
Posted: Sat Aug 21, 2021 7:09 pm
Hi,
I'm still a XMOS newbie and I'm trying to write a simple I2S in, I2S out program, but I already fail at the point of including the necessary I2S Library.
I'm working as recommended by XMOS with the latest release of XTC Tools in VScode. Everything is set up and the environment variables are set.
I've downloaded the library from the XMOS website and added it to the workspace.
Then I've tried to build the program with a build.sh as described in the XTC Tools documentation and with an Makefile, both without success.
Every time I get an error that says "can't find i2s.h".
I've also tried to add a path to the library as include path in the cpp_properties.json.
I'm wondering how to use these downloaded libraries with VScode and XTC Tools.
Also I find it very frustrating to work with the recommendations for new designs that XMOS gives, for example the “new” C language that one should use.
For me there is not nearly enough documentation to understand how I can create C programs that make use of the XC libraries from XMOS.
And even if I go to XC, as I've done it, I still can't work out how I can work with these libraries in VScode.
I hope some one can help me out, I would really appreciate that!
Thank you very much in advance! :)
Kind regards
Till
I'm still a XMOS newbie and I'm trying to write a simple I2S in, I2S out program, but I already fail at the point of including the necessary I2S Library.
I'm working as recommended by XMOS with the latest release of XTC Tools in VScode. Everything is set up and the environment variables are set.
I've downloaded the library from the XMOS website and added it to the workspace.
Then I've tried to build the program with a build.sh as described in the XTC Tools documentation and with an Makefile, both without success.
Every time I get an error that says "can't find i2s.h".
I've also tried to add a path to the library as include path in the cpp_properties.json.
I'm wondering how to use these downloaded libraries with VScode and XTC Tools.
Also I find it very frustrating to work with the recommendations for new designs that XMOS gives, for example the “new” C language that one should use.
For me there is not nearly enough documentation to understand how I can create C programs that make use of the XC libraries from XMOS.
And even if I go to XC, as I've done it, I still can't work out how I can work with these libraries in VScode.
I hope some one can help me out, I would really appreciate that!
Thank you very much in advance! :)
Kind regards
Till