Can't get the real-time XSCOPE to work Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
niektb
Member++
Posts: 28
Joined: Tue Mar 26, 2019 8:38 am

Can't get the real-time XSCOPE to work

Post by niektb »

Hi there!

I'm trying to develop a program for a custom XUF208 board but I can't get AN00196 Getting Started with Real-Time xSCOPE in xTIMEcomposer Studio to work...
I've added -fxscope to the makefile and modified the xn file to the following (as instructed in chapter 18 of the XTimeComposer User Guide):
<?xml version="1.0" encoding="UTF-8"?>
<Network xmlns="http://www.xmos.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.xmos.com http://www.xmos.com">
<Type>Device</Type>
<Name>XUF208-256-TQ64-C10 Device</Name>

<Declarations>
<Declaration>tileref tile[1]</Declaration>
<Declaration>tileref usb_tile</Declaration>
</Declarations>

<Packages>
<Package id="0" Type="XS2-UFnA-256-TQ64">
<Nodes>
<Node Id="0" InPackageId="0" Type="XS2-L8A-256" SystemFrequency="500MHz" OscillatorSrc="1">
<Boot>
<Source Location="bootFlash"/>
</Boot>
<Tile Number="0" Reference="tile[0]">
<Port Location="XS1_PORT_1B" Name="PORT_SQI_CS"/>
<Port Location="XS1_PORT_1C" Name="PORT_SQI_SCLK"/>
<Port Location="XS1_PORT_4B" Name="PORT_SQI_SIO"/>
</Tile>
</Node>
<Node Id="1" InPackageId="1" Type="periph:XS1-SU" Reference="usb_tile">
</Node>
</Nodes>
<Links>
<Link Encoding="5wire">
<LinkEndpoint NodeId="0" Link="8" Delays="52clk,52clk"/>
<LinkEndpoint NodeId="1" Link="XL0" Delays="1clk,1clk"/>
</Link>
<Link Encoding="2wire" Delays="4,4" Flags="XSCOPE">
<LinkEndpoint NodeId="0" Link="XL0"/>
<LinkEndpoint RoutingId="0x8000" Chanend="1"/>
</Link>
</Links>
</Package>
</Packages>

<ExternalDevices>
<Device NodeId="0" Tile="0" Class="SQIFlash" Name="bootFlash">
<Attribute Name="PORT_SQI_CS" Value="PORT_SQI_CS"/>
<Attribute Name="PORT_SQI_SCLK" Value="PORT_SQI_SCLK"/>
<Attribute Name="PORT_SQI_SIO" Value="PORT_SQI_SIO"/>
</Device>
</ExternalDevices>

<JTAGChain>
<JTAGDevice NodeId="0"/>
</JTAGChain>

</Network>


It all compiles and runs without errors but when switching to the Real-Time XSCOPE perspective it shows 'disconnected' in the Control tab and no sine wave :(
Does anybody have some pointers where I could take a look at? Thanks in advance! :)


View Solution
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am

Post by mon2 »

niektb
Member++
Posts: 28
Joined: Tue Mar 26, 2019 8:38 am

Post by niektb »

already did that :) but I stumbled across the actual solution! i didn't specify the oscillator frequency in the XN file :)