A method and apparatus for nonvolatile storage area access processing at startup of an aviation software
By generating power-on flags on FPGAs and DSPs, and combining RAM and Recall mechanisms, the problem of non-volatile data read/write in aviation software under different operating conditions is solved, achieving efficient data recovery and initialization, and adapting to complex aviation system startup methods.
Patent Information
- Application Number
- CN202211416963.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-11-11
AI Technical Summary
Existing technologies fail to effectively provide customized non-volatile data read/write strategies based on different startup conditions, and cannot meet the data recovery needs of aviation software under power-on, reset, and non-reset conditions.
By generating power-on flags on FPGA and DSP, the system reads aircraft operating status information based on startup conditions, stores and updates data in RAM, and utilizes a Recall mechanism to achieve customized data reading and writing, avoiding direct interaction with FLASH and adapting to data recovery requirements under different operating conditions.
It enables efficient reading and writing of non-volatile data under various startup conditions, meets the complex startup requirements of aviation systems, and improves the adaptability and efficiency of data recovery.
Smart Images

Figure CN115658389B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of embedded software storage area management technology, specifically relating to a method and apparatus for processing non-volatile storage area access during the startup of aviation software. Background Technology
[0002] Aviation software is typically airborne embedded software. During the use and verification phases, airborne embedded software frequently experiences restarts. However, startup includes various operating conditions such as power-on, reset, and non-reset, each with different data recovery requirements. Driven by new demands, data storage systems tailored to specific application conditions are becoming the new consensus in the field of airborne embedded software data storage. Different system startup conditions place more stringent application requirements on the NVM storage of corresponding flight control data.
[0003] The existing storage system is mainly constructed using RAM storage media in the FPGA and DSP. The DSP interacts with the RAM and accesses system state data through the RAM in the non-volatile memory area. Upon each reboot, the onboard embedded software re-executes the original program to initialize the system startup state according to preset values.
[0004] However, aviation software faces different operating conditions such as power-on, reset, and non-reset, and these specific conditions have different requirements for reading non-volatile data. Current technology lacks a complete and efficient solution for providing customized non-volatile data read / write strategies based on the specific requirements of non-volatile storage under these conditions, thereby adapting to the complex startup needs of aviation systems. Summary of the Invention
[0005] This invention provides a method and apparatus for accessing non-volatile memory areas during the startup of aviation software, which addresses the shortcomings of existing data reading strategies under different startup conditions.
[0006] This invention provides a method for accessing non-volatile memory areas during the startup of aviation software, which runs on an FPGA and a DSP. The method includes:
[0007] Step 1: After the aviation software starts, a power-on flag is generated based on the startup conditions of the FPGA and DSP. When the startup conditions of both the FPGA and DSP are reset, the power-on flag takes the first value. When the startup conditions of both the FPGA and DSP include power-on, the power-on flag takes the second value.
[0008] Step 2: Determine if the power-on indicator is the first value; if yes, proceed to Step 3; otherwise, proceed to Step 4.
[0009] Step 3: The aviation software reads the aircraft's operational status information stored in the non-volatile memory area into RAM. The aviation software then retrieves the aircraft's operational status information from RAM and proceeds to Step 5.
[0010] Step 4: The aviation software obtains the aircraft's operational status information from the FPGA;
[0011] Step 5: The aviation software executes tasks based on the acquired operational status information; during task execution, it updates the operational status information stored in the non-volatile memory area.
[0012] Optionally, the aviation software reads the aircraft's operational status information stored in the non-volatile memory area into RAM, including:
[0013] The aviation software reads the preset recovery address from the FPGA to obtain the recovery command;
[0014] According to the recovery command, the aviation software reads the aircraft's operational status information stored in the non-volatile memory area through RAM and stores the operational status information in RAM;
[0015] The preset number of recovery addresses is N, where N is a positive integer.
[0016] Optionally, power-on flags include: the FPGA's power-on flag fpga_flag and the DSP's software reset flag dsp_flag;
[0017] Where fpga_flag is the first preset value indicating FPGA reset, and the second preset value indicates FPGA power-on; dsp_flag is the third preset value indicating reset, and values other than the third preset value indicate power-on.
[0018] Optional, the operating status information includes: servo controller number, chassis number, software control channel number, and system ground / air flag.
[0019] A second aspect of the present invention provides a non-volatile memory access processing device for aviation software during startup, wherein the aviation software runs on an FPGA and a DSP, and the device includes: a power-on flag generation module, a judgment module, a running status information acquisition module, and an execution module;
[0020] The power-on flag generation module is used to generate a power-on flag based on the startup conditions of the FPGA and DSP after the aviation software module starts up. When the startup conditions of the FPGA and DSP are both reset, the power-on flag takes the first value; when the startup conditions of the FPGA and DSP include power-on, the power-on flag takes the second value.
[0021] The judgment module is used to determine whether the power-on indicator is the first value; if yes, proceed to step 3; otherwise, proceed to step 4.
[0022] The operation status information acquisition module is used to read the aircraft's operation status information stored in the non-volatile memory area into RAM when the power-on flag is a first value, and to obtain the aircraft's operation status information from RAM; it is also used to obtain the aircraft's operation status information from the FPGA when the power-on flag is not a first value.
[0023] The execution module is used to execute aviation software tasks based on the acquired operational status information; during the execution of aviation software tasks, it updates the operational status information stored in the non-volatile memory area.
[0024] Optionally, the operation status information acquisition module is used to read the preset recovery address in the FPGA to obtain the recovery instruction when the power-on identifier is a first value; and to read the aircraft's operation status information stored in the non-volatile memory area through the RAM according to the recovery instruction, and store the operation status information in the RAM.
[0025] The preset number of recovery addresses is N, where N is a positive integer.
[0026] Optionally, power-on flags include: the FPGA's power-on flag fpga_flag and the DSP's software reset flag dsp_flag;
[0027] Where fpga_flag is the first preset value indicating FPGA reset, and the second preset value indicates FPGA power-on; dsp_flag is the third preset value indicating reset, and values other than the third preset value indicate power-on.
[0028] Optional, the operating status information includes: servo controller number, chassis number, software control channel number, and system ground / air flag.
[0029] This invention provides a method and apparatus for accessing non-volatile memory areas during aviation software startup. Based on the storage characteristics of software data in the RAM and FLASH non-volatile memory areas of an FPGA, it completes real-time data storage and mapping. Furthermore, considering the different data recovery requirements under specific operating conditions such as power-on, reset, and non-reset, a recall processing strategy is employed to read and determine the system startup mode, thereby deciding on the data initialization method. The decision value is then read and calculated using a DSP. This invention is primarily applied to NVM read / write processing under various startup conditions, fully utilizing FPGA storage resources to make decisions and execute data recovery under specific operating conditions, and adapting to the data initialization requirements of specific scenarios. Attached Figure Description
[0030] Figure 1 This is a flowchart illustrating a method for accessing non-volatile memory areas during the startup of aviation software, provided by the present invention.
[0031] Figure 2 This is a schematic diagram illustrating the data read / write interaction between the FPGA's NVM module and the DSP processor.
[0032] Figure 3 This is a flowchart illustrating the process of determining whether the system is currently in a ground or air state by reading the ground / air flag in the non-volatile memory area after power-on. Detailed Implementation
[0033] The method and apparatus for accessing non-volatile memory areas during the startup of aviation software provided by the present invention will be explained below with reference to the accompanying drawings.
[0034] Figure 1 This is a flowchart illustrating the method for handling non-volatile memory access during aviation software startup provided by the present invention. Please refer to [link / reference]. Figure 1 The method includes:
[0035] First, after the aviation software starts, power-on flags fpga_flag and dsp_flag are generated according to the startup conditions of the FPGA and DSP, respectively. When the startup conditions of the FPGA and DSP are both reset, the power-on flags take the first value, that is, fpga_flag is 1 and dsp_flag is 3. When the startup conditions of the FPGA and DSP include power-on, the power-on flags take the second value, that is, fpga_flag is 0 and dsp_flag is any value from 0 to 2.
[0036] Secondly, if the power-on flag is the first value, the aviation software reads the aircraft operating status information stored in the non-volatile memory area through RAM; otherwise, the aviation software initializes the operating status information according to the preset value of the power-on status, and reads the real-time status information through the FPGA hardware interface in the periodic task; finally, the aviation software executes the task according to the acquired operating status information, and updates the operating status information stored in the non-volatile memory area in the process.
[0037] The aviation software retrieves aircraft operational status information stored in the non-volatile memory area via RAM, including:
[0038] The aviation software reads the preset recovery address from the FPGA to obtain the recovery command;
[0039] According to the recovery command, the aviation software reads the aircraft's operational status information stored in the non-volatile memory area through RAM and stores the operational status information in RAM;
[0040] The preset number of recovery addresses is N, where N is a positive integer.
[0041] Furthermore, the aviation software, based on the recovery command, reads the aircraft's operational status information stored in the non-volatile memory area via RAM, including:
[0042] A series of read recovery instructions are performed on the six recovery addresses to restore the data from the non-volatile memory area to the RAM area of the NVRAM, and the NVRAM is read and written normally after a 2ms delay.
[0043] Continuous read operations on the six recovery addresses must not be interrupted to avoid malfunction of the NVRAM internal state machine. Once completed, the function of recovering data from the non-volatile area to the internal RAM area can be realized.
[0044] Figure 2 For the interaction diagrams between DSP and RAM, and RAM and FLASH, and the Recall mechanism diagram in the method for handling non-volatile memory access during aviation software startup provided by this invention, please refer to [link / reference needed]. Figure 2 The execution steps of the Recall mechanism at the hardware layer include:
[0045] In real-time tasks, the DSP processor directly interacts with the RAM in the NVM to read and write data in the RAM; the RAM in the NVM copies the data into the FLASH, thereby establishing a one-to-one mapping between the data and the FLASH, and completing the storage of RAM data in the FLASH storage area.
[0046] The execution steps of the recall mechanism at the software layer include:
[0047] When the software reads during startup initialization that the DSP reset register flag dsp_flag is not equal to 3 and the FPGA power-on flag fpga_flag is 0, the software triggers the Recall mechanism to request the reading of non-volatile data. At this point, the software retrieves the non-volatile data from the non-volatile memory area via RAM and performs calculations on the processor. The processor does not interact directly with the FLASH memory but instead interacts through RAM. This design enables customized data read / write operations to handle different operating conditions.
[0048] The following is combined Figure 3 Taking the Recall mechanism for reading the aircraft's ground / air status flags before power-down as an example, the system reads the aircraft's original ground / air status flags after power-up to restore the ground / air status and complete subsequent processing based on the current status, including:
[0049] Step 1): The DSP processor writes the current ground-to-space status flag to the NVM cycle, and the RAM in the NVM writes the ground-to-space status flag to the non-volatile memory area FLASH.
[0050] Step 2): The system restarts after power-on. The FPGA reads that the power-on flag for the current cycle is 0, and the DSP reset register is not equal to 3, which meets the reset condition and triggers the Recall mechanism.
[0051] Step 3): The RAM reads the ground status flag stored before power-off from the non-volatile memory area;
[0052] Step 4): The DSP processor reads the ground and air status marker before power-down from the RAM and determines the current ground and air status of the system.
Claims
1. A method for accessing non-volatile memory areas during the startup of aviation software, characterized in that, The aviation software runs on FPGA and DSP, and the method includes: Step 1: After the aviation software starts, a power-on flag is generated based on the startup conditions of the FPGA and DSP. When the startup conditions of both the FPGA and DSP are reset, the power-on flag takes the first value. When the startup conditions of both the FPGA and DSP include power-on, the power-on flag takes the second value. Step 2: Determine if the power-on indicator is the first value; if yes, proceed to Step 3; otherwise, proceed to Step 4. Step 3: The aviation software reads the aircraft's operational status information stored in the non-volatile memory area into RAM. The aviation software then retrieves the aircraft's operational status information from RAM and proceeds to Step 5. Step 4: The aviation software obtains the aircraft's operational status information from the FPGA; Step 5: The aviation software executes tasks based on the acquired operational status information; during task execution, it updates the operational status information stored in the non-volatile memory area.
2. The method according to claim 1, characterized in that, The aviation software reads the aircraft's operational status information stored in the non-volatile memory area into RAM, including: The aviation software reads the preset recovery address from the FPGA to obtain the recovery command; According to the recovery command, the aviation software reads the aircraft's operational status information stored in the non-volatile memory area through RAM and stores the operational status information in RAM; The preset number of recovery addresses is N, where N is a positive integer.
3. The method according to claim 1, characterized in that, Power-on flags include: the FPGA's power-on flag fpga_flag and the DSP's software reset flag dsp_flag; Where fpga_flag is the first preset value indicating FPGA reset, and the second preset value indicates FPGA power-on; dsp_flag is the third preset value indicating reset, and values other than the third preset value indicate power-on.
4. The method according to claim 1, characterized in that, The operational status information includes: servo controller number, chassis number, software control channel number, and system ground / air flag.
5. A non-volatile memory access processing device during aviation software startup, characterized in that, The aviation software runs on FPGA and DSP, and the device includes: a power-on flag generation module, a judgment module, an operating status information acquisition module, and an execution module; The power-on flag generation module is used to generate a power-on flag based on the startup conditions of the FPGA and DSP after the aviation software module starts up. When the startup conditions of the FPGA and DSP are both reset, the power-on flag takes the first value; when the startup conditions of the FPGA and DSP include power-on, the power-on flag takes the second value. The judgment module is used to determine whether the power-on indicator is the first value; if yes, proceed to step 3; otherwise, proceed to step 4. The operation status information acquisition module is used to read the aircraft's operation status information stored in the non-volatile memory area into RAM when the power-on flag is a first value, and to obtain the aircraft's operation status information from RAM; it is also used to obtain the aircraft's operation status information from the FPGA when the power-on flag is not a first value. The execution module is used to execute aviation software tasks based on the acquired operational status information; during the execution of aviation software tasks, it updates the operational status information stored in the non-volatile memory area.
6. The apparatus according to claim 5, characterized in that, The operation status information acquisition module is used to read the preset recovery address in the FPGA to obtain the recovery command when the power-on identifier is a first value; according to the recovery command, it reads the aircraft's operation status information stored in the non-volatile memory area through RAM and stores the operation status information in RAM; The preset number of recovery addresses is N, where N is a positive integer.
7. The apparatus according to claim 5, characterized in that, Power-on flags include: the FPGA's power-on flag fpga_flag and the DSP's software reset flag dsp_flag; Where fpga_flag is the first preset value indicating FPGA reset, and the second preset value indicates FPGA power-on; dsp_flag is the third preset value indicating reset, and values other than the third preset value indicate power-on.
8. The apparatus according to claim 5, characterized in that, The operational status information includes: servo controller number, chassis number, software control channel number, and system ground / air flag.
Citation Information
Patent Citations
Method for realizing re-power-on to recover the probe-ground station communication of deep space probe after complete power failure
CN113760605A
DSP software remote upgrading system and method
CN114594970A
