XUF216: XScope not working

Technical discussions around xCORE processors (e.g. xcore-200 & xcore.ai).
Post Reply
Bambus
Member++
Posts: 27
Joined: Tue Feb 28, 2017 12:52 pm

XUF216: XScope not working

Post by Bambus »

Hi all,

I have made a board with the XUF216-512 processor. It is booting fine and I can run programs on it using JTag as target I/O option. But when I try to run code with xScope target I/O option, it seems like the program gets stuck right at the very beginning. I am interfacing the board with the XTag 3 and a xSys header with link 0 (X0D40...X0D43) connected to pins 118,14,10,6 of the header. I haven't used 33 Ohm resistors at the transmitter. I have attached my target file. Any ideas where the problem is?

Thank you :-)
<?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>XUF216-512-TQ128-C20 Device</Name>

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

  <Packages>
    <Package id="0" Type="XS2-UFnA-512-TQ128">
      <Nodes>
        <Node Id="0" InPackageId="0" Type="XS2-L16A-512" SystemFrequency="500MHz" Oscillator="24MHz" RoutingId="0x8000">
          <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>
          <RoutingTable>
            <Bits>
              <Bit number="0" direction="0"/>
              <Bit number="15" direction="0"/>
            </Bits>
            <Links>
              <Link name="XL0" direction="0"/>
            </Links>
          </RoutingTable>
          <Tile Number="1" Reference="tile[1]"/>
        </Node>
      </Nodes>
<Links>
      </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>
<Nodes>
    <Node Id="1" Type="device:" routingId="0x8001" Reference="xscope_tile">
      <Service Id="0" Proto="xscope_host_data(chanend c);">
        <Chanend Identifier="c" end="3"/>
      </Service>
    </Node>
  </Nodes>
  <Links>
    <Link Encoding="2wire" Delays="4,4" Flags="XSCOPE">
      <LinkEndpoint NodeId="0" Link="XL0"/>
      <LinkEndpoint NodeId="1" Chanend="1"/>
    </Link>
  </Links>
  <JTAGChain>
    <JTAGDevice NodeId="0"/>
  </JTAGChain>

</Network>


Bambus
Member++
Posts: 27
Joined: Tue Feb 28, 2017 12:52 pm

Post by Bambus »

For some reason the program runs if i change the routingId of the xscope node from 0x8001 to 0x8000 and the package routingId to any 0xhhh0. If anyone has an idea why this might be, I would be very interested.
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Perhaps the attached document will help.
Attachments
Manually-specify-xCONNECT-link-network-routing_A.pdf
(233.66 KiB) Downloaded 367 times
Manually-specify-xCONNECT-link-network-routing_A.pdf
(233.66 KiB) Downloaded 367 times
Bambus
Member++
Posts: 27
Joined: Tue Feb 28, 2017 12:52 pm

Post by Bambus »

Hi mon2,

Thank you, but I already know that document. I still can't see the cause for this behavior. Maybe it has something to do with some faulty routing that was not detected by the compiler.
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Could be a toolchain quirk...


Image


Image

reference:
https://www.xmos.com/support/tools/docu ... nent=14796
Post Reply