I have board based on xCORE-200 Multichannel Audio Platform.
My xn-file is xk-audio-216-mc.xn with some changes:
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" ManuallySpecifiedRouting="true">
<Declarations>
<Declaration>tileref tile[2]</Declaration>
<Declaration>tileref usb_tile</Declaration>
</Declarations>
<Packages>
<Package id="0" Type="XS2-UnA-512-TQ128">
<Nodes>
<Node Id="0" InPackageId="0" Type="XS2-L16A-512" Oscillator="24MHz" SystemFrequency="500MHz" referencefrequency="100MHz">
<Boot>
<Source Location="SPI:bootFlash"/>
</Boot>
<Tile Number="0" Reference="tile[0]">
<!-- My ports -->
</Tile>
<Tile Number="1" Reference="tile[1]">
<!-- My ports -->
</Tile>
</Node>
<Node Id="1" InPackageId="1" Type="periph:XS1-SU" Reference="usb_tile" Oscillator="24MHz">
</Node>
</Nodes>
<Links>
<Link Encoding="5wire">
<LinkEndpoint NodeId="0" Link="8" Delays="52clk,52clk"/>
<LinkEndpoint NodeId="1" Link="XL0" Delays="1clk,1clk"/>
</Link>
</Links>
</Package>
</Packages>
<Nodes>
<Node Id="2" Type="device:" RoutingId="0x8000">
<Service Id="0" Proto="xscope_host_data(chanend c);">
<Chanend Identifier="c" end="3"/>
</Service>
</Node>
</Nodes>
<Links>
<Link Encoding="2wire" Delays="4,4" Flags="XSCOPE">
<LinkEndpoint NodeId="0" Link="XL0"/>
<LinkEndpoint NodeId="2" RoutingId="0x8000" Chanend="1"/>
</Link>
</Links>
<ExternalDevices>
<Device NodeId="0" Tile="0" Class="SQIFlash" Name="bootFlash" Type="IS25LQ080B">
<Attribute Name="PORT_SQI_CS" Value="PORT_SQI_CS"/>
<Attribute Name="PORT_SQI_SCLK" Value="PORT_SQI_SCLK"/>
<Attribute Name="PORT_SQI_SIO" Value="PORT_SQI_SIO"/>
</Device>
</ExternalDevices>
<JTAGChain>
<JTAGDevice NodeId="0"/>
<JTAGDevice NodeId="1"/>
</JTAGChain>
</Network>
XSYS p6 - 33 Ohm - X0D43
XSYS p10 - 33 Ohm - X0D42
XSYS p14 -- X0D41
XSYS p18 -- X0D40
There is 'config.xscope' file in my project
Code: Select all
<xSCOPEconfig ioMode="basic" enabled="true">
<Probe name="Value" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
</xSCOPEconfig>
main.xc
---------
Code: Select all
#include <xscope.h>
#define NUM_SAMPLES 64
unsigned int sine[NUM_SAMPLES] = {
4000,4392,4780,5161,5531,5886,6222,6538,6828,7092,7326,7528,7696,7828,7923,7981,
8000,7981,7923,7828,7696,7528,7326,7092,6828,6538,6222,5886,5531,5161,4780,4392,
4000,3608,3220,2839,2469,2114,1778,1462,1172,908,674,472,304,172,77,19,
0,19,77,172,304,472,674,908,1172,1462,1778,2114,2469,2839,3220,3608,
};
int main() {
while (1) {
for (unsigned int i = 0; i < NUM_SAMPLES; ++i) {
xscope_int(VALUE, sine[i]);
}
}
return 0;
}
I run program from xTc 14.2.1 IDE.
"Main" tab
Run on: hardware
Target I/O option: xSCOPE
"XScope" tab
Mode: Real-Time mode
After I press 'Run' Realtime xSCOPE window appears with mark 'Disconnected'.
The same result is when I run with target I/O option: JTAG.
In Simulator Realtime xSCOPE works correctly.
What I do wrong? There are doubts about the correctness of xn-file also.