Multitask Processor Debugging via Emulator Feedback

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Classic debugging methods for multitask programs do not allow interruption of a debugging task by a higher-priority task, and fail to detect conflicts in resource access between tasks, making it difficult to debug multitask programs effectively.

Innovation Solution

A method and device that enable a task in debugging mode to be interrupted by a priority task, with a simplified test interface linking a processing unit to an external emulator, allowing the processor to activate debugging mode and send activation messages with context information, and reject instructions until acknowledgement is received, ensuring accurate debugging and conflict detection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a task in debugging mode is interrupted by a higher-priority task, then conflict detection between tasks is enabled, but the debugging process becomes more complex

Engineering Contradiction:
Improveconflict detection capabilityVSAvoiddebugging process complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent implements feedback by having the processor send activation messages to the external emulator when debugging mode is activated, and the emulator sends back acknowledgement messages. This feedback mechanism allows the system to track the state of debugging across task interruptions and context switches, enabling conflict detection while maintaining debugging integrity despite the increased complexity of multitask interruption handling.

Inventive Principle:
Principle #23Feedback

2Loss of information

If the processor sends activation messages and receives acknowledgements, then context information is maintained accurately, but communication overhead increases

Engineering Contradiction:
Improvecontext information accuracyVSAvoidcommunication overhead
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The patent applies preliminary action by having the processor send the activation message containing context information (such as program counter value and task identifier) before the external emulator needs to acknowledge it. This ensures that context information is transmitted in advance, maintaining accuracy while allowing the acknowledgement process to be streamlined and minimizing the time loss associated with communication overhead.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS7685470B2Method and device for debugging a program executed by a multitask processor
Publication Date: 2010.03.23 STMICROELECTRONICS FRANCE
  • US7685470B2 patent drawing
  • US7685470B2 patent drawing
  • US7685470B2 patent drawing

AI summary

A method for debugging a multitask program executed by a processor includes interrupting the processor during the execution of a task of the program, and activating a debugging mode of the processor, wherein the instructions executed by the processor are supplied by an external emulator. The method comprises steps during which: the processor sends an activation message to the external emulator every time the debugging mode is activated, and upon receiving the activation message, the external emulator sends an acknowledgement message to the processor containing at least one portion of the activation message received.