My question is how to export a variable value which I have seen in watch window? I need to append the values of that variable in Excel format, I'm using the TRACE32 software.
You can export variables to a CSV file as displayed in the Var.WATCH window with command Var.EXPORT
. Each variable will get its own line in the CSV. To ensure that only the data and not also the command Var.EXPORT gets part of the result use the command WinPOS ,,,,,0
before Var.EXPORT
.
E.g. to export the scalar variables x and y to a CSV file including the type information you can use the commands:
WinPOS ,,,,,0
Var.EXPORT myfile.csv %Hex %Type x y