I've just dug a XK-1A/XTAG2 out of a drawer and am having a play around with it. So far so, good, but i'm having a silly issue with getting Xscope to work! So, to cut a long story short, is there a published XDE project anywhere that just sends somehthing simple up to the environment? Something basic like a counter for example.
I've attempted to follow the multitudenous instructions in the documentation area, but tbh, for a newby like me, it's all a bit confusing. So i have several questions:
1) I have "imported" XK-1A.n from the library repository, and updated the links section with:
Code: Select all
<Links>
<Link Encoding="2wire" Delays="4,4" Flags="XSCOPE">
  <LinkEndpoint NodeId="0" Link="X0LD"/>
  <LinkEndpoint RoutingId="0x8000" Chanend="1"></LinkEndpoint>
</Link>
 </Links>2)I have appended the Makefile with -fxscope (some documents suggest -lxscope, what is the difference?)
Code: Select all
XCC_FLAGS_Debug = -g -O0 -fxscope
XCC_FLAGS_Release = -g -O3 -fxscope3) My main looks like this
Code: Select all
#include <xs1.h>
#include <xscope.h>
#define FLASH_PERIOD 10000000
out port led = XS1_PORT_4F;
void xscope_user_init(void) {
  xscope_register(1,
    XSCOPE_CONTINUOUS, "testvalue",  XSCOPE_INT, "cnt"
  );
}
int main() {
  timer tmr;
  int t,test;
  tmr :> t;
  while (1) {
    led <: 0x3;
    t += FLASH_PERIOD;
    tmr when timerafter(t) :> void;
    led <: 0x0;
    test+=test;
    xscope_probe_data_pred(0, test);
    t += FLASH_PERIOD;
    tmr when timerafter(t) :> void;
  }
 }
Code: Select all
XK-1A.xn:43 Error: XN11156 A normal Link node may not contain a sod endpoint.

