Looking for an expert programmer

First time on the site? Say hello here!
PaulEasy
Junior Member
Posts: 6
Joined: Sun Jan 12, 2025 3:31 am

Looking for an expert programmer

Post by PaulEasy »

Hi, I am currently working with a Xu316 chip, on an audio project. I got some examples running but I am getting lost when on how to add libraries, the i2S and USB ones. I am looking for someone expert to teach me.Thanks
User avatar
Ross
Verified
XCore Legend
Posts: 1211
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Adding a library to your project should be easy, assuming you're using the cmake based build system (xcommon-cmake)

Add the following to the application CMakeLists.txt

set(APP_DEPENDENT_MODULES "lib_i2s" "lib_xud")

Application notes are a pretty good start for projects.
Technical Director @ XMOS. Opinions expressed are my own
PaulEasy
Junior Member
Posts: 6
Joined: Sun Jan 12, 2025 3:31 am

Post by PaulEasy »

Hi Ross, thanks! I've got the basic example working, and running on my board!
Would you be so kind in giving me step by step recipy to add the libraries. I have downloaded them, but I am not sure were to copy the files.
Thanks! in advance
User avatar
Ross
Verified
XCore Legend
Posts: 1211
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Which basic example?
Technical Director @ XMOS. Opinions expressed are my own
PaulEasy
Junior Member
Posts: 6
Joined: Sun Jan 12, 2025 3:31 am

Post by PaulEasy »

the one "ExampleXCommonCMake"
User avatar
Ross
Verified
XCore Legend
Posts: 1211
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Are you trying to produce a usb audio device? If so a different starting place would be better

If not, add the line I provided to the cmakelists.txt file. The libs will be downloaded to the correct place on the next build.
Technical Director @ XMOS. Opinions expressed are my own
PaulEasy
Junior Member
Posts: 6
Joined: Sun Jan 12, 2025 3:31 am

Post by PaulEasy »

Thanks I will try it and let you know. Were would you start?
User avatar
Ross
Verified
XCore Legend
Posts: 1211
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Well, if you're wanting to create a usb audio device I'd start with the USB Audio reference design https://www.xmos.com/develop/usb-multichannel-audio/
Technical Director @ XMOS. Opinions expressed are my own