XN Error

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Post Reply
dimitris
Active Member
Posts: 37
Joined: Tue Feb 19, 2013 5:07 pm

XN Error

Post by dimitris »

Hi everybody,

I am trying to port an old project from a StartKit to a custom design that uses the XS1-A8A-128-FB217-C8 device.
I changed the device type on the makefile, clean and built and now I get the following error

Code: Select all

Warning: XN11135 Attribute SystemFrequency is ignored when Oscillator is not specified.
/tmp/.xgdb2676-26LLWP9E/platform.xn:28 Warning: XN11135 Attribute SystemFrequency is ignored when Oscillator is not specified.
xrun: Binary not correctly downloaded to target device
This is my XN file:

Code: Select all

<?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>XS1-A8A-128-FB217-C8 Device</Name>

  <Declarations>
    <Declaration>tileref tile[2]</Declaration>
    <Declaration>tileref analog_tile</Declaration>
  </Declarations>

  <Packages>
    <Package ID="0" Type="XS1-AnA-128-FB217">
      <Nodes>
        <Node Id="0" InPackageId="0" Type="XS1-L4A-64" OscillatorSrc="2" SystemFrequency="400MHz">
          <Tile Number="0" Reference="tile[0]"/>
        </Node>
        <Node Id="1" InPackageId="1" Type="XS1-L4A-64" OscillatorSrc="2" SystemFrequency="400MHz">
          <Tile Number="0" Reference="tile[1]"/>
        </Node>
        <Node Id="2" InPackageId="2" Type="periph:XS1-SU" Reference="analog_tile">
          <Service Proto="xs1_su_adc_service(chanend c)">
            <Chanend Identifier="c" end="2" remote="31"/>
          </Service>
        </Node>
      </Nodes>
    </Package>
  </Packages>

  <Links>
    <Link Encoding="5wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="XLG"/>
      <LinkEndpoint NodeId="1" Link="XLF"/>
    </Link>
    <Link Encoding="5wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="XLH"/>
      <LinkEndpoint NodeId="1" Link="XLE"/>
    </Link>
    <Link Encoding="5wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="XLE"/>
      <LinkEndpoint NodeId="1" Link="XLH"/>
    </Link>
    <Link Encoding="5wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="XLF"/>
      <LinkEndpoint NodeId="1" Link="XLG"/>
    </Link>
    <Link Encoding="5wire">
      <LinkEndpoint NodeId="0" Link="XLC" Delays="52clk,52clk"/>
      <LinkEndpoint NodeId="2" Link="XLC" Delays="1clk,1clk"/>
    </Link>
  </Links>

  <JTAGChain>
     <JTAGDevice NodeId="2"/>
     <JTAGDevice NodeId="0"/>
     <JTAGDevice NodeId="1"/>
  </JTAGChain>
 
</Network>

Does that look good to you? I do not understand why there are three nodes and why the Oscillator comes from node "2"?

Thank you in advance.

Greetings,
D


richard
Respected Member
Posts: 318
Joined: Tue Dec 15, 2009 12:46 am

Post by richard »

dimitris wrote:Does that look good to you? I do not understand why there are three nodes and why the Oscillator comes from node "2"?
A node is an entity on the network that is connected to other nodes via links. Even though the XS1-AnA-128-FB217 device is a single chip, internally there are 3 nodes - two nodes for the two processor tiles and another node for the analog tile.

The oscillator used by the device can be specified in two ways. You can specify it directly with the Oscillator attribute, e.g.

Code: Select all

Oscillator="25MHz" 
Alternatively you can specify that the oscillator for one node is supplied from another node:

Code: Select all

OscillatorSrc="2" 
The advantage of this second form is that it reduces duplication - instead of having to repeat the oscillator speed for each node you only need to set it for one node and the other nodes will get the same oscillator.
Warning: XN11135 Attribute SystemFrequency is ignored when Oscillator is not specified.
You get this warning because the you haven't specified the oscillator for the analog node. I suggest adding the Oscillator attribute with a frequency that matches the oscillator on your board.
Post Reply