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
Where to start with XK-EVK-XU316
-
- Member
- Posts: 9
- Joined: Sun Mar 24, 2024 9:47 pm
-
- Member++
- Posts: 26
- Joined: Fri May 22, 2020 5:52 pm
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:
Make a hello.c file:
Open XTC Tools command prompt, compile it
Run it:
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.
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");
}
Code: Select all
xcc -O2 -Wall -target=XCORE-AI-EXPLORER hello.c -o hello.xe
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.
-
Verified
- XCore Legend
- Posts: 1070
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
There's an example app here: https://github.com/xmos/sw_usb_audio/tr ... _evk_xu316Kevin 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.
Technical Director @ XMOS. Opinions expressed are my own
-
- Member
- Posts: 9
- Joined: Sun Mar 24, 2024 9:47 pm
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 :)
-
- Member++
- Posts: 26
- Joined: Fri May 22, 2020 5:52 pm
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.Ross wrote: ↑Thu Jun 20, 2024 12:28 pmThere's an example app here: https://github.com/xmos/sw_usb_audio/tr ... _evk_xu316Kevin 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.
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
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
- 2 PDM mics
- I2S Audio Playback over Line Out
- I2S Recording from PDM mics
Thanks!
-
Verified
- XCore Legend
- Posts: 1070
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
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.
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
-
- Member++
- Posts: 26
- Joined: Fri May 22, 2020 5:52 pm
Thanks for this, there are no binary example files I can download to test it out?