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.

write data by using GEL-files



Hello!

I use Code Composer Studio Version: 5.2. and I need to write data from SPI memory into an output file.

I tried using GEL_MemorySave, but this seems to overwrite all existing data every time executed. Is it possible to write data from spi-memory in a loop to get an output file with all these data? Or how to write variables into an output file without deleting previous entries?

Thank you for your help!

  • Hi!

    Would be also nice to just write values into file. I read SPI memory every cycle, that works. I´m also able to display those values, but all I miss is to save them all into a file by using a GEL-file.

  • Hi A.T.,

    There is an optional parameter that will allow you to append instead of overwrite:

    GEL_MemorySave(startAddress, page, length, "fileName"[,io_Format][,append][,bitsize][,swap])

    Note the optional "append" option. From the CCS Help:

    append: represents whether memory to be saved should overwrite the contents of the specified file (0) or append to the end of the file (any nonzero value).

    0

    Any nonzero value

    Overwrite the contents of the specified file

    Append to the end of the file

    Thanks

    ki

  • Great! Thank you very much for your help!