How to configure target?

If you have a simple question and just want an answer.
rkn
Member
Posts: 14
Joined: Tue Nov 18, 2014 6:23 pm

How to configure target?

Post by rkn »

Hi,

 

I'm totally new to XMOS microcontrollers, so please, forgive me my stupid questions.

Today I studied xTimeComposer and the reference designs. So far so good. I have some background in C++ programming, thus it is not to difficult, but what I really don't understand is:

 

1) How do I reconfigure a project for another device.

E.g. I take the USB 2.0 Audio Mutlichannel reference design and instead of the device used on that board I want to use perhaps the XS1-L8A-64. What do I have to change in xTimeComposer then to build the software for this device?

 

2) Is there a way to find out wether the selected device can run the software (that it has enough cores etc.), so is there somewhere an overview how many cores the software occupies or how is it defined, how many cores are used?

Greetz,

Raphael

 

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

Post by sethu_jangala »

Here are the answers to your questions: 1. You can change the target board details in the MakeFile. If you look in the project explorer window, you will see Makefile. Right click on this file --> open with --> XMOS Application Makefile Editor. You will see for which target the application is compiled for. You can change the target from the list of available targets from the drop down box.

2. The second answer to your question is using xSOFTip explorer tool. This tools give you resource usage of all the xSOFTip softwares. In xTIEMcomposer, go to Window--> Show View --> other --> xSOFTip Explorer --> My system. This will open an my system view on the right side of the xTIEMcomposer tool. Import the modules into the My System by dragging and dropping into My System. On the bottom you will see My System Information window. This will show you all the resources used to build the system. You will find more information on xTIEMcomposer user guide.

This can also be viewed in xSOFTip tool. You can download the xSOFTip tool from the following link:

https://www.xmos.com/support/xtools

xSOFTip tutorial is available in the following link:

https://www.xmos.com/support/xtools/doc ... xSOFTip&co...

rkn
Member
Posts: 14
Joined: Tue Nov 18, 2014 6:23 pm

Post by rkn »

Hi, 

thanks for the answers, but I'm still not having success.

ad 1) When I right click on the makefile for e.g app_usb_aud_l1 I only get a view of the source code of the makefile. No dropdown box there and I don't see any line identifying the target chip. I only see

 TARGET = xr-usb-audio-2.0

Well if I now open the file xr-usb-audio-2.0.xn in Source view I see the line

<Package Id="P1" Type="XS1-L1A-TQ128">

Is it enough to change that to the desired device or do I have to do a change somewhere else, too?

When I open it in Design view I see the table cells and can edit this value, too but still no dropdwon box. And what about XS1-L1A

in this line:

<Node Id="0" Type="XS1-L1A" InPackageId="0" Oscillator="13MHz" SystemFrequency="500MHz">

?

ad 2) When I do that for e.g. module_xud I only get the message "Example applications cannot incorporated into your application for resource estimation. ..." ???

But I've seen that after compiling you can see how much is occupied by the app or via the binary tab. The only downside is you cannot see which modules occupy how much.

Raphael