XFLASH

Technical questions regarding the XTC tools and programming with XMOS.
omega7
Active Member
Posts: 32
Joined: Thu Jun 03, 2010 12:16 pm

XFLASH

Post by omega7 »

Hi all,

Right now I've some trouble with the xflash utility. I am using a XS1-L2 with a SST25VF... SPI eeprom.
And it says:

Error: failed to recognise attached flash device.
Error: F03034 Failed to fully run flash inquisitor.

Reading the "Tools User Guide" I read:

"You can use XFLASH to target flash devices not known to the tools by providing a
custom flash configuration file."

My question:

Which devices ARE known to the tools ?
Are there configuration files known for my SST eeprom?
Is there a document where I can read more about this subject?

Thanks in advance!
Martin


User avatar
bsmithyman
Experienced Member
Posts: 126
Joined: Fri Feb 12, 2010 10:31 pm

Post by bsmithyman »

Hi Martin,

There's a list of devices in the tools directory under target/include/flash.h, with examples of the syntax used later on in the file. That's probably a good place to look, and there's also a document on unsupported flash devices on the XMOS website.
omega7
Active Member
Posts: 32
Joined: Thu Jun 03, 2010 12:16 pm

Post by omega7 »

Hi Smithy
This is what is was looking for.... More and more I am convinced that XMOS has documented everything :| The problem often is, how to find it.
Thanks!
Martin
omega7
Active Member
Posts: 32
Joined: Thu Jun 03, 2010 12:16 pm

Post by omega7 »

Hi,

After adding a path def to my environment, and after filliing a proper device id, I got:

F03020 An unrecoverable error has occured; exiting.

So it seems that my eeprom is recognized but programming fails yet.

Any idea's?

Martin
omega7
Active Member
Posts: 32
Joined: Thu Jun 03, 2010 12:16 pm

Post by omega7 »

Problem has been solved:

I had to include: <Bootee NodeId="1" Core="0"/>

So the XN file look like this:

Code: Select all

  <Type>Board</Type>
  <Name>XS1-L2A-QF124</Name>

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

  <Nodes>
    <Node Id="0" Type="XS1-L1A" Oscillator="20MHz" SystemFrequency="400MHz" ReferenceFrequency="100MHz">
		<Boot>
		  <Source Location="SPI:bootFlash"/>
		  <Bootee NodeId="1" Core="0"/>
		</Boot>
		<Core Number="0" Reference="stdcore[0]">
			<Port Location="XS1_PORT_1A" Name="PORT_SPI_MISO"/>
			<Port Location="XS1_PORT_1B" Name="PORT_SPI_SS"/>
			<Port Location="XS1_PORT_1C" Name="PORT_SPI_CLK"/>
			<Port Location="XS1_PORT_1D" Name="PORT_SPI_MOSI"/>
Thanks for your help.
Martin