Trouble building USB-Audio-2.0-Software-v6.1 Topic is solved

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
mmar
Experienced Member
Posts: 123
Joined: Fri Jul 05, 2013 5:55 pm

Post by mmar »

see image
You do not have the required permissions to view the files attached to this post.


View Solution
Guest

Post by Guest »

Didn't know about that. thanks!
Sorry if this is a basic question, but what does this do? At the top of the page, right under Project References, is says "Use this page to specify what other projects are referenced by the project". Does this affect what is built?

I used your screen shot and checked all the same boxes for the app_asb_aud_l1 Project References (module_xud unchecked). No change.
mmar
Experienced Member
Posts: 123
Joined: Fri Jul 05, 2013 5:55 pm

Post by mmar »

I have this checked and on end of build see

Problems occurred building the selected resources.
Errors running builder 'CDT Builder' on project 'module_xud'.
java.lang.NullPointerException

When i uncheck xud , build end without errors ( only some warnings)
Try all dirs and modules in project and control if this reference to xud module is not checked.

Copy my checkboxs is not optimal, i test spdif and turn off more unused parts.
When you have more trouble i can send you full workspace dir zipped.
Guest

Post by Guest »

I guess I am seeing the same thing you are. A lot of warnings, but no errors.
Under Console tab it says "Constaints checks PASSED WITH CAVEATS. Build complete."
Under Problems tabs says there are 352 warnings. Is that anything to be worried about? They are all "Invalid project path" warnings.
When I include module_xud I get the Build Project error.

I submitted a ticket and they sent me a project zip file with an updated xud module. I'll give that a try and see what happens.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

This is an issue with the metadata (.cproject) files in the usb audio reference
design. The error only occurs when the whole workspace is built (as opposed
to just the relevent app), and it can safely be ignored. The warnings relate to entries in the
.cproject file that include references to files in the .build directory for the includes, which should
not be there. These can also safely be ignored.

Sethu.
Guest

Post by Guest »

whew! Then it looks like that part is done!
Now time to Flash. Is there a document out there that explains Flash Configurations? I have been looking through the xTIMEcomposer User Guide and xTOOLS resources but both seem to assume that I'm a programmer.
Guess I'll try to find a tutorial.

Thanks everybody!
Guest

Post by Guest »

Well, it turns out that the xud module error can't be ignored.
With the xud module included in the project I get an error when trying to Flash.
When it is not included, I get a different error. This error is failure to recognize the flash device. great.
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

If you are not able to flash, things to note:

1. Check if xtag is being detected using "xrun -l" command from the command line.

2. If xtag is being detected, make sure you connect the USB cable between the Reference design board (USB Audio board) and Host PC.

3. Connect the xtag to host pc and flash the firmware using xflash command from the command line.

Sethu.
mmar
Experienced Member
Posts: 123
Joined: Fri Jul 05, 2013 5:55 pm

Post by mmar »

For good flash procces you need two points:
1. Valid xn target definition file. In source tree is default xn target named in makefile.
xr-usb-audio-2.0 is target name and his file xr-usb-audio-2.0.xn locate in core directory.
See this file , here is lines about flash type and connection:
<ExternalDevices>
<Device NodeId="0" Core="0" Class="SPIFlash" Name="bootFlash" Type="AT25FS010">
<Attribute Name="PORT_SPI_MISO" Value="PORT_SPI_MISO"/>
<Attribute Name="PORT_SPI_SS" Value="PORT_SPI_SS"/>
<Attribute Name="PORT_SPI_CLK" Value="PORT_SPI_CLK"/>
<Attribute Name="PORT_SPI_MOSI" Value="PORT_SPI_MOSI"/>
</Device>
</ExternalDevices>
If your design have AT25FS010 then all here is ok goto step 2.
If not change to supported flash that ypou use.

2. IN XDE 12.2 you create valid flash config this way:
- left click in project explorer on first app_usb_aud_l1 (or next if you make su1)
- then left click on flash drop menu and Flash configurations then green Xcore application
- click New icon left up
- on right refresh xtags list and select your USB Xtag connected
- click Apply and Flash

Thats all.
Guest

Post by Guest »

It is flashed! All I had to do was to access the xr-usb-audio-2.0.xn file, change the device type to AT25DF041A, and a small hardware change.

I have installed the Thesycon evaluation driver but have not been able to get audio to the development board. At this point I am not sure I selected the appropriate modules (I used the df, usb audio, usb shared, and xud modules) or set up the Flash configurations correctly.