Hi,
I am designing a USB mic interface that will hopefully record audio to uSD card.
Currently I have issues with UAC 2.0 support directly from the M cortex micro I am using so I am considering using
Xmos X200 for the USB interface.
Since we can now us regular C with XTC tools I was wondering if anyone has managed to make any FAT32 lib or uSD card driver
work ?
I see some posts from 2009 ! but nothing since on the subject. Is this because there is insufficient RAM on any given tile and no DMA
to make sustained high speed writes impossible ? lack of RAM for FATFS memory stack ?
I am just thinking it would save me from using a microcontroller along side the XMOS in the design if this was possible.
Perhaps with the newer AI chip ?
I am looking at basic I2C control of ADC IC an OLED screen and recording a mono audio stream to an SD card with large capacity ( 256GB at least )
FAT32 uSD card possible?
-
- Member
- Posts: 9
- Joined: Sat Jul 11, 2015 5:17 am
-
- Member
- Posts: 9
- Joined: Sat Jul 11, 2015 5:17 am
I just found this alpha lib.
https://github.com/xcore/sc_sdcard
Assuming I'll need to copy the buffer in the I2S/TDM library and write that to SD card file? I think the CPU is running fast enough to do this without DMA?
I already have some wav file recorder code that should work.
Has this already been done before I reinvent the wheel ?
I also found there is a fatfs module in the rtos lib so not sure which is the best option ?
https://github.com/xmos/fwk_rtos
can I use xcommon & sc_sdcard with code libs such as lib_xud as in the sw_usb_audio-_sw_v8_1_0 example ? or do they belong to a different build environment ?
https://github.com/xcore/sc_sdcard
Assuming I'll need to copy the buffer in the I2S/TDM library and write that to SD card file? I think the CPU is running fast enough to do this without DMA?
I already have some wav file recorder code that should work.
Has this already been done before I reinvent the wheel ?
I also found there is a fatfs module in the rtos lib so not sure which is the best option ?
https://github.com/xmos/fwk_rtos
can I use xcommon & sc_sdcard with code libs such as lib_xud as in the sw_usb_audio-_sw_v8_1_0 example ? or do they belong to a different build environment ?
-
- Active Member
- Posts: 33
- Joined: Tue Jul 16, 2024 9:52 am
- Location: Bristol, UK
Yes, sc_sdcard works with the XCommon build system (not the new XCommon CMake build system).can I use xcommon & sc_sdcard with code libs such as lib_xud as in the sw_usb_audio-_sw_v8_1_0 example ? or do they belong to a different build environment ?
You will need to clone sc_sdcard into your sandbox and modify the Makefile in the sw_usb_audio application that you are building: add eg. "module_FatFs" to the USED_MODULES variable.
The fatfs module of fwk_rtos uses a different build system so it will not be straightforward to use that with sw_usb_audio.
I'm not familiar with either sc_sdcard or the fatfs module of fwk_rtos, so I can't comment on their functionality or quality.
XMOS, Senior Software Engineer
-
- Member
- Posts: 9
- Joined: Sat Jul 11, 2015 5:17 am
ok ,
I'll make up a pcb with XU316-1024-TQ128-I24 and give it a try.
thanks
I'll make up a pcb with XU316-1024-TQ128-I24 and give it a try.
thanks