i have downloaded example file. it was built ok but when i click run button scope shows me still DISCONNECTED in red color..(lines in realtime scope appeared and disappeared once like blinking) so no result i got...
before clicking run button KIT lighted LED 1,2 and PLL..but these three turned off after clicked the run button.
what is wrong any suggession??
code is here:
#include <xscope.h>
#include <platform.h>
void wait(int delay){
timer t;
int i;
t :> i;
t when timerafter(i + delay) :> i;
}
void output_data_1(unsigned int value) {
xscope_probe_data(0, value);
}
void output_data_2(unsigned int value) {
xscope_probe_data(1, value);
}
void core_0_func(chanend sync) {
xscope_register(2,
XSCOPE_CONTINUOUS, "Continuous Value 1", XSCOPE_UINT, "Value",
XSCOPE_CONTINUOUS, "Continuous Value 2", XSCOPE_UINT, "Value");
sync <: 1;
for (int i = 0; i < 100; i++) {
wait(10000);
output_data_1(i*i);
}
}
void core_1_func(chanend sync) {
unsigned tmp;
sync :> tmp;
for (int i = 0; i < 100; i++) {
wait(10000);
output_data_2(i*i*2);
}
}
int main (void) {
chan sync;
par {
on stdcore[0]: core_0_func(sync);
on stdcore[1]: core_1_func(sync);
}
return 0;
}
and XN file here:
<?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>Device</Type>
<Name>XS1-L2A-QF124</Name>
<Declarations>
<Declaration>core stdcore[2]</Declaration>
</Declarations>
<Nodes>
<Node Id="0" Type="XS1-L1A" oscillator="13Mhz" systemfrequency="500MHz" referencefrequency="100MHz">
<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"/>
<Port Name="UIFM_INT_CLK_PORT" Location="XS1_PORT_1I"/>
<Port Name="UIFM_USB_CLK_PORT" Location="XS1_PORT_1H"/>
<Port Name="UIFM_REG_WRITE_PORT" Location="XS1_PORT_8C"/>
<Port Name="UIFM_REG_READ_PORT" Location="XS1_PORT_8D"/>
<Port Name="UIFM_FLAG_0_PORT" Location="XS1_PORT_1N"/>
<Port Name="UIFM_FLAG_1_PORT" Location="XS1_PORT_1O"/>
<Port Name="UIFM_FLAG_2_PORT" Location="XS1_PORT_1P"/>
<Port Name="UIFM_TX_DATA_PORT" Location="XS1_PORT_8A"/>
<Port Name="UIFM_RX_DATA_PORT" Location="XS1_PORT_8B"/>
<Port Name="UIFM_STP_SUS_PORT" Location="XS1_PORT_1E"/>
<Port Name="UIFM_LS_PORT" Location="XS1_PORT_4D"/>
</Core>
<Boot>
<Source Location="SPI:bootFlash"/>
<Bootee NodeId="1"/>
</Boot>
</Node>
<Node Id="1" Type="XS1-L1A" oscillator="13Mhz" systemfrequency="500MHz" referencefrequency="100MHz">
<Boot>
<Source Location="XMOSLINK"/>
</Boot>
<Core Number="0" Reference="stdcore[1]">
<Port Location="XS1_PORT_8B" Name="PORT_LEDS"/>
</Core>
</Node>
</Nodes>
<Links>
<Link Encoding="5wire" Delays="0,1">
<LinkEndpoint NodeId="0" Link="4"/>
<LinkEndpoint NodeId="1" Link="7"/>
</Link>
<Link Encoding="5wire" Delays="0,1">
<LinkEndpoint NodeId="0" Link="5"/>
<LinkEndpoint NodeId="1" Link="6"/>
</Link>
<Link Encoding="5wire" Delays="0,1">
<LinkEndpoint NodeId="0" Link="6"/>
<LinkEndpoint NodeId="1" Link="5"/>
</Link>
<Link Encoding="5wire" Delays="0,1">
<LinkEndpoint NodeId="0" Link="7"/>
<LinkEndpoint NodeId="1" Link="4"/>
</Link>
<!-- XSCOPE -->
<Link Encoding="2wire" Delays="4,4" Flags="SOD">
<LinkEndpoint NodeId="0" Link="2"/>
<LinkEndpoint RoutingId="0x8000" Chanend="1"/>
</Link>
</Links>
<Packages>
<Package ID="0" Type="XS1-L2A-QF124">
<Component NodeId="0" InPackage="0"/>
<Component NodeId="1" InPackage="1"/>
</Package>
</Packages>
<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"/>
<JTAGDevice NodeId="1"/>
</JTAGChain>
</Network>
XS1-l2 MC AUDIO Realtime scope problem
-
- Active Member
- Posts: 43
- Joined: Sat Sep 29, 2012 8:38 am