USB firmware

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

USB firmware

Post by gana »

Hello i asked q question but no response and no hint for 10 almost days

so i am asking again

There is "USB-Audio-2.0-XS1-L2-Binary(5.3)[11.2.0]" xe firmware demonstrated by XMOS.

- I can not open and see whole source code in it. How can i do it?
- If i cant , can i download its whole source from your site? then how or give me please..


User avatar
xsamc
Active Member
Posts: 55
Joined: Fri Mar 04, 2011 3:38 pm

Post by xsamc »

Hi gana,

The "USB Audio 2.0 XS1-L2 Binary" download only contains the compiled binary, and no source code.

The "USB Audio 2.0 XS1-L2 Software Release" download contains all the source files. You should find this download available in the "REFERENCE DESIGNS" tab on the "My XMOS" page.
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

thank you and sorry for simple questions.
i have 2 questions those are:
1.i red the readme file in codes you suggested me, there is explanation that app_usb_aud_l2 is only application code for USB.xe others are just common codes for PC or something else and so
i found below codes from app_usb_aud_l2 it says that declared PORT_1A, PORT_1B, as SPI(i2c) but declared as Analog to digital/ADC inputs as i2s either. BUT does it work that spi(i2c) and i2s are declared on same pin?

***
fl_PortHolderStruct p_flash = {
XS1_PORT_1A, //X1D00 Digital data input (we are using as MISO)Master in slave out
XS1_PORT_1B, //X1D01 Digital data input (we are using as CLK) clock
XS1_PORT_1C, //X1D10 SDA-I2C(we are using as MOSI) Master out slave in
XS1_PORT_1D, //X1D11 SCL-I2C(we are using as SS) slave selector
XS1_CLKBLK_2 // operation of each port is synchronized to a clk blk, clk blk can also output its signal to a pin
};

***
#define PORT_COD_ADC_1 XS1_PORT_1A
#define PORT_COD_ADC_2 XS1_PORT_1B


2. i am learning about how does your core work and transmit audio data from codec and to pc.
So i am tracking input but stacked see below please.

- #define PORT_COD_ADC_1 XS1_PORT_1A

- p_i2s_adc[I2S_WIRES_ADC] = {PORT_COD_ADC_0, PORT_COD_ADC_1,....};

- // void configure_in_port(void port p, const __clock_t clk);
for(int i = 0; i < ( (6) >> 1) ; i++)
{
configure_in_port(p_i2s_adc, clk_audio_bclk) ;
}
*************************************************
That is all... configure_in_port is no use anymore in source code, so what is my wrong?
any advice will be appreciated :)
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

sorry again one more question my board name is xs1-l2 MC audio so
can i see audio signals of 4 inputs separately in the XDE scope? if yes how what environment or software do i need to install?