I use 2 X1-L1A, node x1 is boot from xmoslink.
and test code is 9 thread. But I get a error message.
what wrong?
------------ error message
Constraint check for "stdcore[0]" (node "x0", core 0):
Stack available: 0x0000fb40, used: 0x000000d0 . OKAY
Threads available: 8, used: 9 . FAILED
Timers available: 10, used: 0 . OKAY
Chanends available: 32, used: 0 . OKAY
Error: Constraints check FAILED for node 0, core 0.
xmake: *** [a100__learn_Debug.xe] Error 1
------------------------ xc code ---------------
Code: Select all
#include <xs1.h>
#include <platform.h>
void test0(void)
{
while (1)
;
}
void test1(void)
{
while (1)
;
}
void test2(void)
{
while (1)
;
}
void test3(void)
{
while (1)
;
}
void test4(void)
{
while (1)
;
}
void test5(void)
{
while (1)
;
}
void test6(void)
{
while (1)
;
}
void test7(void)
{
while (1)
;
}
void test8(void)
{
while (1)
;
}
int main(void)
{
while (1)
{
par
{
test0();
test1();
test2();
test3();
test4();
test5();
test6();
test7();
test8();
}
}
return(1);
}
<
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">
<Declarations>
<Declaration>core stdcore[2]</Declaration>
</Declarations>
<Packages><!--The 1st Core, Master, JTAG first in-->
<!--The 2nd Core, Slave, Jtag out-->
<Package Id="P0" Type="XS1-L1A-LQ64">
<Nodes>
<Node Id="x0" InPackageId="0" Oscillator="20MHz"
SystemFrequency="400MHz" Type="XS1-L1A">
<Core Number="0" Reference="stdcore[0]">
<Port></Port>
</Core>
<Boot>
<Source Location="SPI:bootFlash"></Source>
<Bootee NodeId="x1" Core="0"></Bootee></Boot>
</Node>
</Nodes>
</Package>
<Package Id="P1" Type="XS1-L1A-LQ64">
<Nodes>
<Node Id="x1" InPackageId="0" Oscillator="20MHZ"
SystemFrequency="400MHZ" Type="XS1-L1A">
<Core Number="0" Reference="stdcore[1]">
<Port></Port>
</Core>
<Boot>
<Source Location="XMOSLINK"></Source>
</Boot>
</Node>
</Nodes>
</Package>
</Packages>
<Links>
<Link Encoding="2wire" Delays="4,4"><!--If see the LinkEndPoint as pins, the configure pinout.-->
<LinkEndPoint NodeId="x0" Link="X0LB"></LinkEndPoint>
<LinkEndPoint NodeId="x1" Link="X0LB"></LinkEndPoint>
</Link>
</Links>
<ExternalDevices>
<Device Name="bootFlash" NodeId="x0" Core="0" Class="SPIFlash" Type="AT25FS010"><!--It seems one attribute is one pin. There are 4 pins.-->
<Attribute Name="PORT_SPI_MISO" Value="PORT_SPI_MISO"></Attribute>
<Attribute Name="PORT_SPI_SS" Value="PORT_SPI_SS"></Attribute>
<Attribute Name="PORT_SPI_CLK" Value="PORT_SPI_CLK"></Attribute>
<Attribute Name="PORT_SPI_MOSI" Value="PORT_SPI_MOSI"></Attribute>
</Device>
</ExternalDevices>
<JTAGChain><!--according to sequence.-->
<JTAGDevice NodeId="x0" Position="0"></JTAGDevice>
<JTAGDevice NodeId="x1" Position="1"></JTAGDevice>
</JTAGChain>
</Network>