Tool/software: Code Composer Studio
Hi! All
I am using Code Composer 7.2
What I would like to achieve is the following:
I create an array at compile time, it's address might change every time I modify the system, lets call this variable arraydata.
During system runtime I fill up the array with debug data, the size of this is stored in a variable, which we shall call datalen
Now I would like to create a Scripting Console command which can read out the data from this array to a file.
I do know I can use the command saveRaw
Syntax: saveRaw(page,address,filename,length,typeSize,byteSwap) Arguments: page - the memory page, use one of PAGE_X constant. address - the first address in the block. filename - specifies the name of the file that store the target data. length - the number of bytes to save. typeSize - specifies the type size of the data. byteSwap - force a byte swap of the data before writing to target memory.
For this I need 2 things:
- Get the address of the arraydata
- Get the size of data written into that array, which is stored in datalen
How would I do this automatically with one or more commands in the Scripting Console?