USB slice Kit - Host for USB key

If you have a simple question and just want an answer.
nleroy
Member
Posts: 8
Joined: Tue Jun 16, 2015 10:52 am

USB slice Kit - Host for USB key

Post by nleroy »

Hi,

I would like to add a mass storage (USB key) to a project based on USB sliceKit (U16). I would like to store audio files on a USB key and play the files on the Analog slice.

I have seen on the USB slice kit that the board can work in multi mode USB (Device + Host) but I can't find any library or example for the host implementation.

Is there such a libray avalaible, please ?

Thanks,

Best regards,

Nicolas

 

Guest

Post by Guest »

Unfortunately there is no example implementation of (Host + Device) readily available. All the app notes examples contains various device classes. My understanding is that, the MFA(Multi Functional Audio) platform uses Host + Device implementation. It can be enumerated either as a device or as a host basedc on the required functionality. You can find the related documentation for MFA platform from the following link:

https://www.xmos.com/support/boards?pro ... 8&secure=1

 

App notes on various USB device classes:(incase you haven't seen this yet)

http://www.xmos.com/support/appnotes?su ... 20examples

 

 

 

srinie
XCore Addict
Posts: 158
Joined: Thu Mar 20, 2014 8:04 am

Post by srinie »

Hi Nicolas,

Usb host functionality isn't available as library yet.

I am trying to understand the use case of the usb-host functionality for this application.

Should the mass storage necessarily be used as a boot device as well? just curious to know similar use-cases.

 

Just a link below if it is of any help,

http://www.xmos.com/support/appnotes/an00125

 

Regards,

Srinivas

nleroy
Member
Posts: 8
Joined: Tue Jun 16, 2015 10:52 am

Post by nleroy »

Hi,

Thanks for your answers and your time. Unfortunately and as far as I understand "AN00125: USB Mass Storage Device Class" describes only how to create a mass storage device using an Xmos mcu and not a host. It uses the "on-board serial flash M25P16 as its memory device".

In this project, USB mass storage (USB key or drive) will only be used to read audio files, so there is no need of booting or putting code on it. However the USB host library must be able to read a standard file system (FAT ...).

At the moment, the board acts as a USB Audio Device and audio is streamed from a computer. We would like to have a standalone mode without an external computer. It would be nice if we can have both : USB Audio Device to stream audio + USB key to have audio files stored.

I am looking also to the possibility to use an SD card instead of a USB key. That looks easier. I am wondering if there is any use case of the A connector on the USB A/B slice card ...

Nicolas

 

 

srinie
XCore Addict
Posts: 158
Joined: Thu Mar 20, 2014 8:04 am

Post by srinie »

This has a link to SD Card repository:

https://github.com/xcore/sc_sdcard

It looks bit old, but may provide a good starting point. Hopefully there should be some SD card library and a related application note available in the near future.

 

nleroy
Member
Posts: 8
Joined: Tue Jun 16, 2015 10:52 am

Post by nleroy »

Thanks for the link.

Are you aware of any libray ready for reading and playing wav files from SD card using XMOS mcu (specially for timing management ...) ?

Thanks,

Nicolas

 

User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am

Post by mon2 »