Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

[FAQ] How to Trick the CCS debugger into providing a blocked TI-RTOS (SYS/BIOS) task call stack on Cortex-M devices

$
0
0

Beginning with SYS/BIOS release 6.35.02.45, the Task module provides a non-invasive per task CallStack ROV view.

The instructions below are for older versions of SYS/BIOS that do not support these built in ROV views.

After connecting to the Cortex-M core:

  1. Using the disassembler window, find the address of this symbol: ti_sysbios_knl_Task_swapReturn
  2. Put that address + 4 into the PC register.
  3. In the Task ROV 'Raw' view, find the 'context' field of the task Instance State you're interested in.
  4. Place the value of 'context' into both the MSP and PSP registers.
  5. Single step ONE instruction (using "Assembly Step Into").

The debugger window should now show you a rough approximation of the task's call stack.

The program is NOT continue-able at this point because the register context at the point of halting the CPU is lost.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>