Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for detecting stack space allowance on real time

A technology of real-time detection and stack space, applied in the field of real-time detection of space margin, can solve problems such as real-time detection of stack space margin, and achieve the effect of avoiding ring breakage

Inactive Publication Date: 2015-06-03
中国航空工业集团公司航空动力控制系统研究所
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, most domestic engine control software does not perform real-time detection of stack space margin; this method is the first application in China

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for detecting stack space allowance on real time
  • Method for detecting stack space allowance on real time
  • Method for detecting stack space allowance on real time

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] This method is applied to engine control software, and the platform that this software runs is powerpc8270 processor, and the following example illustrates the specific implementation process of this method:

[0023] 1) In the link file of the control software, the space allocated for the stack is 32K bytes, the top position of the stack is 0x08208000, the bottom position of the stack is 0x08200000, the stack pointer is initialized to the top position of the stack, and the stack pointer access operation is a 4-byte operation, according to Step S1, initialize the stack space to 0x0E0E0E0E from the top of the stack to the bottom of the stack.

[0024] 2) According to step S2, configure the memory management mode as the block conversion mode (that is, BAT, realize BAT by setting the BAT register, there are 8 data BAT registers in total, and 8 data blocks can be set, and the size of each block is 128K-256M bytes ), initialize the DBAT2 register, that is, initialize a block ...

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 provides a method for detecting stack space allowance on real time, and aims at solving the technical problems that most of the existing engine control software in domestic completely have one stack space which is shared by all tasks or interrupting processing operations, and the stack space and other data areas share the internal memory, thus stack overflowing caused by any function process can even damage the resource of the whole system and leads to the breakdown of the whole system. The method can detect the use condition of the stack space and whether the stack overflows, and the sue condition of the stack can be reported to the application software on real time; if the application software finds that the use of the stack exceeds the specified limit, corresponding measures can be carried out, and thus, the strength of the software can be improved.

Description

technical field [0001] The invention is used for real-time detection of stack space margin during the running process of the engine control software or during the test process of the control software. Background technique [0002] In most of the existing domestic engine control software, the entire software has only one stack space, and all tasks or interrupt processing operations share this stack space, and the stack space and other data areas share memory, so that any function process will cause A stack overflow will even destroy the resources of the entire system, resulting in the collapse of the entire system. Moreover, the stack overflow has a hysteresis effect and extensive involvement. A process stack overflow will not immediately cause a system failure, but it will destroy the data in other data areas, and it will cause a system failure or system crash when the process of related data is run. . This also makes it difficult to locate the fault. [0003] Most foreig...

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/36
Inventor 谢娟胡豪东黄浩陈挺杨佳
Owner 中国航空工业集团公司航空动力控制系统研究所
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products