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.

C2000WARE: Save multiple memory locations at once

Part Number: C2000WARE


Hello ,

Is it possible to save multiple memory locations to a .dat file?

At the moment, I know it is possible to save them individually, but it is really cumbersome if I need to save multiple signals.

This is what i tried so far:

Right click on the variable you want to save from the expressions view , and click on the 'View memory' option

The memory browser window opens and in that I click on 'save memory' and enter the details:

Then I Repeat the same above steps for the second variable.

Anyway to save both the variables data at the same time, into a single file?

Thanks,

AK

  • Hello,

    Anyway to save both the variables data at the same time, into a single file?

    It is possible if you use the DSS API saveData from the Scripting Console with the "append" flag set to "true".

    However, note that the dat file has a header for the first line that has various information such as the start address, memory page, etc. This header is only written once and appending subsequent saveData calls will only append the actual memory data and not the other information typically in the header. The debugger relies on this information when attempting to load the data in this file to the specify memory locations. Hence this file cannot be used to correctly load to memory data that belongs in multiple memory ranges.

    Thanks

    ki

  • Thanks KI, this was what I needed.