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.

Exporting values of C-code variable to an Excel readable file.

In my C-code I have an array of unsigned int.  When program execution is halted on a break-point (MSP430 target) it is possible to examine the values in the array by using the watch window.

Does CCS V4 support a means by which I could export a list of these values to a text file or some other file that could be read by Excel ?

Thank you

Roy

 

 

 

 

 

  • Not from the watch window. But you can export values in the memory window to a text file. So perhaps you can look up the address of the start of the array and then do a 'Save Memory' from the memory window to get the data you need to a text file.

    Thanks

    ki

  • Roy,

    You can expand the array in the Watch window, select individual elements or a range (using Ctrl-Left mouse button or Shitf-Left mouse button respectively), right-click and select Copy Selected Expressions (Ctrl-C also works). Then paste into the text editor. This saves each element and its value (not address, format, type, etc.)

    This will allow you to save the contents "as-is" to a text file.

    Hope this helps,

    Rafael