XN SystemFrequency error

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Post Reply
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

XN SystemFrequency error

Post by gana »

hello
i have specified SystemFrequency in XN file but i still have following error..please advice me what is wrong?

C:\Users\gana\workspacetools\xmos_project\bin\Debug>xflash xmos_project_Debug.xe
-o image-file
C:\Users\gana\AppData\Local\Temp\pxn_3:11 Warning: XN11135 Attribute SystemFrequ
ency is ignored when Oscillator is not specified.
C:\Users\gana\AppData\Local\Temp\pxn_3:14 Warning: XN11135 Attribute SystemFrequ
ency is ignored when Oscillator is not specified.
xflash: Error: F03040 Platform definition (XN) does not specify a boot SPI flash
.
Error: F03074 Error extracting SPI port information.



My XN file is here:

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>Board</Type>
	<Name>XS1-L02A-QF124-C5 Board</Name>

	<Declarations>
		<Declaration>core stdcore[2]</Declaration>
	</Declarations>

	<Packages>
		<Package ID="0" Type="XS1-L2A-QF124">
			<Nodes>
				<Node Id="0" InPackageId="0" Type="XS1-L2A-QF124" Oscillator ="20MHz" SystemFrequency="410MHz" ReferenceFrequency="100MHz">
					<Core Number="0" Reference="stdcore[0]" >
					 
        <Port Location="XS0_PORT_8B" Name="PORT_LEDS"/>
      </Core>
				</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>
	</Links>

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

</Network>

And here my source code illuminate LED:

Code: Select all

#include <platform.h>
#define FLASH_PERIOD 20000000

out port x0ledB = XS1_PORT_8B;

int main(void) {
  timer tmr;
  unsigned ledOn = 0xf0;
  unsigned t;
  tmr :> t;
  while (1) {
    x0ledB <: ledOn;
    t += FLASH_PERIOD;
    tmr when timerafter(t) :> void;
    ledOn = !ledOn;
  }

  return 0;
}
Best regards


User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am
Contact:

Post by segher »

-- There are two nodes in an L2, not one;
-- the "Type" in your "Node" is wrong, should be "XS1-L1A";
-- You have a spurious space after "Oscillator", before the "=".
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

Kit named XS1-L2 so you mean

Node Id="0" InPackageId="0" Type="XS1-L1A"
Node Id="1" InPackageId="1 Type="XS1-L2A"

like this?
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm
Contact:

Post by Bianco »

gana wrote:Kit named XS1-L2 so you mean

Node Id="0" InPackageId="0" Type="XS1-L1A"
Node Id="1" InPackageId="1 Type="XS1-L2A"

like this?
nope, both should be XS1-L1A type.
An L2 consists of two separate L1 dies connected together in the package.

Also in the code in your first post you have only one node declared.
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

so should i type anything in another node? or can it be empty?
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm
Contact:

Post by Bianco »

Code: Select all

<Packages>
    <Package ID="0" Type="XS1-L2A-QF124">
      <Nodes>
        <Node Id="0" InPackageId="0" Type="XS1-L1A" SystemFrequency="400MHz">
          <Core Number="0" Reference="stdcore[0]"/>
        </Node>
        <Node Id="1" InPackageId="1" Type="XS1-L1A" SystemFrequency="400MHz">
          <Core Number="0" Reference="stdcore[1]"/>
        </Node>
      </Nodes>
    </Package>
  </Packages>
use this as an base and modify it as needed.
Don't remove nodes or change the types, it is not necessary
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

i have following error

xrun: Valid object file not specified

what is that mean? what i did not specified?
DemetriaConnell
New User
Posts: 2
Joined: Thu Oct 24, 2013 4:46 pm

Post by DemetriaConnell »

I find this hard to understand and would like to try this on but it still error on my end. Though, for your effort and kindness for sharing what you knew, I appreciate it much. - Aldo Disorbo
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Complete XN file from the 12.2 tools. I suggest using this as a base.

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-L16A-128-QF124-C8 Device</Name>

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

  <Packages>
    <Package ID="0" Type="XS1-LnA-128-QF124">
      <Nodes>
        <Node Id="0" InPackageId="0" Type="XS1-L8A-64" SystemFrequency="400MHz">
          <Tile Number="0" Reference="tile[0]"/>
        </Node>
        <Node Id="1" InPackageId="1" Type="XS1-L8A-64" SystemFrequency="400MHz">
          <Tile Number="0" Reference="tile[1]"/>
        </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>
  </Links>

  <JTAGChain>
     <JTAGDevice NodeId="0"/>
     <JTAGDevice NodeId="1"/>
  </JTAGChain>
 
</Network>
Post Reply