The XC-2_2board.xn file looks like this:
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>
<Declarations>
<Declaration>core stdcore[8]</Declaration>
</Declarations>
<Nodes>
<Node Id="0" Type="XS1-G4B-FB512">
<Core Number="0" Reference="stdcore[0]">
<Port Location="XS1_PORT_1A" Name="PORT_SPI_MISO_1"/>
<Port Location="XS1_PORT_1B" Name="PORT_SPI_SS_1"/>
<Port Location="XS1_PORT_1C" Name="PORT_SPI_CLK_1"/>
<Port Location="XS1_PORT_1D" Name="PORT_SPI_MOSI_1"/>
<Port Location="XS1_PORT_1E" Name="PORT_BUTTON_LED_0_1"/>
<Port Location="XS1_PORT_1F" Name="PORT_BUTTON_LED_1_1"/>
<Port Location="XS1_PORT_1G" Name="PORT_UART_RX_1"/>
<Port Location="XS1_PORT_1H" Name="PORT_UART_TX_1"/>
<Port Location="XS1_PORT_1I" Name="PORT_LED_0_0_1"/>
<Port Location="XS1_PORT_1J" Name="PORT_LED_1_0_1"/>
<Port Location="XS1_PORT_4C" Name="PORT_BUTTON_A_1"/>
<Port Location="XS1_PORT_4D" Name="PORT_BUTTON_B_1"/>
</Core>
<Core Number="1" Reference="stdcore[1]">
<Port Location="XS1_PORT_1I" Name="PORT_x1ledA"/>
<Port Location="XS1_PORT_1J" Name="PORT_x1ledB"/>
</Core>
<Core Number="2" Reference="stdcore[2]">
<Port Location="XS1_PORT_1A" Name="PORT_SDI07"/>
<Port Location="XS1_PORT_1K" Name="PORT_ETH_TXCLK_0"/>
<Port Location="XS1_PORT_1L" Name="PORT_ETH_TXEN_0"/>
<Port Location="XS1_PORT_1M" Name="PORT_ETH_RXCLK_0"/>
<Port Location="XS1_PORT_1N" Name="PORT_ETH_RXDV_0"/>
<Port Location="XS1_PORT_1O" Name="PORT_ETH_RXER_0"/>
<Port Location="XS1_PORT_1P" Name="PORT_ETH_MDC_0"/>
<Port Location="XS1_PORT_4E" Name="PORT_ETH_RXD_0"/>
<Port Location="XS1_PORT_4F" Name="PORT_ETH_TXD_0"/>
<Port Location="XS1_PORT_8D" Name="PORT_ETH_RST_N_MDIO_0"/>
<Port Location="XS1_PORT_1I" Name="PORT_x2ledA"/>
<Port Location="XS1_PORT_1J" Name="PORT_x2ledB"/>
</Core>
<Core Number="3" Reference="stdcore[3]">
<Port Location="XS1_PORT_1I" Name="PORT_x3ledA"/>
<Port Location="XS1_PORT_1J" Name="PORT_x3ledB"/>
</Core>
</Node>
<Node Id="1" Type="XS1-G4B-FB512">
<Core Number="0" Reference="stdcore[4]">
<Port Location="XS1_PORT_1A" Name="PORT_SPI_MISO_1"/>
<Port Location="XS1_PORT_1B" Name="PORT_SPI_SS_1"/>
<Port Location="XS1_PORT_1C" Name="PORT_SPI_CLK_1"/>
<Port Location="XS1_PORT_1D" Name="PORT_SPI_MOSI_1"/>
<Port Location="XS1_PORT_1E" Name="PORT_BUTTON_LED_0_1"/>
<Port Location="XS1_PORT_1F" Name="PORT_BUTTON_LED_1_1"/>
<Port Location="XS1_PORT_1G" Name="PORT_UART_RX_1"/>
<Port Location="XS1_PORT_1H" Name="PORT_UART_TX_1"/>
<Port Location="XS1_PORT_1I" Name="PORT_LED_0_0_1"/>
<Port Location="XS1_PORT_1J" Name="PORT_LED_1_0_1"/>
<Port Location="XS1_PORT_4C" Name="PORT_BUTTON_A_1"/>
<Port Location="XS1_PORT_4D" Name="PORT_BUTTON_B_1"/>
</Core>
<Core Number="1" Reference="stdcore[5]">
<Port Location="XS1_PORT_1I" Name="PORT_LED_0_1_1"/>
<Port Location="XS1_PORT_1J" Name="PORT_LED_1_1_1"/>
</Core>
<Core Number="2" Reference="stdcore[6]">
<Port Location="XS1_PORT_1I" Name="PORT_LED_0_2_1"/>
<Port Location="XS1_PORT_1J" Name="PORT_LED_1_2_1"/>
<Port Location="XS1_PORT_1K" Name="PORT_ETH_TXCLK_1"/>
<Port Location="XS1_PORT_1L" Name="PORT_ETH_TXEN_1"/>
<Port Location="XS1_PORT_1M" Name="PORT_ETH_RXCLK_1"/>
<Port Location="XS1_PORT_1N" Name="PORT_ETH_RXDV_1"/>
<Port Location="XS1_PORT_1O" Name="PORT_ETH_RXER_1"/>
<Port Location="XS1_PORT_1P" Name="PORT_ETH_MDC_1"/>
<Port Location="XS1_PORT_4E" Name="PORT_ETH_RXD_1"/>
<Port Location="XS1_PORT_4F" Name="PORT_ETH_TXD_1"/>
<Port Location="XS1_PORT_8D" Name="PORT_ETH_RST_N_MDIO_1"/>
</Core>
<Core Number="3" Reference="stdcore[7]">
<Port Location="XS1_PORT_1I" Name="PORT_LED_0_3_1"/>
<Port Location="XS1_PORT_1J" Name="PORT_LED_1_3_1"/>
</Core>
</Node>
</Nodes>
<Devices>
<Device NodeId="0" Core="0" Class="SPIFlash" Name="bootFlash_0" Type="AT25DF041A">
<Attribute Name="PORT_SPI_MISO" Value="PORT_SPI_MISO_0"/>
<Attribute Name="PORT_SPI_SS" Value="PORT_SPI_SS_0"/>
<Attribute Name="PORT_SPI_CLK" Value="PORT_SPI_CLK_0"/>
<Attribute Name="PORT_SPI_MOSI" Value="PORT_SPI_MOSI_0"/>
</Device>
<Device NodeId="1" Core="0" Class="SPIFlash" Name="bootFlash_1" Type="AT25DF041A">
<Attribute Name="PORT_SPI_MISO" Value="PORT_SPI_MISO_1"/>
<Attribute Name="PORT_SPI_SS" Value="PORT_SPI_SS_1"/>
<Attribute Name="PORT_SPI_CLK" Value="PORT_SPI_CLK_1"/>
<Attribute Name="PORT_SPI_MOSI" Value="PORT_SPI_MOSI_1"/>
</Device>
</Devices>
<Links>
<Link Encoding="2wire" Delays="4,4">
<LinkEndpoint NodeId="0" Link="X0LC"/>
<LinkEndpoint NodeId="1" Link="X0LD"/>
</Link>
</Links>
<JTAGChain>
<JTAGDevice NodeId="0"/>
<JTAGDevice NodeId="1"/>
</JTAGChain>
</Network>
xcc -o "SPI.xe" ./src/main.o ./src/Modules/Core00.o ./src/Modules/Core02.o ./src/Modules/Core03.o ./src/Modules/FM02.o ./src/Modules/M01.o ./src/Modules/M02.o ./src/Modules/M04.o ../XC-2_2board.xn
./src/main.o: Error: Specified network is not a recognised topology.
Do you have an idea, what's wrong with that?