CPC G01R 31/3187 (2013.01) [G01R 31/318597 (2013.01); G06F 11/221 (2013.01); G06F 11/2289 (2013.01); G06F 11/3089 (2013.01)] | 2 Claims |
1. An on-chip debugging method, comprising the steps of:
determining a sampling type and a debugging trigger condition according to a configuration of an external debugger or a chip to be debugged;
starting a debugging operation, sampling and recording an internal signal of the chip of a specified type, and further identifying a running state of the chip;
monitoring each trigger condition in a debugging process, and executing corresponding adjustment and debugging after the trigger condition is met; and
modifying a running mode of the chip according to a debugging configuration of the external debugger or an internal CPU (Central Processing Unit) when a preset situation occurs in a chip running process;
wherein the preset situation comprises an error occurring in the chip running process; and
wherein the step of modifying the running mode of the chip comprises: pausing an operation of a chip functional module so as to keep the running state when an error occurs, and outputting, by an internal bus interface, a control signal for pausing the operation of a corresponding functional module;
wherein the trigger condition comprises a chip running state error;
wherein the adjustment and debugging comprises stopping sampling the chip running state information immediately or after waiting for preset time, and marking current sampled running state information as last running state information by a preset identifier when the chip running state information is written into an internal debugging memory.
|