Page 1 of 1

xScope reading times all zero

Posted: Wed Apr 17, 2019 2:29 pm
by bobbylala
Hello,

I am trying a couple of examples for using xScope in real-time and offline mode and things largely seem alright aside from the start and end times of each reading being 0. Here is an example of xscope.xmt that gets generated when running in offline mode: You can see Start="0" End="0" for every single reading.

Code: Select all

<XtEvents>
<XtEventTypes>
<XtEventType Id="0" Type="2" Name="Sin Value" Units="ps" UserType="3" UserUnits="Value"/>
<XtEventType Id="1" Type="2" Name="Cos Value" Units="ps" UserType="3" UserUnits="Value"/>
<XtEventType Id="2" Type="2" Name="Tan Value" Units="ps" UserType="3" UserUnits="Value"/>
<XtEventType Id="255" Type="1" Name="Missing Data" Units="ps" UserType="0" UserUnits="None"/>
</XtEventTypes>
<XtEventColors>
<XtEventColor Id="0" R="148" G="0" B="211" KeyText="None"/>
<XtEventColor Id="1" R="255" G="69" B="0" KeyText="None"/>
<XtEventColor Id="2" R="218" G="165" B="32" KeyText="None"/>
<XtEventColor Id="255" R="255" G="0" B="0" KeyText="None"/>
</XtEventColors>
<XtGlobalStart MilliSecs="1555500715256"/>
<TotalXtEvents Number="0"/>
<XtEventRecords>
<Record Type="0" Color="0" Start="0" End="0" User="0.000000"/>
<Record Type="1" Color="1" Start="0" End="0" User="100.000000"/>
<Record Type="2" Color="2" Start="0" End="0" User="0.000000"/>
<Record Type="0" Color="0" Start="0" End="0" User="9.983342"/>
<Record Type="1" Color="1" Start="0" End="0" User="99.500420"/>
<Record Type="2" Color="2" Start="0" End="0" User="10.033467"/>
<Record Type="0" Color="0" Start="0" End="0" User="19.866934"/>
<Record Type="1" Color="1" Start="0" End="0" User="98.006660"/>
<Record Type="2" Color="2" Start="0" End="0" User="20.271004"/>
<Record Type="0" Color="0" Start="0" End="0" User="29.552021"/>
<Record Type="1" Color="1" Start="0" End="0" User="95.533646"/>
When running in real-time mode, I see the trace but it only exists for time = 0, so it just moves up or down at time division 0. It is slower to update than I expected but it's my first time seeing it so that might be normal.

I terms of set-up, I am using the xCORE-200 MC Audio Platform 2v0 (XE216-512-TQ128) hardware, running from xTIME 14.3.3. The source code I am running is the same as AN10091 (I also tried AN00196 with the same result). The application notes I first read mentioned that there should be a Link="X0LD" in the .xn but I read that was superceded so I have Link="XL0" in my .xn:

Code: Select all

<Link Encoding="2wire" Delays="4,4" Flags="XSCOPE">
    <LinkEndpoint NodeId="0" Link="XL0"/>
    <LinkEndpoint RoutingId="0x8000" Chanend="1"/>
</Link>
Has anyone run into this problem before? Or knows what might be causing it?

Cheers

Re: xScope reading times all zero

Posted: Wed Apr 24, 2019 11:48 am
by bobbylala
SOLVED:

I was missing the oscillator specification for both the Tiles node and the USB-tile node in my .xn file.

Original:

Code: Select all

<Nodes>
  <Node Id="0" InPackageId="0" Type="XS2-L16A-512" SystemFrequency="500MHz" OscillatorSrc="1">
    <Tile Number="0" Reference="tile[0]"/>
    <Tile Number="1" Reference="tile[1]"/>
  </Node>
  <Node Id="1" InPackageId="1" Type="periph:XS1-SU" Reference="usb_tile">
  </Node>
</Nodes>
Corrected:

Code: Select all

<Nodes>
  <Node Id="0" InPackageId="0" Type="XS2-L16A-512" Oscillator="24MHz" SystemFrequency="500MHz" referencefrequency="100MHz">
    <Tile Number="0" Reference="tile[0]"/>
    <Tile Number="1" Reference="tile[1]"/>
  </Node>
  <Node Id="1" InPackageId="1" Type="periph:XS1-SU" Reference="usb_tile" Oscillator="24MHz">
  </Node>
</Nodes>