Real-time debugging method and system of Yihui development environment based on virtual simulation platform
By building the integration of digital target prototypes and Yihui development environment on the virtual simulation platform, the problem that the existing technology cannot debug in real time with Yihui development environment is solved, efficient software debugging and verification is achieved, and the development cycle is significantly shortened.
Patent Information
- Application Number
- CN202411524160.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-10-30
AI Technical Summary
The existing technical solutions cannot be debugged in real time with Yihui development environment, which limits the development efficiency of high reliability and real-time applications in the fields of aerospace and other fields.
By configuring the simulation model based on the virtual simulation platform, and combining it with the Yihui operating system development environment, it realizes full-link real-time interaction of code modification, compilation, deployment and debugging.
It significantly shortens the development cycle and improves debugging efficiency. Developers can quickly detect and fix errors in simulation environments without frequent iterative testing on hardware.
Smart Images

Figure CN119046170B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software development and debugging, and in particular to a real-time debugging method and system for a Yihui development environment based on a virtual simulation platform. Background Art
[0002] Application scenarios that require high reliability and real-time performance in aerospace and other fields require precise system verification and real-time debugging to ensure the safety and functionality of aircraft. In such complex development, integrating virtual simulation platforms and development environments can bring some advantages:
[0003] Shorten development cycle: By performing preliminary testing and debugging in a virtual environment, you can reduce your reliance on actual hardware, thus shortening the overall development time.
[0004] Reduce costs: Virtual simulation can reduce the time cost caused by the coordination and transportation of hardware and other resources; it can ensure that each developer has a virtual simulation platform to achieve real-time debugging, reducing the time for communication and coordination;
[0005] Improve reliability: Real-time debugging can promptly discover and fix problems running in the system, ensuring the stability and reliability of the final system;
[0006] The shortcomings of the existing technology are: the existing technical solution can only be integrated with Tianmai's development environment for real-time debugging, and cannot be integrated with Yihui's development environment for real-time debugging.
[0007] Patent document CN117667714A (application number: 202311678816.5) discloses a Tianmai development environment integrated real-time debugging method and system based on a digital target machine. The method includes: adding a flight simulation operation instruction sending and receiving interface in the Tianmai operating system development environment; customizing the hardware virtual GMAC network card; configuring the network settings of the digital target machine system; configuring the digital target machine connection in the Tianmai operating system development environment; directly compiling and running the airborne software in the Tianmai operating system development environment without real hardware; directly debugging the airborne software in the Tianmai operating system development environment, and performing functional testing on the airborne display software through the airborne software subsystem interactive instruction sending and receiving interface. Summary of the invention
[0008] In view of the defects in the prior art, the purpose of the present invention is to provide a real-time debugging method and system for Yihui development environment based on a virtual simulation platform.
[0009] According to the present invention, a real-time debugging method of Yihui development environment based on a virtual simulation platform includes:
[0010] Step S1: configuring a simulation model based on a virtual simulation verification platform to build a digital target prototype;
[0011] Step S2: Load the application to be verified in the Yihui operating system development environment into the virtual simulation verification platform, and use the constructed digital target prototype to perform simulation verification. When the simulation verification does not meet the preset requirements, debug the application to be verified in the Yihui operating system development environment, and repeatedly trigger step S2 until the simulation verification meets the preset requirements.
[0012] Preferably, the step S1 comprises:
[0013] The virtual simulation verification platform includes multiple functional modules, including a processor core, an IO device module and a pile device module; the processor core is responsible for the execution of the instruction set; the IO device module is used to configure the peripheral devices, UART, network devices and devices related to the processor address space on the chip; the pile device module is used to expand the function;
[0014] Configure simulation models based on multiple functional modules in the virtual simulation verification platform, including processor, SOC model, target system board model and large system model, and build a digital target prototype;
[0015] The processor is configured based on the processor core in the virtual simulation verification platform and is used to execute an instruction set;
[0016] The SOC model is configured based on the processor and the IO device module in the virtual simulation verification platform, and is used to simulate the chip;
[0017] The target system board model is configured based on the SOC model and the stub device module in the virtual simulation verification platform, and is used to define the device module on the board;
[0018] The large system model is composed of multiple target system board models and is used to simulate the user's complete system so that the user can complete system-level debugging and testing.
[0019] Preferably, the virtual simulation verification platform is connected to the Yihui operating system development environment via a virtual network card to ensure data transmission and status synchronization between the virtual simulation verification platform and the Yihui operating system development environment.
[0020] Preferably, the method further comprises: performing simulation verification based on a digital target prototype built on the virtual simulation verification platform, obtaining application test data, and displaying it through the virtual simulation verification platform.
[0021] Preferably, the compatibility of the virtual simulation verification platform and the Yihui operating system development environment is ensured through common interfaces and protocols.
[0022] According to the present invention, a real-time debugging system of Yihui development environment based on a virtual simulation platform is provided, comprising:
[0023] Module M1: Configure the simulation model based on the virtual simulation verification platform to build a digital target prototype;
[0024] Module M2: Load the application to be verified in the Yihui operating system development environment into the virtual simulation verification platform, and use the built digital target prototype to perform simulation verification. When the simulation verification does not meet the preset requirements, debug the application to be verified in the Yihui operating system development environment, and repeatedly trigger step S2 until the simulation verification meets the preset requirements.
[0025] Preferably, the module M1 comprises:
[0026] The virtual simulation verification platform includes multiple functional modules, including a processor core, an IO device module and a pile device module; the processor core is responsible for the execution of the instruction set; the IO device module is used to configure the peripheral devices, UART, network devices and devices related to the processor address space on the chip; the pile device module is used to expand the function;
[0027] Configure simulation models based on multiple functional modules in the virtual simulation verification platform, including processor, SOC model, target system board model and large system model, and build a digital target prototype;
[0028] The processor is configured based on the processor core in the virtual simulation verification platform and is used to execute an instruction set;
[0029] The SOC model is configured based on the processor and the IO device module in the virtual simulation verification platform, and is used to simulate the CPU;
[0030] The target system board model is configured based on the SOC model and the stub device module in the virtual simulation verification platform, and is used to define the device module on the board;
[0031] The large system model is composed of multiple target system board models and is used to simulate the user's complete system so that the user can complete system-level debugging and testing.
[0032] Preferably, the virtual simulation verification platform is connected to the Yihui operating system development environment via a virtual network card to ensure data transmission and status synchronization between the virtual simulation verification platform and the Yihui operating system development environment.
[0033] Preferably, the system further comprises: performing simulation verification based on a digital target prototype built on the virtual simulation verification platform, obtaining application test data, and displaying it through the virtual simulation verification platform.
[0034] Preferably, the compatibility of the virtual simulation verification platform and the Yihui operating system development environment is ensured through common interfaces and protocols.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] 1. The present invention solves the technical problem of difficulty in efficient software debugging and verification in the development of complex embedded systems by adopting a virtual simulation platform;
[0037] 2. The present invention integrates the development environment of the Yihui operating system with the virtual simulation platform to achieve full-link real-time interaction of code modification, compilation, deployment and debugging;
[0038] 3. The present invention can significantly shorten the development cycle and improve debugging efficiency. Developers can quickly detect and fix errors in a simulation environment without frequent iterative testing on hardware. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0040] Figure 1 This is a schematic diagram of the real-time debugging system of the Yihui development environment based on the virtual simulation platform.
[0041] Figure 2 Schematic diagram of the digital target prototype. DETAILED DESCRIPTION
[0042] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0043] Example 1
[0044] According to the present invention, a real-time debugging method and system for the Yihui development environment based on a virtual simulation platform include: building a digital target prototype through a virtual simulation verification platform (iSystem) to replace real hardware, connecting with the development environment (RealEvo-IDE) of the Yihui operating system to achieve a one-click push debugging function, and a visual data generation interface provided by the virtual simulation verification platform to facilitate data generation and viewing test results, thereby achieving fast iteration from code writing to debugging to achieve the purpose of real-time debugging.
[0045] The real-time debugging method of the Yihui development environment based on the virtual simulation platform includes:
[0046] Step 1: Add an application in the RealEvo IDE.
[0047] In this embodiment, before the executable file generated by the application program is pushed to the digital target machine, the digital target machine is already running the RealEvo operating system. After that, the RealEvo operating system development environment (RealEvo-IDE) is successfully connected to the digital target machine, and after the executable file generated by the application program is pushed to the digital target machine, the digital target machine starts to execute the application program.
[0048] Step 2: Configure the simulation model in the virtual simulation verification platform (iSystem) and build a digital target prototype.
[0049] In this embodiment, the virtual simulation verification platform iSystem is a virtual development and verification platform. On the basis of maintaining high-speed cross-simulation of the complete system, it creatively introduces the idea of graphical modeling into the construction of the virtual system, effectively solving the problems of high difficulty in building the virtual target system and poor scalability in existing virtual simulation products.
[0050] The virtual simulation verification platform iSystem includes multiple functional modules. One is the processor core, which is mainly responsible for the execution of the instruction set. Another is the IO device module, including on-chip peripherals, UART, network devices and other devices related to the processor address space. Another is the stub device used to expand functions. This device is inserted into the virtual system like a stub to expand and implement certain specific functions.
[0051] The configuration of the simulation model and the construction of the digital target prototype include: configuring the processor, SOC, board, and large system. The hierarchical relationship between iSystems is as follows: Figure 2 As shown; among which:
[0052] The processor core is mainly involved in the execution of instruction sets, processor event management, processor interrupt management, breakpoint management, watchpoint management, processor energy saving mode support, instruction set disassembly, memory management, IO management, general register management and other instruction-related functions. According to different instruction sets, it can be divided into ARM, PPC, SPARC, X86, 8051, DSP and other different cores for use.
[0053] The SOC model is based on a general-purpose processor core and adds on-chip peripherals according to different requirements. The purpose of implementing this model is to simulate the chip. This model generally cannot work independently.
[0054] The target system board model is based on the SOC model, plus user-defined on-board device modules.
[0055] The large system model is composed of multiple target board models. Its purpose is to simulate the user's complete system so that the user can complete system-level debugging and testing.
[0056] Step 3: Configure the network settings of the virtual simulation verification platform (iSystem) to ensure data transmission and status synchronization between the virtual simulation verification platform (iSystem) and the RealEvo operating system development environment (RealEvo-IDE).
[0057] Step 4: Configure the application in the RealEvo-IDE to ensure that it can successfully connect to the target digital prototype.
[0058] Step 5: After compiling the application in the RealEvo operating system development environment (RealEvo-IDE), push it to the target digital prototype with one click.
[0059] In this embodiment, the application is compiled and generated into a binary file which is pushed to the digital target prototype with one click.
[0060] Step 6: Debug the application in RealEvo-IDE.
[0061] In this embodiment, a virtual network card is used to manage data transmission and interaction between the virtual simulation platform and the Yihui development environment.
[0062] The present invention also provides a real-time debugging system for the Yihui development environment based on a virtual simulation platform. The real-time debugging system for the Yihui development environment based on the virtual simulation platform can be implemented by executing the process steps of the real-time debugging method for the Yihui development environment based on the virtual simulation platform, that is, technical personnel in this field can understand the real-time debugging method for the Yihui development environment based on the virtual simulation platform as the preferred implementation mode of the real-time debugging system for the Yihui development environment based on the virtual simulation platform.
[0063] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0064] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A real-time debugging method based on the Yihui development environment under a virtual simulation platform, characterized in that: include: Step S1: configuring a simulation model based on a virtual simulation verification platform to build a digital target prototype; Step S2: Load the application to be verified in the Yihui operating system development environment into the virtual simulation verification platform, and use the built digital target prototype to perform simulation verification. When the simulation verification does not meet the preset requirements, debug the application to be verified in the Yihui operating system development environment, and repeatedly trigger step S2 until the simulation verification meets the preset requirements; The step S1 comprises: The virtual simulation verification platform includes multiple functional modules, including a processor core, an IO device module and a pile device module; the processor core is responsible for the execution of the instruction set; the IO device module is used to configure the peripheral devices, UART, network devices and devices related to the processor address space on the chip; the pile device module is used to expand the function; Configure simulation models based on multiple functional modules in the virtual simulation verification platform, including processor, SOC model, target system board model and large system model, and build a digital target prototype; The processor is configured based on the processor core in the virtual simulation verification platform and is used to execute an instruction set; The SOC model is configured based on the processor and the IO device module in the virtual simulation verification platform, and is used to simulate the chip; The target system board model is configured based on the SOC model and the stub device module in the virtual simulation verification platform, and is used to define the device module on the board; The large system model is composed of multiple target system board models and is used to simulate the user's complete system so that the user can complete system-level debugging and testing; The virtual simulation verification platform is connected to the Yihui operating system development environment through a virtual network card to ensure data transmission and status synchronization between the virtual simulation verification platform and the Yihui operating system development environment; After compiling the application in the RealEvo-IDE, the development environment of the Yihui operating system, it can be directly pushed to the target digital prototype with one click; Debug applications in the RealEvo-IDE, the development environment for the Yihui operating system; The method further includes: performing simulation verification based on a digital target prototype built on the virtual simulation verification platform, obtaining application test data, and displaying the data through the virtual simulation verification platform; Through common interfaces and protocols, the compatibility of the virtual simulation verification platform and the Yihui operating system development environment is ensured.
2. A real-time debugging system based on the Yihui development environment under a virtual simulation platform, characterized in that: include: Module M1: Configure the simulation model based on the virtual simulation verification platform to build a digital target prototype; Module M2: Load the application to be verified in the Yihui operating system development environment into the virtual simulation verification platform, and use the built digital target prototype to perform simulation verification. When the simulation verification does not meet the preset requirements, debug the application to be verified in the Yihui operating system development environment, and repeatedly trigger step S2 until the simulation verification meets the preset requirements; The module M1 comprises: The virtual simulation verification platform includes multiple functional modules, including a processor core, an IO device module and a pile device module; the processor core is responsible for the execution of the instruction set; the IO device module is used to configure the peripheral devices, UART, network devices and devices related to the processor address space on the chip; the pile device module is used to expand the function; Configure simulation models based on multiple functional modules in the virtual simulation verification platform, including processor, SOC model, target system board model and large system model, and build a digital target prototype; The processor is configured based on the processor core in the virtual simulation verification platform and is used to execute an instruction set; The SOC model is configured based on the processor and the IO device module in the virtual simulation verification platform, and is used to simulate the chip; The target system board model is configured based on the SOC model and the stub device module in the virtual simulation verification platform, and is used to define the device module on the board; The large system model is composed of multiple target system board models and is used to simulate the user's complete system so that the user can complete system-level debugging and testing; The virtual simulation verification platform is connected to the Yihui operating system development environment through a virtual network card to ensure data transmission and status synchronization between the virtual simulation verification platform and the Yihui operating system development environment; After compiling the application in the RealEvo-IDE, the development environment of the Yihui operating system, it can be directly pushed to the target digital prototype with one click; Debug applications in the RealEvo-IDE, the development environment for the Yihui operating system; The system further includes: performing simulation verification based on a digital target prototype built on the virtual simulation verification platform, obtaining application test data, and displaying it through the virtual simulation verification platform; Through common interfaces and protocols, the compatibility of the virtual simulation verification platform and the Yihui operating system development environment is ensured.
Citation Information
Patent Citations
Digital target machine-based horizon development environment integration real-time debugging method and system
CN117667714A