Build USB-Audio Reference-Design(3.3)[11.2.0] in XDE 12

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Post Reply
Peter24
Newbie
Posts: 1
Joined: Thu Nov 22, 2012 8:09 am

Build USB-Audio Reference-Design(3.3)[11.2.0] in XDE 12

Post by Peter24 »

Hi,
how can I build USB-Audio-2.0-Software-Reference-Design(3.3)[11.2.0].zip in xTIMEcomposer Studio 12 ?

from the readme :
* Select the "Import" item from the "File" menu
* Select "General" -> "Existing Projects into Workspace" and click "Next"
* Click on "Browse" next to "Select archive file" and select the ...zip file.

But then I want build and get the unresolved iclusions:
#include <syscall.h>
#include <platform.h>
#include <xs1.h>
#include <xclib.h>
#include <print.h>

In an other post I read to make projekt first.
So I make it, but from which target? I choose XK-1A ..
I can only build, if the Name of Project has spaces. With space (eg. "USB Audio") it can not compile. I get at console:
**** Build of configuration Debug for project USB Audio ****

xmake CONFIG=Debug all
xmake[1]: C:/Program\: No such file or directory
xmake[1]: *** No rule to make target `C:/Program\'. Stop.
xmake: *** [bin/Debug/"USB] Error 2

So I make a new Project "USBAudio"
The extracted folders in USB-Audio-2.0-Software-Reference-Design(3.3)[11.2.0].zip I copied via drag&drop to the root of the Project (parallel to folder src).

With build all I get the errors:
...
Creating USBAudio_Debug.xe
.././src/XUD_UserResume.xc:(.text+0x0): Error: Multiple definition of 'XUD_UserResume'
../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_UserResume.xc:(SHN_ABS+0x0): Error: Multiple definition of 'XUD_UserResume.nstackwords'
../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_UserResume.xc:(SHN_ABS+0x0): Error: Multiple definition of 'XUD_UserResume.maxtimers'
../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_UserResume.xc:(SHN_ABS+0x0): Error: Multiple definition of 'XUD_UserResume.maxchanends'
../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_User.xc:(.text+0x0): Error: Multiple definition of 'XUD_UserSuspend'
../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_User.xc:(SHN_ABS+0x0): Error: Multiple definition of 'XUD_UserSuspend.nstackwords'
../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_User.xc:(SHN_ABS+0x0): Error: Multiple definition of 'XUD_UserSuspend.maxtimers'
../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here
.././src/XUD_User.xc:(SHN_ABS+0x0): Error: Multiple definition of 'XUD_UserSuspend.maxchanends'
../module_usb_aud_shared/xuduser/xuduser.xc: Error: first defined here

Later I downloaded the old Version xde 11.2.0: With this I can build without erros with the steps from readme:
* Select the "Import" item from the "File" menu
* Select "General" -> "Existing Projects into Workspace" and click "Next"
* Click on "Browse" next to "Select archive file" and select the ...zip file.

How can I build the example in xTIMEcomposer Studio 12 ?

Peter


User avatar
Ross
XCore Expert
Posts: 966
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

You need to use a later version of the codebase. The latest version ideally.
Post Reply