This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Outputting data from the LogicPD EVM board into a file

I'm trying to get a large array of data from the LogicPD EVM (c6748) board output into a file.  One way to do that is by inserting a printf() function into the DSP code.  This will print the data onto the console screen, where I can select/copy/paste it into an Excel spreadsheet file, for example.  This method works (I can testify). However, it takes about one-second per data-point. So, a large array of data can easily take hours to upload this way. 

I'm looking for a more practical way of uploading the data (from the EVM board up through CCSv4) and outputting the data directly into a file -- fast.  I sense there is an easy way to do this. 

Thanks ahead of time for your recommendations!

 

  • Walter,

    Have you thought about using fprintf() and printing directly to a file. If you still want to import to excel, you can just ouput your data in a .csv format.

    Regards,

    Dan

  • Using the fprintf() function is a great idea.  In principle it should work. 

    However, when I try it (with my EVM board) it crashes the EVM board -- somewhere during the fprintf() function or its return.  I don't know why.  I got the printf() function to work with it, but not yet the fprintf() function.  I don't see why there should be a difference.

  • Maybe you need to increase the size of your stack/heap?

  • Tim,


    That was my first thought also.  I'm not incredibly familiar with what goes on behind the scenes with printf() and fprintf().  Perhaps with fprintf() some of the data is buffered requiring more memory usage.  I suspect though that it's stack memory that is getting overflowed.  I would expect the function to return an error if it tried to allocate memory and couldn't.  But with a stack overflow, it would just crash. 

     

    Walter, can you try to temporarily make your stack significantly bigger to see if it stops crashing?


    Regards,

    Dan