10.4 flash programming failure with xtag-2

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
boeserbaer
Active Member
Posts: 51
Joined: Fri Jan 29, 2010 4:36 pm

10.4 flash programming failure with xtag-2

Post by boeserbaer »

Anyone having any luck using 10.4 to program their flash? 9.9.2 works fine. I am bringing up a new board, and it wouldn't program the flash. Tried programming the flash on my XK-1 same problem. Ok now for really weird, I went back to 10.4 and attempted to program the flash and it works.

What is different? I suspect that it is because I created my project in 9.9.2, then cleaned and rebuilt in 10.4. Failure on both XK-1 and custom boards was after creating both projects in 10.4.

Hopefully it will keep working.

For reference my working xn file:

<?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>XK-1 Development Board</Name>

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

<Nodes>
<Node Id="0" Type="XS1-L1A" Oscillator="20MHz" SystemFrequency="400MHz">
<Boot>
<Source Location="SPI:bootFlash"/>
</Boot>
<Core Number="0" Reference="stdcore[0]">
<Port Location="XS1_PORT_1I" Name="PORT_UART_RX"/>
<Port Location="XS1_PORT_1J" Name="PORT_UART_TX"></Port>

<Port Location="XS1_PORT_4E" Name="PORT_COMM_SETTINGS"/>
<Port Location="XS1_PORT_8D" Name="PORT_DISPLAY_DATA"/>

<Port Location="XS1_PORT_4F" Name="PORT_DISPLAY_CONTROL"/>
<Port Location="XS1_PORT_1B" Name="PORT_SPI_SS"></Port>
<Port Location="XS1_PORT_1C" Name="PORT_SPI_CLK"/>
<Port Location="XS1_PORT_1D" Name="PORT_SPI_MOSI"/>

<Port Location="XS1_PORT_1A" Name="PORT_SPI_MISO"></Port>
<Port Location="XS1_PORT_4A" Name="PORT_SPI1_SS"></Port>
<Port Location="XS1_PORT_1E" Name="PORT_SPI1_CLK"></Port>
<Port Location="XS1_PORT_1F" Name="PORT_SPI1_MISO"></Port>
<Port Location="XS1_PORT_1G" Name="PORT_SPI1_MOSI"></Port>
<Port Location="XS1_PORT_32A" Name="PORT_GP_INPUTS"></Port>
</Core>
</Node>
</Nodes>

<Packages>
<Package id="0" Type="XS1-L1A-TQ128">
<Component NodeId="0" InPackage="0"/>
</Package>
</Packages>

<Links>
</Links>

<ExternalDevices>
<Device NodeId="0" Core="0" Class="SPIFlash" Name="bootFlash" Type="AT25DF041A">
<Attribute Name="PORT_SPI_MISO" Value="PORT_SPI_MISO"/>
<Attribute Name="PORT_SPI_SS" Value="PORT_SPI_SS"/>
<Attribute Name="PORT_SPI_CLK" Value="PORT_SPI_CLK"/>
<Attribute Name="PORT_SPI_MOSI" Value="PORT_SPI_MOSI"/>
</Device>
</ExternalDevices>

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

</Network>


User avatar
Jerry
Member++
Posts: 30
Joined: Sat Dec 12, 2009 7:14 pm
Location: Silicon Valley

Post by Jerry »

I have successfully programmed the flash on my SparkFun board using 10.4.