Hello All,
Is there are way to output the program counter, PC, to a text file as I step through the code? I am using CCS v3.3 and F2809 as the target.
As a part of the software verification process, I have to prove to an aviation company that all lines of code are being executed and there is no dead code.They have suggested that I put a break point in the code and step through it. As proof they want me to print the program counter, PC, value as I step through the code. I can use GEL scripts to do this, but I have to write two hotmenu function for every line of code. In the first hotmenu function, I can use GEL_SrcStepInto() to step the PC, and the second hotmenu function, I can use GEL_TextOut() to print the value of the PC. As you can see, this is very laborious process. The reason I cannot put both the GEL functions in the same hotmenu function is that GEL_SrcStepInto() is asynchronous, consequently GEL_TextOut() will not print the correct PC value, if they both reside in the same hotmenu function. Hence, the GEL_TextOut() has to be in another hotmenu function.
If anyone knows how to print out the PC as I step through the code, using GEL scripts or any other tool I would really appreciate the help.
Haroon I. Yunus