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.
Tool/software: Code Composer Studio
We have an application that may be running one of a multitude of programs on the DSP at any given time. These programs do not necessarily run from the same memory space during runtime. Ideally, we would like to be able to detect which program (if any) is currently running on the DSP via GEL. However, it is not sufficient to just read the non-volatile memory where the program was loaded from to determine which program has been loaded, as all programs will be stored there.
Does GEL have any functionality to support determining which program is currently running? (We are using CCS v3.3)
One note is that all the programs will have a globally-accessible variable indicating which program it is. However, despite this variable name being the same for all programs, I would assume that the location of the variable, and thus the corresponding symbol, would need to match the program. Is that correct?
Another idea is to catch an exception/error with GEL. Is that possible? For example, one could keep loading symbol tables and trying to access a symbol (like the program type variable) until it is successful. Though if all programs use the same symbol name, I guess GEL wouldn't return an error even though it might go to the wrong address?
Sorry if I'm asking a lot of questions. I'm just not sure how to go about this.
Thanks,
Alec
Hi Alec,
Alec Green said:Does GEL have any functionality to support determining which program is currently running? (We are using CCS v3.3)
One note is that all the programs will have a globally-accessible variable indicating which program it is. However, despite this variable name being the same for all programs, I would assume that the location of the variable, and thus the corresponding symbol, would need to match the program. Is that correct?
There is no simply GEL call for this. Though one thing that comes to mind is perhaps you can get the address of the symbol and then based on that address, you can determine the running program (assuming each program has a different run-time address for the variable)
Alec Green said:Another idea is to catch an exception/error with GEL. Is that possible?
No. GEL is quite limited in this way.
Hope this helps
ki