USB 2.0 MC development board not recognized by Windows 7

New to XMOS and XCore? Get started here.
xyzxyz
Member
Posts: 11
Joined: Thu Nov 14, 2013 5:05 am

USB 2.0 MC development board not recognized by Windows 7

Post by xyzxyz »

Hi all,

We bought the XS1-L2-USB-AUDIO-2.0-MC development board and downloaded the
"USB Audio Class 2.0 Evaluation Driver for Windows"
from here:
https://www.xmos.com/support/documentat ... duct=14771

We tried to run the setup in:
Thesycon\TUSBAudio_v2.15.0\EvaluationKit\DriverPackages\XMOS_EVAL_KITS_DEMO\DriverSetup\release\setup.exe

But it always asks us to unplug and the replug the board. The board is powered on, LEDs flushing and USB connected to our windows 7 (64-bit) laptop, but the problem persists.

Could anyone tell us how to solve this problem and get started with multi-channel audio recording?

Thank you in advance for your time!


User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

You need to flash the board withe the USB Audio Firmware.

1. Download the firmware front he following link : https://www.xmos.com/support/downloads/ ... duct=14771

2. Flash the board with the firmware

3. Disconnect the board from the host. Power cycle the device.

4. Reconnect the device to the host.

5. Install the driver (by following the instructions on the Host)

You can find the quick starter guide in the following link: https://www.xmos.com/en/download/public ... 1.0%29.pdf

Sethu
xyzxyz
Member
Posts: 11
Joined: Thu Nov 14, 2013 5:05 am

Post by xyzxyz »

Hi Sethu,

Thanks a lot for your detailed instruction.

Could you provide references for how to flash the firmware into the board?

Thanks again for your time!
sethu wrote:You need to flash the board withe the USB Audio Firmware.

Sethu
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

xyzxyz wrote:Could you provide references for how to flash the firmware into the board?
You can download the firmware and related documents from the following link:
https://www.xmos.com/support/downloads/ ... duct=14771

1. Build the firmware using xTIMEcomposer or command line. Have a look at the xTIMEcomposer user guide for more details.

2. If you use command line, navigate to the application folder and use 'xmake all' command. to build the application.

3. You can flash the board using xflash command. Use the command 'xflash <name of your binary>.xe'

Sethu.
xyzxyz
Member
Posts: 11
Joined: Thu Nov 14, 2013 5:05 am

Post by xyzxyz »

Hi Sethu,

Thanks! I downloaded the "USB Audio 2.0 XS1-L2 Binary" and extracted the firmware usb_audio.xe, but am not sure how to flash it onto the board.

Is this the right reference for flashing the board?
https://www.xmos.com/en/download/public ... 1.1%29.pdf

When I run the
xflash --boot-partition-size 0x20000 usb_audio.xe
on xTimeComposer command line, it always outputs error messages like: "XN11192 incomplete network configuration (no direction specified for link 4 on node 0)" and "F03023 Failed to load a target platform definition from input archive usb_audio.xe"

sethu wrote:
xyzxyz wrote:Could you provide references for how to flash the firmware into the board?
You can download the firmware and related documents from the following link:
https://www.xmos.com/support/downloads/ ... duct=14771

Sethu.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

xyzxyz wrote:Is this the right reference for flashing the board?
https://www.xmos.com/en/download/public ... 1.1%29.pdf
This document is for DFU(Device Firmware Upgrade). Follow the steps in the Section 4 of the following document :
https://www.xmos.com/en/download/public ... 1.0%29.pdf

Once you have build the application,
1. Click on the application binary(.xe file). you can find this on the left panel of the tool.
2. Right click on the application binary and select 'Flash as' --> 'Flash Configurations'.
3. This opens flash configurations window.
4. Double click on the 'xCORE Application' (you will find this in the left hand side of the flash Configurations window)
5. This adds your application binary in the flash configurations window. Click on your application binary and click on the 'Flash' button to flash the device.

Sethu.
xyzxyz
Member
Posts: 11
Joined: Thu Nov 14, 2013 5:05 am

Post by xyzxyz »

Sethu,

Thanks again for your help. I downloaded the
USB-Audio-2.0-XS1-L2-Software-Release(5.3)[11.2.0].zip
and tried to build the firmware application project app_usb_aud_l2, but always encounter the following error, for both Windows and Ubuntu. Build failure prevents flashing.

Could you check this and help again?

Creating usb_audio.xe
.././src/XUD_User.xc: Error: Multiple definition of 'XUD_UserSuspend'
.././../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_User.xc: Error: Multiple definition of 'XUD_UserSuspend.nstackwords'
.././../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_User.xc: Error: Multiple definition of 'XUD_UserSuspend.maxtimers'
.././../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_User.xc: Error: Multiple definition of 'XUD_UserSuspend.maxchanends'
.././../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_UserResume.xc: Error: Multiple definition of 'XUD_UserResume'
.././../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_UserResume.xc: Error: Multiple definition of 'XUD_UserResume.nstackwords'
.././../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_UserResume.xc: Error: Multiple definition of 'XUD_UserResume.maxtimers'
.././../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_UserResume.xc: Error: Multiple definition of 'XUD_UserResume.maxchanends'
.././../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
xmake: *** [bin/XR-USB-AUDIO-2.0-MC/usb_audio.xe] Error 1


sethu wrote: This document is for DFU(Device Firmware Upgrade). Follow the steps in the Section 4 of the following document :
https://www.xmos.com/en/download/public ... 1.0%29.pdf

Once you have build the application,
1. Click on the application binary(.xe file). you can find this on the left panel of the tool.
2. Right click on the application binary and select 'Flash as' --> 'Flash Configurations'.
3. This opens flash configurations window.
4. Double click on the 'xCORE Application' (you will find this in the left hand side of the flash Configurations window)
5. This adds your application binary in the flash configurations window. Click on your application binary and click on the 'Flash' button to flash the device.

Sethu.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

Which version of the tool are you using? You should be using 11.11.1 version of the tool. Also, when you are building the application click on the application and press the build button instead of building the entire project at once. Click on the "app_usb_aud_l2" application, and then click on the build button.

Sethu.
xyzxyz
Member
Posts: 11
Joined: Thu Nov 14, 2013 5:05 am

Post by xyzxyz »

OK. Some progress. I was using the latest version of xTIMEcomposer v13 (I didn't expect v11.1 was needed). Using v11.1.1, I got the following error messages after build. If I directly flash the usb_audio.xe, then I got "xrun: No available devices", even though the board is powered on and USB cable connected to host.

Could you help again? Thanks for your time.

Creating usb_audio.xe
xmap: Warning: On "stdcore[0]" (node "0", core 0) not all (12 of 32) bits of port "XS1_PORT_32A" are connected to pins in this package.
Constraint check for "stdcore[0]" (node "0", core 0):
Stack available: 0x000011b4, used: 0x00000f0c . OKAY
Threads available: 8, used: 6+. MAYBE
Timers available: 10, used: 5+. MAYBE
Chanends available: 32, used: 28+. MAYBE
Constraints checks PASSED WITH CAVEATS.
Constraint check for "stdcore[1]" (node "1", core 0):
Stack available: 0x0000a334, used: 0x0000229c . OKAY
Threads available: 8, used: 6 . OKAY
Timers available: 10, used: 5 . OKAY
Chanends available: 32, used: 15 . OKAY
Constraints checks PASSED.
xta: .././../module_usb_aud_shared/clocking/clockgen.xc:32: warning: route(0) Fail (missing loop iterations) with 54 unknowns, Num Paths: 4975734713695200, Slack: 3.4 us, Required: 5.2 us, Worst: 1.8 us, Min Core Frequency: 168 MHz


sethu wrote:Which version of the tool are you using? You should be using 11.11.1 version of the tool. Also, when you are building the application click on the application and press the build button instead of building the entire project at once. Click on the "app_usb_aud_l2" application, and then click on the build button.

Sethu.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

Probably you haven't connected the xTAG-2 device to the host. Also, make sure that the Black switch (power switch) on the side of the MC reference design board is switched ON before flashing.