Storing data from xmos into pc files
-
- Active Member
- Posts: 36
- Joined: Sat May 31, 2014 6:39 am
Storing data from xmos into pc files
I need to store the data coming in from xmos into some kind of file so I can do post-processing on the pc. Is there an easy or simple way to do this?
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
With xSCOPE you can save it to an XML file.
Try xrun --xscope --xscope-file yourfile.xml yourapp.xe
or find the equivalent in xTIME Composer.
Try xrun --xscope --xscope-file yourfile.xml yourapp.xe
or find the equivalent in xTIME Composer.
-
Verified
- XCore Legend
- Posts: 1156
- Joined: Thu May 27, 2010 10:08 am
xscope will be faster, or if you have enough local memory for buffering you could always write to a file to the host machine using stdio fopen..
Be aware that this uses system calls (over JTAG) so will likely break realtime stuff - hence the reason why you would need to buffer first.
Code: Select all
outfile = fopen("output.bin","wb");
-
- Active Member
- Posts: 36
- Joined: Sat May 31, 2014 6:39 am
I got it working. It turns out I had to disable the xscope initiators, even if I'm running on JTAG.
Storing it into .txt files takes way too long unfortunately. 200ms just to open and close a file, and I need an 8ms response time or less.
Storing it into .txt files takes way too long unfortunately. 200ms just to open and close a file, and I need an 8ms response time or less.