Centrance and thesycon drivers problem

Technical questions regarding the XTC tools and programming with XMOS.
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Centrance and thesycon drivers problem

Post by gana »

How can i use Centrance and thesycon drivers together do not lock my thread because i have question after you replay.. and when i use my existing thread you guys do not answer. sorry
User avatar
Ross
Verified
XCore Legend
Posts: 1195
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

I have already answered this on your other thread
Ross wrote: No, you cant have two drivers installed for the same device.
It really makes no sense to have two drivers installed for the same device, pick one!
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

i am trying to test the board, i have only LED illuminate project but i have following problem as well

xrun: Valid object file not specified

what is wrong with it
User avatar
Ross
Verified
XCore Legend
Posts: 1195
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

What is the full command line that you are running please?
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

Command line you mean whole codes?
when i run below code LED-s just turn off and nothing happen

i used below codes and command:

in command prompt xflash or bulid and run from xmos tools.

XC file:

Code: Select all

#include <xs1.h>

out port bled = XS1_PORT_4C;

int main () {
  bled <: 0xf0;
  while (1)
;
  return 0;
}
XN file:

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>Device</Type>
  <Name>XS1-L02A-QF124-C5 Device</Name>

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

  <Packages>
    <Package ID="0" Type="XS1-L2A-QF124">
      <Nodes>
        <Node Id="0" InPackageId="0" Type="XS1-L1A" SystemFrequency="500MHz">
          <Core Number="0" Reference="stdcore[0]"/>
        </Node>
        <Node Id="1" InPackageId="1" Type="XS1-L1A" SystemFrequency="500MHz">
          <Core Number="0" Reference="stdcore[1]"/>
        </Node>
      </Nodes>
    </Package>
  </Packages>

  <Links>
  
    <Link Encoding="5wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="XLG"/>
      <LinkEndpoint NodeId="1" Link="XLF"/>
    </Link>
    <Link Encoding="5wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="XLH"/>
      <LinkEndpoint NodeId="1" Link="XLE"/>
    </Link>
    <Link Encoding="5wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="XLE"/>
      <LinkEndpoint NodeId="1" Link="XLH"/>
    </Link>
    <Link Encoding="5wire" Delays="0,1">
      <LinkEndpoint NodeId="0" Link="XLF"/>
      <LinkEndpoint NodeId="1" Link="XLG"/>
    </Link>
  </Links>

  <JTAGChain>
     <JTAGDevice NodeId="0"/>
     <JTAGDevice NodeId="1"/>
  </JTAGChain>
 
</Network>
main code is written on XC-1A from tutorial but
my board is XS1-L2 MC AUDIO BOARD (XS1-L2A-QF124 C5)
so are they match each other? i never seen led code for my board from xmos..
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

help another question that i can not follow user guide and tutorials because it is not clear to me, i am begginer i just follow but have always error.
i have following code from tutorial but i have following error:

#include <xs1.h>
#include <xscope.h>
void wait(int delay){
timer t;
int i;
t :> i;
t when timerafter(i + delay) :> i;
}
unsigned int current_state = 1;
void change_state(unsigned int new_state) {
current_state = new_state;
xscope_probe_data(0, current_state);
switch (new_state) {
case 1:
wait (10000);
break;
case 2:
wait (40000);
break;

case 3:
wait (70000);
break;
case 4:
wait (100000);
break;
case 5:
wait (20000);
break;
default:
break;
}
}
int main (void) {
xscope_register(1, XSCOPE_STATEMACHINE , "State Transitions",
XSCOPE_UINT , "State");
for (int i = 0; i < 5; i++) {
change_state (2);
change_state (3);
change_state (4);
change_state (3);
change_state (5);
change_state (1);
change_state (3);
change_state (2);
change_state (1);
change_state (4);
}
return 0;
}


error:


**** Build of configuration Debug for project scop ****

xmake CONFIG=Debug all
Creating dependencies for scop.xc
Compiling scop.xc
"Updating eclipse config"
No modules used.
Creating scop_Debug.xe
../src/scop.xc: Error: L00067 Undefined reference to 'xscope_probe_data'
../src/scop.xc: Error: L00067 Undefined reference to 'xscope_register'
xmake[1]: *** [bin/Debug/scop_Debug.xe] Error 1
xmake: *** [bin/Debug/scop_Debug.xe] Error 2


where should i define? there is no defining tutorial in this tutorial. i do not know how to and where to define because everything of this board is new to me.
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

same problem with tutorial i can not follow below example from tutorial because i have following error:

#include <xscope.h>

port micL;
port micR;

void xscope_user_init(void) {
xscope_register(2,
XSCOPE_CONTINUOUS, "Microphone Left", XSCOPE_UINT, "mV",
XSCOPE_CONTINUOUS, "Microphone Right", XSCOPE_UINT, "mV"
);
}

int main() {
while (1) {
int sample;
micL :> sample;
xscope_probe_data_pred(0, sample);
micR :> sample;
xscope_probe_data_pred(1, sample);
}
}


error:

**** Build of configuration Debug for project scop ****

xmake CONFIG=Debug all
Creating dependencies for scop.xc
Compiling scop.xc
../src/scop.xc:3: error: port `micL' is uninitialized
../src/scop.xc:4: error: port `micR' is uninitialized
xmake[1]: *** [.build_Debug/src/scop.xc.o] Error 1
xmake: *** [bin/Debug/scop_Debug.xe] Error 2

something is miss in tutorial or i did wrong?

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>Device</Type>
<Name>XS1-L02A-QF124-C5 Device</Name>

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

<Packages>
<Package ID="0" Type="XS1-L2A-QF124">
<Nodes>
<Node Id="0" InPackageId="0" Type="XS1-L1A" SystemFrequency="500MHz">
<Core Number="0" Reference="stdcore[0]"/>
</Node>
<Node Id="1" InPackageId="1" Type="XS1-L1A" SystemFrequency="500MHz">
<Core Number="0" Reference="stdcore[1]">
<Port Location="XS1_PORT_8B" Name="PORT_LEDS"/>
</Core>
</Node>
</Nodes>
</Package>
</Packages>

<Links>
<Link Encoding="2wire" Delays="4,4" Flags="XSCOPE">
<LinkEndpoint NodeId="0" Link="X0LD"/>
<LinkEndpoint RoutingId="0x8000" Chanend="1"/>
</Link>
<Link Encoding="5wire" Delays="0,1">
<LinkEndpoint NodeId="0" Link="XLG"/>
<LinkEndpoint NodeId="1" Link="XLF"/>
</Link>
<Link Encoding="5wire" Delays="0,1">
<LinkEndpoint NodeId="0" Link="XLH"/>
<LinkEndpoint NodeId="1" Link="XLE"/>
</Link>
<Link Encoding="5wire" Delays="0,1">
<LinkEndpoint NodeId="0" Link="XLE"/>
<LinkEndpoint NodeId="1" Link="XLH"/>
</Link>
<Link Encoding="5wire" Delays="0,1">
<LinkEndpoint NodeId="0" Link="XLF"/>
<LinkEndpoint NodeId="1" Link="XLG"/>
</Link>
</Links>

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

</Network>
User avatar
Ross
Verified
XCore Legend
Posts: 1195
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Addressing your first question...

The LEDs on that board are connected to Tile 1, you are accessing the port on Tile 0.

Please see port map or hardware reference manual for this board here:

http://www.xmos.com/resources/xkits?cat ... nce+Design

Regarding port declarations, this is fully covered in tutorials, here for example: http://www.xmos.com/node/14527?version=latest

Suggest getting your LED code working before moving to anything more complicated such as xscope.
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

Post by gana »

ok i am leaving this problems because it takes much time my main purpose is analyze input signal from sound source with 4 microphone. Where should i start?
any advice will appreciate..