Skip to content

Commit 1065467

Browse files
committed
config.xscope goes in local app to avoid waf issues
1 parent fa13f05 commit 1065467

File tree

6 files changed

+30
-1
lines changed

6 files changed

+30
-1
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
xscope_fileo
22
============
33

4+
0.2.0
5+
-----
6+
7+
* FIXED: setup.py now properly builds host app
8+
* CHANGED: config.xscope now needs to be copied to local firmware app
9+
410
0.1.0
511
-----
612

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ void xscope_close_all_files(void);
6363
The device side application requires a multi-tile main since it uses the xscope_host_data(xscope_chan); service
6464
to communicate with the host, which requires this. See examples for XC and C applications for how to do this.
6565
66+
You will also need a copy of `config.xscope` in your firmware directory. This
67+
enables xscope in the tools and sets up the xscope probes used by fileio for communicating with the host app. You
68+
can find a copy in `xscope_fileio/config.xscope xscope_fileio/config.xscope.txt` which you should rename to `config.xscope`.
6669
6770
Note currently missing from fileio api:
6871

examples/throughput_c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ DEPS := $(OBJS:.o=.d)
1414
CFLAGS := -c $(INC_FLAGS) $(TARGET_FLAG) -Os -g
1515
XCFLAGS := $(CFLAGS)
1616

17-
$(TARGET_EXEC): $(OBJS) ../../xscope_fileio/config.xscope
17+
$(TARGET_EXEC): $(OBJS) config.xscope
1818
# @echo "**HELLO LINKER**"
1919
$(XCC) $(TARGET_FLAG) -o $@ $^ -report
2020

examples/throughput_c/config.xscope

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<xSCOPEconfig ioMode="basic" enabled="true">
2+
<Probe name="open_file" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
3+
<Probe name="read_bytes" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
4+
<Probe name="write_setup" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
5+
<Probe name="write_bytes" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
6+
<Probe name="seek" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
7+
<Probe name="tell" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
8+
<Probe name="host_quit" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
9+
</xSCOPEconfig>
10+

xscope_fileio/config.xscope.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<xSCOPEconfig ioMode="basic" enabled="true">
2+
<Probe name="open_file" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
3+
<Probe name="read_bytes" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
4+
<Probe name="write_setup" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
5+
<Probe name="write_bytes" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
6+
<Probe name="seek" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
7+
<Probe name="tell" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
8+
<Probe name="host_quit" type="CONTINUOUS" datatype="UINT" units="Value" enabled="true"/>
9+
</xSCOPEconfig>
10+

0 commit comments

Comments
 (0)