Where to start with XK-EVK-XU316

Discussions relating to the XK-EVK-XU316
User avatar
Alextrical
Member
Posts: 8
Joined: Sun Mar 24, 2024 9:47 pm

Where to start with XK-EVK-XU316

Post by Alextrical »

Hello

I'm just starting out with the XK-EVK-XU316,
Its also my first contact with the XMOS ecosystem, and I'm looking for how to get started.

So far I've got the X-Tools working on Linux (though I'm having issues adding the executables to the environment across sessions) and got the examples online running.
I'm aiming to use this board for a microphone array with 2+ PDM to output to a I2S stream, please can anyone advise of a good place for reading material to get familiar with how to program this board.

Kind regards
Kevin Jordan
Member++
Posts: 26
Joined: Fri May 22, 2020 5:52 pm

Post by Kevin Jordan »

https://www.xmos.com/file/xcore_ai-expl ... uick-start

The PDF is weirdly encoded, so it's hard to copy from.

List the attached devices:

Code: Select all

C:\Users\Kevin\Downloads\xmos>xrun -l

Available XMOS Devices
----------------------

  ID    Name                    Adapter ID      Devices
  --    ----                    ----------      -------
  0     XMOS XTAG-4             TDRYTTV3        P[0]

Make a hello.c file:

Code: Select all

# include <stdio.h>
int main( void ) {
	printf (" Hello world \n");
}
Open XTC Tools command prompt, compile it

Code: Select all

xcc -O2 -Wall -target=XCORE-AI-EXPLORER hello.c -o hello.xe
Run it:

Code: Select all

C:\Users\Kevin\Downloads\xmos>xrun --io hello.xe
 Hello world

Here is the more complete manual on the eval kit: https://www.xmos.com/download/xcore_ai- ... l(2V0).pdf

I'm still looking up how to turn on the Headphone jack/Line Out when sending audio from USB.
User avatar
Ross
Verified
XCore Expert
Posts: 1006
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Kevin Jordan wrote: Wed Jun 19, 2024 9:02 pm I'm still looking up how to turn on the Headphone jack/Line Out when sending audio from USB.
There's an example app here: https://github.com/xmos/sw_usb_audio/tr ... _evk_xu316
Technical Director @ XMOS. Opinions expressed are my own.
User avatar
Alextrical
Member
Posts: 8
Joined: Sun Mar 24, 2024 9:47 pm

Post by Alextrical »

Thank you, Its taking a few hours of reading through all the relevant examples. Now i'm able to run them and start modifying them to suit the initial needs of the project :)
Kevin Jordan
Member++
Posts: 26
Joined: Fri May 22, 2020 5:52 pm

Post by Kevin Jordan »

Ross wrote: Thu Jun 20, 2024 12:28 pm
Kevin Jordan wrote: Wed Jun 19, 2024 9:02 pm I'm still looking up how to turn on the Headphone jack/Line Out when sending audio from USB.
There's an example app here: https://github.com/xmos/sw_usb_audio/tr ... _evk_xu316
Ross, thanks for this link. It helped a bit with my XK-EVK-XU316. I can play USB audio fine from the library you linked, and the provided .xe file (1AMi2o2xxxxxx/app_usb_aud_xk_evk_xu316_1AMi2o2xxxxxx.xe), but I can no longer record audio through the mics... I have 2 PDM mics attached to my explorer board XU316.

With the sln_voice binaries, I can record to USB just fine, but I can't record audio with the sw_usb_audio binary files on my XK-EVK-XU316.


This is the way I flashed the sln_voice binaries:

Code: Select all

xflash --quad-spi-clock 50MHz --factory example_ffva_ua_adec_altarch.xe --boot-partition-size 0x100000 --data example_ffva_ua_adec_altarch_data_partition.bin
I got the binary files from this page, on the button "3. DOWNLOAD PRE-BUILT EXAMPLES". I know this is for the SLN Voice dev kit, but it works for microphones, not for USB audio out.

Is there a binary file I can compile/easily get
  • 2 PDM mics
  • USB Audio Playback from host over Line Out
  • USB Recording from mics to USB Host
And then another binary that does this:
  • 2 PDM mics
  • I2S Audio Playback over Line Out
  • I2S Recording from PDM mics
Basically I'm looking to have it work like the XVF3510 chip, to get this project started.

Thanks!
User avatar
Ross
Verified
XCore Expert
Posts: 1006
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

I know very little about sln_voice I'm afraid, it was authored by a different team.

You should be able to enable PDM mics in the USB audio design though.

Here's a doc on creating a simple design that will record PDM mics to USB using components of lib_xua: https://github.com/xmos/lib_xua/release ... m_mics.pdf

Or enabling in the reference design proper, see 5.10 of https://github.com/xmos/lib_xua/release ... ib_xua.pdf

I'd probably go the latter route for your requirements.
Technical Director @ XMOS. Opinions expressed are my own.
Kevin Jordan
Member++
Posts: 26
Joined: Fri May 22, 2020 5:52 pm

Post by Kevin Jordan »

Thanks for this, there are no binary example files I can download to test it out?