Hello,
I am using CCS 3.1 with TMS320C6713 processor and XDS510 USB emulator. I want to perform profiling of certain portion of source code and figure out cycle counts being consumed in that portion of the source code. For this I am performing following steps
1) Perform profile setup
2) Set up profile viewer
3) Load the program
4) Enable profiling by selecting clock symbol
5) Select the ranges tab in profiling setup window.
6) Select the range of code, right click and select Profile -> Range
I observed that min and max cycle count options were not available in profiler viewer window. So, I went to 'Customs' tab in profile setup window and selected "Cycles'. To my surprise CCS got disconnected and I observed following error messages
A) Disconnection pop-up
Can't Set Breakpoint at 0x17f74:
Error 0x80000008/-1031
Fatal Error during: Break Point,
Device driver: Problem with the Emulation Controller.
It is recommended to RESET EMULATOR. This will disconnect each
target from the emulator. The targets should then be power cycled
or hard reset followed by an emureset and reconnect to each target.
Sequence ID: 7
Error Code: -1031
Error Class: 0x80000008
B) Message Window of CCS
Trouble Writing Register: Error 0x80000004/-1031 Fatal Error during: Register, Device driver: Problem with the Emulation Controller. It is recommended to RESET EMULATOR. This will disconnect each target from the emulator. The targets should then be power cycled or hard reset followed by an emureset and reconnect to each target. Sequence ID: 6 Error Code: -1031 Error Class: 0x80000004
Can't Set Breakpoint at 0x17f74: Error 0x80000008/-1031 Fatal Error during: Break Point, Device driver: Problem with the Emulation Controller. It is recommended to RESET EMULATOR. This will disconnect each target from the emulator. The targets should then be power cycled or hard reset followed by an emureset and reconnect to each target. Sequence ID: 7 Error Code: -1031 Error Class: 0x80000008
Failed to remove the debug state from the target before disconnecting. There may still be breakpoint opcodes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging.
I tried performing profiling multiple times and failed. I am not sure what's happening. Any insight regarding the same is appreciated.
Please also let me know any literature / guide (step by step) for profiling.