Method for diagnosing no response of equipment in embedded system

A technology of embedded systems and diagnostic equipment, applied in the direction of response error generation, instruments, electrical digital data processing, etc.

Pending Publication Date: 2021-03-12
BEIJING SIMPLIGHT NANOELECTRONICS
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method for diagnosing unresponsive equipment in an embedded system, so as to solve the problem that the unresponsive equipment under this condition cannot be well handled in the above-mentioned background technology

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach

[0076] (1), save the running position of TASK

[0077] In the RTOS system, there is a concept of tasks, each task is responsible for its own affairs, and from a macro point of view, these tasks are all parallel, for the diagnosis of these tasks, the general method is to print the status of the current task, priority Level, stack and other information.

[0078] In this way, first add a PC member in the definition of the TCB task control block to save the last running position of TASK, and set the pc member as tsk_pc. After adding the tsk_pc member in the TCB, you need to set the actual pc pointer to Save to tsk_pc of TCB. Since the device uses the Cortex-M4 core, according to the characteristics of the M4 core, the first action in response to an exception is to automatically save the necessary parts of the scene: sequentially save xPSR, PC, LR, R12 and R3-R0 is automatically pushed into the appropriate stack by the hardware, and the PC value can be taken out before the context...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for diagnosing no response of equipment in an embedded system. The method specifically comprises the steps of storing and printing the running position of the TASK, triggering a diagnosis process by utilizing a BOOT pin, and diagnosing RTOS system scheduling. Through the combination of the above means and the combination of the assembly code and the C language code, the cause of the problem can be quickly positioned. For example, a certain TASK in the system uses a binary semaphore but does not release the binary semaphore, and the other TASKs continue to applyfor using the semaphore, because the TASKs cannot obtain the semaphore, the TASKs are suspended, and at the moment, the phenomenon that the system does not respond is shown. At the moment, developerscan diagnose by using the above several modes.

Description

technical field [0001] The invention belongs to the technical field of related embedded systems, and in particular relates to a method for diagnosing unresponsive equipment in an embedded system. Background technique [0002] In embedded systems, the use of RTOS is ubiquitous, and there are many ways to diagnose Trap. In embedded devices, part of the process is like this. The key interrupt trigger needs to be transferred to the corresponding TASK to handle the interrupt event. When the TASK receives such an event, there will be a corresponding LOG from the LOG assistant (Windows tool) output, and the SHELL command line function is added to the system to process and execute the commands input by the serial port (similar to the linux shell). SHELL runs as a TASK in the RTOS system, and its task priority is higher , and the system also adds the function of diagnosing traps, such as instruction fetch exceptions, bus errors, and memory errors, etc. will trigger the corresponding...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/07G06F11/36
CPCG06F11/0736G06F11/079G06F11/3636G06F11/366
Inventor 冯海强
Owner BEIJING SIMPLIGHT NANOELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products