rtos_task_context
Reads blocked or suspended FreeRTOS task registers, reconstructing R0-R12, SP, LR, PC, xPSR and resolving PC to a source line. Returns live registers if task is running.
Instructions
Read the saved register context of a blocked or suspended FreeRTOS task.
Parses the Cortex-M4F context switch stack frame stored in the task's TCB. Reconstructs R0-R12, SP, LR, PC, xPSR and resolves PC to a symbol/source line. Automatically detects whether FPU context was saved (EXC_RETURN bit 4). If the named task is currently running, returns live register values instead.
task_name: exact task name as passed to xTaskCreate (case-sensitive). task_name_len: configMAX_TASK_NAME_LEN in your FreeRTOS build (default 16). Requires ELF loaded and probe connected with target halted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_name | Yes | ||
| task_name_len | No |