I am trying to run the following code (from github) to see the working of xscope. I am using an XC-1A development kit. My current project is to develop a digital tanpura en.wikipedia.org/wiki/Tambura. To observe the output sound patterns, I am using xscope.
Code: Select all
#include<xs1.h>
#include<xscope.h>
#include <platform.h>
void wait ( int delay ){
timer t ;
int i ;
t :> i;
t when timerafter ( i + delay ) :> i ;
}
unsigned int memory_used = 0;
void allocate_memory ( unsigned int size ) {
memory_used += size ;
xscope_probe_data (0 , memory_used );
}
int main ( void ) {
int i = 0;
xscope_register (1 , XSCOPE_DISCRETE , " Memory Allocated " ,
XSCOPE_UINT , " Bytes " );
for ( i = 1; i < 10; i ++) {
// Do something
wait (1000);
// Allocate memory
allocate_memory ( i *100);
}
return 0;
}
Code: Select all
TARGET = XC-1A
XCC_FLAGS = -O2 -lxscope
include ../xcommon/module_xcommon/build/Makefile.common
all: $(BIN_DIR)/$(APP_NAME).xe
@echo Build Complete
clean: clean_common
Code: Select all
(...)
<Links>
<Link Encoding="2wire" Delays="4,4" Flags="SOD">
<LinkEndpoint NodeId="0" Link="X0LA" />
<LinkEndpoint RoutingId="0x8000" Chanend="1" />
</Link>
</Links>
(...)
- /tmp/sod_JjJOIU:32: Error: A00048 Immediate out of range for instruction: 'mkmsk'. Value is 0. Allowed ranges are: 32..32, 1..8, 16..16, 24..24.
xmap: Error: Failed to assemble SOD support.
xmake: *** [test_xscope_Debug.xe] Error 1