Storing data from xmos into pc files
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?
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.
- infiniteimprobability
- XCore Legend
- Posts: 1126
- Joined: Thu May 27, 2010 10:08 am
- Contact:
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");
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.