I didn't knew where else to post this question. It's so generic that i was very confused.
Since i am working with CC Debuggers so thought this forum might help.
My question: Is there any way to capture values of all hardware registers before the code hits a hardware break-point.
Let's say the value of registers i want is 500msec before my code execution hits the particular hardware break-point?
In CCS, breakpoints have the capability to save memory regions to files on the host PC (therefore most or all peripheral registers but not CPU registers). However, there is no way to know if a breakpoint set at a given place in your code is exactly 500ms before the next one (memory latencies, cache, interrupts can make the timespan vary greatly).
Another approach is to have either an interrupt tied to a hardware timer configured to run at every 500ms or use SYSBIOS and a periodic Idle function tied to the system clock. In this case, you will always have a 500ms "heartbeat" on your system where you can write code that inspects registers or transfer data to the host PC (via fopen/fwrite).
I don't see any additional approach to this particular scenario, but maybe someone else may reply with additional ideas.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.