How to build the USB-Audio 2.0 sample in XDE 11.11? (errors)

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
isymc
New User
Posts: 3
Joined: Wed Aug 29, 2012 12:21 pm

How to build the USB-Audio 2.0 sample in XDE 11.11? (errors)

Post by isymc »

I followed the instructions in the quick start manual and imported the downloaded sample code 'USB-Audio-2.0-XS1-L2-Software-Release(5.3)[11.2.0].zip' to an empty workspace in XDE 11.11.1.

First I get a lot of 'Unresolved Include" warnings in some .xc code files. Running the build process shows several errors:

Code: Select all

Description	Resource	Path	Location	Type
'fl_readImageRead' is deprecated (declared at C:/Programme/XMOS/DevelopmentTools/11.11.1/target/include/flash.h:365)	flash_interface.c	/module_dfu/src	line 105	C/C++ Problem
'strDescs_Audio1' defined but not used	descriptors_2.h	/module_usb_aud_shared/endpoint0	line 1622	C/C++ Problem
#warning Extention units on the audio path are required for mixer. Enabling them now.	descriptors_2.h	/module_usb_aud_shared/endpoint0	line 160	C/C++ Problem
#warning IN Vols in mixer, AFTER mix & map	mixer.xc	/module_usb_aud_shared/mixer	line 168	C/C++ Problem
#warning OUT Vols in mixer, AFTER mix & map	mixer.xc	/module_usb_aud_shared/mixer	line 233	C/C++ Problem
#warning USING FAST MIXER	mixer.xc	/module_usb_aud_shared/mixer	line 30	C/C++ Problem
control reaches end of non-void function	app_usb_aud_l2		line 367, external location: C:\Programme\XMOS\DevelopmentTools\11.11.1\target\include\flash.h	C/C++ Problem
Error launching external scanner info generator (g++ -E -P -v -dD C:/Dokumente und Einstellungen/mci/Eigene Dateien/XMOS/xmos_usb_aud_l2/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)	module_adat_rx_v3		Unknown	C/C++ Problem
Error launching external scanner info generator (g++ -E -P -v -dD C:/Dokumente und Einstellungen/mci/Eigene Dateien/XMOS/xmos_usb_aud_l2/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)	module_dfu		Unknown	C/C++ Problem
Error launching external scanner info generator (g++ -E -P -v -dD C:/Dokumente und Einstellungen/mci/Eigene Dateien/XMOS/xmos_usb_aud_l2/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)	module_spdif_rx		Unknown	C/C++ Problem
Error launching external scanner info generator (g++ -E -P -v -dD C:/Dokumente und Einstellungen/mci/Eigene Dateien/XMOS/xmos_usb_aud_l2/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)	module_spdif_tx		Unknown	C/C++ Problem
Error launching external scanner info generator (g++ -E -P -v -dD C:/Dokumente und Einstellungen/mci/Eigene Dateien/XMOS/xmos_usb_aud_l2/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)	module_usb_aud_shared		Unknown	C/C++ Problem
Error launching external scanner info generator (g++ -E -P -v -dD C:/Dokumente und Einstellungen/mci/Eigene Dateien/XMOS/xmos_usb_aud_l2/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)	module_usb_midi		Unknown	C/C++ Problem
Error launching external scanner info generator (g++ -E -P -v -dD C:/Dokumente und Einstellungen/mci/Eigene Dateien/XMOS/xmos_usb_aud_l2/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)	module_usb_shared		Unknown	C/C++ Problem
Error launching external scanner info generator (g++ -E -P -v -dD C:/Dokumente und Einstellungen/mci/Eigene Dateien/XMOS/xmos_usb_aud_l2/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)	module_xud		Unknown	C/C++ Problem
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.	app_usb_aud_l2		line 0	C/C++ Problem
overflow in implicit constant conversion	clockgen.xc	/module_usb_aud_shared/clocking	line 682	C/C++ Problem
reinterpretation to type of larger alignment	audiorequests.xc	/module_usb_aud_shared/endpoint0	line 402	C/C++ Problem
reinterpretation to type of larger alignment	usb_buffer.xc	/module_usb_aud_shared/usb_buffer	line 189	C/C++ Problem
reinterpretation to type of larger alignment	usb_buffer.xc	/module_usb_aud_shared/usb_buffer	line 376	C/C++ Problem
reinterpretation to type of larger alignment	usb_buffer.xc	/module_usb_aud_shared/usb_buffer	line 380	C/C++ Problem
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	clockgen.xc	/module_usb_aud_shared/clocking	line 32	C/C++ Problem

I successfully built an simulated some new applications (my own code) based on the 'github howto' instructions, but I can't get the USB reference code to build without errors/warnings.

Maybe it's a version mismatch problem between XDE 11.2 and 11.11, thus the project structure looks somewhat different.

There is an XDE option to create a new project based on an legacy project but it does not allow to import from external location/archive.


Any hint welcome ;)

Chris


isymc
New User
Posts: 3
Joined: Wed Aug 29, 2012 12:21 pm

Post by isymc »

Update ...

I could get rid of the 'unresolved include' and 'external scanner' errors by creating a new XDE project and manually adding the files via drag&drop.

Still leaving a bunch of warnings:

Code: Select all

Description	Resource	Path	Location	Type
'fl_readImageRead' is deprecated (declared at C:/Programme/XMOS/DevelopmentTools/11.11.1/target/include/flash.h:365)	flash_interface.c	/sw_usb_audio_l2/module_dfu/src	line 105	C/C++ Problem
'strDescs_Audio1' defined but not used	descriptors_2.h	/sw_usb_audio_l2/module_usb_aud_shared/endpoint0	line 1622	C/C++ Problem
#warning Extention units on the audio path are required for mixer. Enabling them now.	descriptors_2.h	/sw_usb_audio_l2/module_usb_aud_shared/endpoint0	line 160	C/C++ Problem
#warning IN Vols in mixer, AFTER mix & map	mixer.xc	/sw_usb_audio_l2/module_usb_aud_shared/mixer	line 168	C/C++ Problem
#warning OUT Vols in mixer, AFTER mix & map	mixer.xc	/sw_usb_audio_l2/module_usb_aud_shared/mixer	line 233	C/C++ Problem
#warning USING FAST MIXER	mixer.xc	/sw_usb_audio_l2/module_usb_aud_shared/mixer	line 30	C/C++ Problem
control reaches end of non-void function	sw_usb_audio_l2		line 367, external location: C:\Programme\XMOS\DevelopmentTools\11.11.1\target\include\flash.h	C/C++ Problem
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.	sw_usb_audio_l2		line 0	C/C++ Problem
overflow in implicit constant conversion	clockgen.xc	/sw_usb_audio_l2/module_usb_aud_shared/clocking	line 682	C/C++ Problem
reinterpretation to type of larger alignment	audiorequests.xc	/sw_usb_audio_l2/module_usb_aud_shared/endpoint0	line 402	C/C++ Problem
reinterpretation to type of larger alignment	usb_buffer.xc	/sw_usb_audio_l2/module_usb_aud_shared/usb_buffer	line 189	C/C++ Problem
reinterpretation to type of larger alignment	usb_buffer.xc	/sw_usb_audio_l2/module_usb_aud_shared/usb_buffer	line 376	C/C++ Problem
reinterpretation to type of larger alignment	usb_buffer.xc	/sw_usb_audio_l2/module_usb_aud_shared/usb_buffer	line 380	C/C++ Problem
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	clockgen.xc	/sw_usb_audio_l2/module_usb_aud_shared/clocking	line 32	C/C++ Problem
Chris
isymc
New User
Posts: 3
Joined: Wed Aug 29, 2012 12:21 pm

Post by isymc »

Update++

Builds and runs now, but...

Code: Select all

#warning USING FAST MIXER
#warning IN Vols in mixer, AFTER mix & map	
#warning OUT Vols in mixer, AFTER mix & map
There is a switch for conditional compilation but not explained why setting this switch may cause problems.

Isn't 'fast mixer' a good mixer or does it cause unwanted heavy processor load ... so what?

If 'Out Vols after mix&map' is a bad idea why is it enabled in the USB reference code?


Further I really can't figure out what's going wrong here...

Code: Select all

control reaches end of non-void function   sw_usb_audio_l2  ...XMOS\DevelopmentTools\11.11.1\target\include\flash.h
Any hint?

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

Post by Ross »

isymc wrote:Update++

Builds and runs now, but...

Code: Select all

#warning USING FAST MIXER
#warning IN Vols in mixer, AFTER mix & map	
#warning OUT Vols in mixer, AFTER mix & map
There is a switch for conditional compilation but not explained why setting this switch may cause problems.

Isn't 'fast mixer' a good mixer or does it cause unwanted heavy processor load ... so what?

If 'Out Vols after mix&map' is a bad idea why is it enabled in the USB reference code?


Further I really can't figure out what's going wrong here...

Code: Select all

control reaches end of non-void function   sw_usb_audio_l2  ...XMOS\DevelopmentTools\11.11.1\target\include\flash.h
Any hint?

Chris

Fast mixer is fine, its fast but no very easy to read code (this is why the original version is left in). The fast version actually modifies instructions during configuration.

These warnings are just for info really, do not worry about it (it is just a way of getting info to the user during build)
Post Reply