CN111552503A - Project file processing method and device, computer equipment and storage medium - Google Patents

Project file processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111552503A
CN111552503A CN202010398638.0A CN202010398638A CN111552503A CN 111552503 A CN111552503 A CN 111552503A CN 202010398638 A CN202010398638 A CN 202010398638A CN 111552503 A CN111552503 A CN 111552503A
Authority
CN
China
Prior art keywords
file
configuration
project
engineering
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010398638.0A
Other languages
Chinese (zh)
Other versions
CN111552503B (en
Inventor
吴英
刘根利
翟渊
向毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University of Science and Technology
Original Assignee
Chongqing University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing University of Science and Technology filed Critical Chongqing University of Science and Technology
Priority to CN202010398638.0A priority Critical patent/CN111552503B/en
Publication of CN111552503A publication Critical patent/CN111552503A/en
Application granted granted Critical
Publication of CN111552503B publication Critical patent/CN111552503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The scheme relates to a project file processing method. The method comprises the following steps: acquiring an engineering file editing instruction, and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information; acquiring configuration parameters through an editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information; acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters; and generating an execution file code according to the engineering file, and storing the execution file code to a storage address. A user can edit and modify hardware resources through an interface, select required codes and function interfaces, finally generate a singlechip incremental upgrading project, compile the incremental upgrading project into execution codes after secondary development, and burn the execution codes into the singlechip, so that the software development efficiency can be improved.

Description

Project file processing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing an engineering document, a computer device, and a storage medium.
Background
With the rapid development of low-power-consumption internet of things equipment and NB-Iot technology, the power consumption requirement on the equipment is higher and higher. In the development process of the embedded device, the device program is often required to be upgraded, and the whole upgrading is generally used at present, namely, the complete code of a project is downloaded into a single chip microcomputer for updating. A complete project is generally very large, but the function codes are few. The fundamental reason for the low power consumption of NB-Iot is that it is dormant most of the time, while the power consumption is still high while communication is taking place. Moreover, the communication rate of the NB-Iot is about 200kbps (20kB), and meanwhile, the actual communication rate is lower due to the influence of environmental factors. The power consumption for NB-Iot communication and sleep is 250mA and 4uA, respectively, which is a very large gap.
When the upgrade is carried out in full quantity, a space as large as the upgrade package needs to be reserved for storing the upgrade package, and the upgrade package is copied to the FLSAH execution area after verification. To accomplish incremental upgrade, the configuration can be manually performed on the integrated development environment and implemented by combining the corresponding code, but the process is cumbersome and error-prone.
Disclosure of Invention
In order to solve the technical problems, the invention provides a project file processing method, a project file processing device, a computer device and a storage medium, which can improve the efficiency of software development.
A project file processing method, the method comprising:
acquiring an engineering file editing instruction, and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information;
acquiring configuration parameters through the editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information;
acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters;
and generating an execution file code according to the project file, and storing the execution file code to the storage address.
In one embodiment, the obtaining the storage address corresponding to the configuration parameter from the single chip microcomputer information includes:
displaying an address configuration table in an interface; the address configuration table is used for allocating storage space for each project file in the single chip microcomputer; the storage space is used for storing compiled codes;
and according to the address configuration table, taking the storage space in the singlechip as a storage address corresponding to the configuration parameters.
In one embodiment, the method further comprises:
acquiring a file opening instruction;
extracting a file identifier in the file opening instruction, and searching a target engineering file corresponding to the file identifier;
analyzing the target engineering file to obtain a storage resource of the target engineering file;
when the storage space in the address configuration table exceeds the storage resource, displaying prompt information; and the prompt information is used for prompting the modification of the configuration parameters of the target project file.
In one embodiment, the method further comprises:
acquiring an engineering file modification instruction, and displaying a modification interface according to the engineering file modification instruction;
searching the project file needing to be modified corresponding to the project file modification instruction, and acquiring the configuration parameters of the project file needing to be modified;
displaying the configuration parameters of the project file to be modified, and acquiring modification parameters;
and modifying the engineering file according to the modification parameters.
In one embodiment, the generating a project file according to the project file configuration instruction and the configuration parameter includes:
acquiring a file code;
moving the file code to a target project according to the project file configuration instruction and the configuration parameters;
adding a function vector table for the target project;
and generating an engineering file according to the function vector table and the configuration parameters.
A project document processing apparatus, the apparatus comprising:
the editing interface display module is used for acquiring an engineering file editing instruction and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information;
the configuration parameter acquisition module is used for acquiring configuration parameters through the editing interface and acquiring storage addresses corresponding to the configuration parameters from the single chip microcomputer information;
the configuration file generation module is used for acquiring a project file configuration instruction and generating a project file according to the project file configuration instruction and the configuration parameters;
the file storage module is used for generating an execution file code according to the project file and storing the execution file code to the storage address
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring an engineering file editing instruction, and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information;
acquiring configuration parameters through the editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information;
acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters;
and generating an execution file code according to the project file, and storing the execution file code to the storage address.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an engineering file editing instruction, and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information;
acquiring configuration parameters through the editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information;
acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters;
and generating an execution file code according to the project file, and storing the execution file code to the storage address.
According to the engineering file processing method, the engineering file processing device, the computer equipment and the storage medium, the engineering file editing instruction is obtained, and the editing interface is displayed according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information; acquiring configuration parameters through an editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information; acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters; and generating an execution file code according to the engineering file, and storing the execution file code to a storage address. A user can edit and modify hardware resources through an interface, select required codes and function interfaces, finally generate a singlechip incremental upgrading project, compile the incremental upgrading project into execution codes after secondary development, and burn the execution codes into the singlechip, so that the software development efficiency can be improved.
Drawings
FIG. 1 is a diagram of an application environment of a project file processing method in one embodiment;
FIG. 2 is a flow diagram illustrating a method for processing project files in one embodiment;
FIG. 3 is a diagram of a new project file interface in one embodiment;
FIG. 4 is a diagram of a modify project file interface in one embodiment;
FIG. 5 is a block diagram of a project file processing apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The project file processing method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. As shown in fig. 1, the application environment includes a terminal 110. The terminal 110 may obtain the engineering file editing instruction and display an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information; the terminal 110 may obtain the configuration parameters through the editing interface, and obtain the storage address corresponding to the configuration parameters from the single chip microcomputer information; the terminal 110 may obtain the engineering file configuration instruction, and generate an engineering file according to the engineering file configuration instruction and the configuration parameters; the terminal 110 may generate an execution file code according to the project file and store the execution file code to the storage address. The terminal 110 may be, but is not limited to, various personal computers, notebook computers, tablet computers, and the like.
In one embodiment, as shown in fig. 2, there is provided a project file processing method, including the steps of:
step 202, acquiring an engineering file editing instruction, and displaying an editing interface according to the engineering file editing instruction; the editing interface contains the information of the single chip microcomputer.
A plurality of controls can be displayed on a display screen of the terminal, such as editing controls, modifying controls, deleting controls and the like. The user can trigger the corresponding instruction by clicking the control. The engineering file editing instruction can be generated by a user through clicking an editing control in a terminal display screen, and the engineering file editing instruction can be used for editing an engineering file. After the terminal generates the engineering file editing instruction, the editing interface can be displayed according to the engineering file editing instruction, the editing interface can include a check box of the newly-built configuration engineering, and after a user clicks the check box of the newly-built configuration engineering, the newly-built configuration engineering interface can be displayed in the display screen.
As shown in fig. 3, the newly-built configuration project interface may include a single chip microcomputer information display tag, the single chip microcomputer information display tag may display the single chip microcomputer model, the RAM and ROM space size and the address range read from the project configuration file, and a user may allocate an address according to the single chip microcomputer information. The newly-built configuration project interface can also comprise a project quantity input box used for generating APP project quantities except for firmware projects. The newly-built configuration project interface also comprises an address configuration table, and after a user inputs the number of projects, the address configuration table can be displayed in the interface and is used for configuring the initial address and the space size of each project.
And step 204, acquiring the configuration parameters through the editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information.
The configuration parameters can be used for representing the type of the single chip microcomputer, the space size and the address range of the RAM and the ROM, the number of generated projects and the initial address and the space size of each configured project. The terminal can acquire the configuration parameters through an editing interface on the display screen.
The newly-built configuration engineering interface can also comprise a function vector list, and a user can select a uvprojx file after selecting a path of an engineering, a terminal can automatically read engineering information, including single-chip microcomputer information, all the engineering is provided with folder names of files c and h, wherein the single-chip microcomputer information is displayed in single-chip microcomputer model information, the folder names are displayed in check boxes after the folder names are loaded by functions, all the c file names under the folder are loaded in the check boxes after the folder is selected, and the user can select functions in different folders and display the functions in the function vector list for the user to select; the user can drag the function to different APP projects or double-click, and the function name is changed into grey at the moment; if the selection is wrong, the deleting control can be clicked to delete the application layer function; if the function of 2 APP application layers is exchanged, a 'firmware layer/application layer switching' button can be clicked, the firmware function block is changed into an application layer entry function the same as that of the right side, and mutual calling among different APP layer functions is achieved.
And step 206, acquiring the project file configuration instruction, and generating the project file according to the project file configuration instruction and the configuration parameters.
The terminal can obtain the engineering file configuration instruction through the display screen, and specifically, a user can return to the firmware function module by clicking a switching button in the interface. And finally, clicking application configuration to finish the automatic generation of the incremental upgrading project file. The user can write the code only by clicking the generated uvmpw working space configuration file.
And step 208, generating an execution file code according to the engineering file, and storing the execution file code to a storage address.
In the embodiment, an editing instruction of the engineering file is obtained, and an editing interface is displayed according to the editing instruction of the engineering file; the editing interface comprises single chip microcomputer information; acquiring configuration parameters through an editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information; acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters; and generating an execution file code according to the engineering file, and storing the execution file code to a storage address. A user can edit and modify hardware resources through an interface, select required codes and function interfaces, finally generate a singlechip incremental upgrading project, compile the incremental upgrading project into execution codes after secondary development, and burn the execution codes into the singlechip, so that the software development efficiency can be improved.
In one embodiment, obtaining the storage address corresponding to the configuration parameter from the single chip microcomputer information includes: displaying an address configuration table in an interface; the address configuration table is used for allocating storage space for each project file in the single chip microcomputer; the storage space is used for storing the compiled codes; and according to the address configuration table, using the storage space in the singlechip as a storage address corresponding to the configuration parameters.
In this embodiment, the address configuration table is an area divided by the single chip microcomputer for each project, and is used for storing compiled codes. According to the address configuration table, the space allocated in the address configuration table can be used as the storage space of each project in the single chip microcomputer.
In an embodiment, the provided project file processing method may further include a process of acquiring configuration information, where the specific process includes: acquiring a file opening instruction; extracting a file identifier in a file opening instruction, and searching a target engineering file corresponding to the file identifier; analyzing the target engineering file to obtain a storage resource of the target engineering file; when the storage space in the address configuration table exceeds the storage resource, displaying prompt information; the prompt message is used for prompting the modification of the configuration parameters of the target project file.
The file open instruction may be for opening a corresponding project file. The file opening instruction can be generated by a user through interface triggering on a display screen. The file opening instruction may include a file identifier, where the file identifier may be used to distinguish different engineering files, and the file identifier may be a string of numbers, a string of letters, or other characters, which is not limited herein. After the terminal acquires the file opening instruction, the file identification in the file opening instruction can be extracted, so that the engineering file corresponding to the file identification is found in the original engineering, and the found engineering file is copied to the target engineering file.
The user selects and opens the project file through the display screen, and since the information is the configuration file stored in the keil5, the uvprojx file is written by using the XML scripting language, the terminal can automatically parse the content in the uvprojx file and read all the configuration information, so that the configuration information is displayed in the display screen.
The terminal can analyze the target engineering file to obtain the storage resource of the target engineering file. The terminal can read all folder names and all c and h file names of the project and is used for displaying the function folder names and the c and h names for a user to select. The terminal can read the entry function C file saving path and the function vector tables at two sides to save into the data array, sequentially read the function vector table of each project into the data array until the user configures the complete parameters, and click the application configuration button to complete the data reading operation.
When the storage space in the address configuration table exceeds the storage resource, the terminal can pop out prompt information in the display screen, and the prompt information can be used for informing a user that the address information is wrong, so that the user can modify the configuration parameters of the target engineering file conveniently. For example, the memory space of the single chip microcomputer is 0x 80000000-0 x 90000000, and the memory space range is analyzed from the opened engineering file; if the starting address of the allocated resource in the address configuration table is 0x8D 000000 and the size is 0x 03000000, the allocated address range is 0x8D 000000-0 x91000000 and exceeds the storage resource of the single chip microcomputer.
In one embodiment, the provided project file processing method may further include a process of modifying the file, where the specific process includes: acquiring an engineering file modification instruction, and displaying a modification interface according to the engineering file modification instruction; searching for the engineering file to be modified corresponding to the engineering file modification instruction, and acquiring the configuration parameters of the engineering file to be modified; displaying configuration parameters of the project file to be modified, and acquiring modification parameters; and modifying the engineering file according to the modification parameters.
The engineering file modification instruction can be generated by a user through triggering a file modification control in a terminal display screen. The engineering file modification instruction can include a file identifier of the engineering file to be modified, and the terminal can extract the file identifier of the engineering file to be modified and search the engineering file to be modified corresponding to the engineering file modification instruction from the original engineering. Wherein, the original project is a project needing to be modified. The terminal can display the modification interface according to the engineering file modification instruction, the configuration parameters of the engineering file to be modified can be displayed in the modification interface, a user can modify the configuration parameters of the engineering file through the modification interface, and the terminal can acquire the modification parameters input by the user, so that the engineering file can be modified according to the modification parameters. The modification interface is as shown in fig. 4, the terminal can read the configuration parameters from the configured configuration file, and if the configuration parameters are to be modified, the user only needs to complete the modification according to the configuration mode of the parameters of the newly-built configuration project. As shown in fig. 4: double clicking adds the left function to the right function vector table, after which the function name will become grey, and double clicking again may delete the function that was added to the right.
In the embodiment, after a user specifies a project path, reading all directories and files under the project path, filtering all files except for the files c and h, recording the file path and the file name of the files, and displaying the files c in an interface; the user can open the h file in sequence, retrieve all function declarations in the h file, record the file name and the function declarations, display the function declarations in an interface, mark according to which project the function belongs to after the user selects, the terminal can store all file paths, file names, function names and mark information in a linked list, and the mark information needs to be associated with the paths, the file names and the function names. When the user finishes configuring all information, the directory generation of each project is finished, then the function name selected by the user belongs to which c file, the c file and the h file are copied to corresponding paths, and a function vector table is created according to the mark information in the linked list and is respectively written into the s starting file, the XXXfirmware.h file and the XXXfirmware.c file. The terminal can read the user address allocation information and write the user address allocation information into the sct dispersed loading description file; and combining the user address configuration information with the mark information in the linked list, writing all the configurations into the Uvprojx configuration file, and simultaneously generating a working space configuration file Uvmpw. And realizing the automatic configuration function of the incremental upgrade parameters.
In one embodiment, the provided project file processing method may further include a process of generating a project file, where the specific process includes: acquiring a file code; according to the project file configuration instruction and the configuration parameters, the file code is moved to the target project; adding a function vector table for the target engineering; and generating an engineering file according to the function vector table and the configuration parameters.
The terminal can move the file code to the fixed folder of each project according to the parameters set by the user, and after the starting file of the firmware project is modified, the terminal can add a function vector table according to the format of the starting file function vector table for calling the APP application layer project; the terminal can add a file code function vector table for the firmware engineering, and is used for calling the APP function in the firmware engineering; adding a file code function vector table and a starting file function vector table for each APP application layer project, wherein the file code function vector tables are used for calling the APP application layer project and the firmware project functions mutually; the terminal can generate a distributed loading description file for each project according to the address allocation condition configured by the user, and the distributed loading description file is used for specifying the storage address and the execution space of each project code. The engineering files may include source code files, configuration engineering files, sct, h, c, s, uvprojx, uvmpw, and the like.
Wherein, the configuration of modifying the project file of the firmware project according to the standard XML format of the project file includes but is not limited to: address allocation, bin file configuration parameters, debug parameters, file path parameters, engineering directory parameters, and engineering structure parameters.
It should be understood that, although the steps in the respective flowcharts described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in each of the flowcharts described above may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a project document processing apparatus including: an editing interface display module 510, a configuration parameter acquisition module 520, a configuration file generation module 530 and a file storage module 540, wherein:
an editing interface display module 510, configured to obtain an engineering file editing instruction, and display an editing interface according to the engineering file editing instruction; the editing interface contains the information of the single chip microcomputer.
And a configuration parameter obtaining module 520, configured to obtain the configuration parameters through the editing interface, and obtain the storage address corresponding to the configuration parameters from the single chip microcomputer information.
The configuration file generating module 530 is configured to obtain the engineering file configuration instruction, and generate the engineering file according to the engineering file configuration instruction and the configuration parameters.
And the file storage module 540 is configured to generate an execution file code according to the project file, and store the execution file code to a storage address.
In one embodiment, the configuration parameter obtaining module 520 is further configured to display the address configuration table in the interface; the address configuration table is used for allocating storage space for each project file in the single chip microcomputer; the storage space is used for storing the compiled codes; and according to the address configuration table, using the storage space in the singlechip as a storage address corresponding to the configuration parameters.
In one embodiment, a project document processing apparatus is provided, further comprising: the information prompting module is used for acquiring a file opening instruction; extracting a file identifier in a file opening instruction, and searching a target engineering file corresponding to the file identifier; analyzing the target engineering file to obtain a storage resource of the target engineering file; when the storage space in the address configuration table exceeds the storage resource, displaying prompt information; the prompt message is used for prompting the modification of the configuration parameters of the target project file.
In one embodiment, the provided engineering file processing device further comprises a file modification module, configured to obtain an engineering file modification instruction, and display a modification interface according to the engineering file modification instruction; searching for the engineering file to be modified corresponding to the engineering file modification instruction, and acquiring the configuration parameters of the engineering file to be modified; displaying configuration parameters of the project file to be modified, and acquiring modification parameters; and modifying the engineering file according to the modification parameters.
In one embodiment, the configuration file generation module 530 is further configured to obtain a file code; according to the project file configuration instruction and the configuration parameters, the file code is moved to the target project; adding a function vector table for the target engineering; and generating an engineering file according to the function vector table and the configuration parameters.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer apparatus includes a processor, a memory, a network interface, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal or a hand mechanical model through network connection. The computer program is executed by a processor to implement a model processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring an engineering file editing instruction, and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information;
acquiring configuration parameters through an editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information;
acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters;
and generating an execution file code according to the engineering file, and storing the execution file code to a storage address.
In one embodiment, the processor, when executing the computer program, further performs the steps of: displaying an address configuration table in an interface; the address configuration table is used for allocating storage space for each project file in the single chip microcomputer; the storage space is used for storing the compiled codes; and according to the address configuration table, using the storage space in the singlechip as a storage address corresponding to the configuration parameters.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a file opening instruction; extracting a file identifier in a file opening instruction, and searching a target engineering file corresponding to the file identifier; analyzing the target engineering file to obtain a storage resource of the target engineering file; when the storage space in the address configuration table exceeds the storage resource, displaying prompt information; the prompt message is used for prompting the modification of the configuration parameters of the target project file.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring an engineering file modification instruction, and displaying a modification interface according to the engineering file modification instruction; searching for the engineering file to be modified corresponding to the engineering file modification instruction, and acquiring the configuration parameters of the engineering file to be modified; displaying configuration parameters of the project file to be modified, and acquiring modification parameters; and modifying the engineering file according to the modification parameters.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a file code; according to the project file configuration instruction and the configuration parameters, the file code is moved to the target project; adding a function vector table for the target engineering; and generating an engineering file according to the function vector table and the configuration parameters.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an engineering file editing instruction, and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information;
acquiring configuration parameters through an editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information;
acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters;
and generating an execution file code according to the engineering file, and storing the execution file code to a storage address.
In one embodiment, the computer program when executed by the processor further performs the steps of: displaying an address configuration table in an interface; displaying an address configuration table in an interface; the address configuration table is used for allocating storage space for each project file in the single chip microcomputer; the storage space is used for storing the compiled codes; and according to the address configuration table, using the storage space in the singlechip as a storage address corresponding to the configuration parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a file opening instruction; extracting a file identifier in a file opening instruction, and searching a target engineering file corresponding to the file identifier; analyzing the target engineering file to obtain a storage resource of the target engineering file; when the storage space in the address configuration table exceeds the storage resource, displaying prompt information; the prompt message is used for prompting the modification of the configuration parameters of the target project file.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring an engineering file modification instruction, and displaying a modification interface according to the engineering file modification instruction; searching for the engineering file to be modified corresponding to the engineering file modification instruction, and acquiring the configuration parameters of the engineering file to be modified; displaying configuration parameters of the project file to be modified, and acquiring modification parameters; and modifying the engineering file according to the modification parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a file code; according to the project file configuration instruction and the configuration parameters, the file code is moved to the target project; adding a function vector table for the target engineering; and generating an engineering file according to the function vector table and the configuration parameters.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by controlling the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A project file processing method is characterized by comprising the following steps:
acquiring an engineering file editing instruction, and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information;
acquiring configuration parameters through the editing interface, and acquiring a storage address corresponding to the configuration parameters from the single chip microcomputer information;
acquiring an engineering file configuration instruction, and generating an engineering file according to the engineering file configuration instruction and the configuration parameters;
and generating an execution file code according to the project file, and storing the execution file code to the storage address.
2. The method according to claim 1, wherein the obtaining of the storage address corresponding to the configuration parameter from the single chip microcomputer information comprises:
displaying an address configuration table in an interface; the address configuration table is used for allocating storage space for each project file in the single chip microcomputer; the storage space is used for storing compiled codes;
and according to the address configuration table, taking the storage space in the singlechip as a storage address corresponding to the configuration parameters.
3. The method of claim 2, further comprising:
acquiring a file opening instruction;
extracting a file identifier in the file opening instruction, and searching a target engineering file corresponding to the file identifier;
analyzing the target engineering file to obtain a storage resource of the target engineering file;
when the storage space in the address configuration table exceeds the storage resource, displaying prompt information; and the prompt information is used for prompting the modification of the configuration parameters of the target project file.
4. The method of claim 1, further comprising:
acquiring an engineering file modification instruction, and displaying a modification interface according to the engineering file modification instruction;
searching the project file needing to be modified corresponding to the project file modification instruction, and acquiring the configuration parameters of the project file needing to be modified;
displaying the configuration parameters of the project file to be modified, and acquiring modification parameters;
and modifying the engineering file according to the modification parameters.
5. The method of claim 1, wherein generating a project file according to the project file configuration instructions and the configuration parameters comprises:
acquiring a file code;
moving the file code to a target project according to the project file configuration instruction and the configuration parameters;
adding a function vector table for the target project;
and generating an engineering file according to the function vector table and the configuration parameters.
6. A project document processing apparatus, characterized in that the apparatus comprises:
the editing interface display module is used for acquiring an engineering file editing instruction and displaying an editing interface according to the engineering file editing instruction; the editing interface comprises single chip microcomputer information;
the configuration parameter acquisition module is used for acquiring configuration parameters through the editing interface and acquiring storage addresses corresponding to the configuration parameters from the single chip microcomputer information;
the configuration file generation module is used for acquiring a project file configuration instruction and generating a project file according to the project file configuration instruction and the configuration parameters;
and the file storage module is used for generating an execution file code according to the project file and storing the execution file code to the storage address.
7. The apparatus of claim 6, wherein the configuration parameter obtaining module is further configured to: displaying an address configuration table in an interface; the address configuration table is used for allocating storage space for each project file in the single chip microcomputer; the storage space is used for storing compiled codes; and according to the address configuration table, taking the storage space in the singlechip as a storage address corresponding to the configuration parameters.
8. The apparatus of claim 7, further comprising: the information prompting module is used for acquiring a file opening instruction; extracting a file identifier in the file opening instruction, and searching a target engineering file corresponding to the file identifier; analyzing the target engineering file to obtain a storage resource of the target engineering file; when the storage space in the address configuration table exceeds the storage resource, displaying prompt information; and the prompt information is used for prompting the modification of the configuration parameters of the target project file.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202010398638.0A 2020-05-12 2020-05-12 Project file processing method and device, computer equipment and storage medium Active CN111552503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010398638.0A CN111552503B (en) 2020-05-12 2020-05-12 Project file processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010398638.0A CN111552503B (en) 2020-05-12 2020-05-12 Project file processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111552503A true CN111552503A (en) 2020-08-18
CN111552503B CN111552503B (en) 2023-03-31

Family

ID=72006214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010398638.0A Active CN111552503B (en) 2020-05-12 2020-05-12 Project file processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111552503B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306540A (en) * 2020-11-05 2021-02-02 重庆科技学院 Multi-project independent compiling method, system, terminal and medium
CN112306539A (en) * 2020-11-05 2021-02-02 重庆科技学院 Method, system, terminal and medium for developing application layer of single chip microcomputer

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090070374A1 (en) * 2005-12-20 2009-03-12 Telefonaktiebolaget L M Ericsson (Publ) Generating Incremental Program Updates
CN103309683A (en) * 2012-03-07 2013-09-18 京信通信系统(中国)有限公司 Software patch embedding method and device for hardware equipment
CN105204900A (en) * 2015-09-23 2015-12-30 小米科技有限责任公司 Operation method and device for embedded chip, embedded chip and terminal device
CN107205055A (en) * 2017-08-01 2017-09-26 海信集团有限公司 Terminal staging method and device
CN109783081A (en) * 2018-12-27 2019-05-21 百富计算机技术(深圳)有限公司 A kind of development approach of application program, device and Integrated Development Tool
CN110704077A (en) * 2018-07-10 2020-01-17 中兴通讯股份有限公司 Firmware remote upgrading method and device, terminal, mobile device and storage medium
CN110837393A (en) * 2019-11-14 2020-02-25 北京知道创宇信息技术股份有限公司 Method and device for manufacturing firmware differential upgrade package and readable storage medium
CN110928570A (en) * 2019-11-27 2020-03-27 北京知道创宇信息技术股份有限公司 Firmware upgrading method and device and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090070374A1 (en) * 2005-12-20 2009-03-12 Telefonaktiebolaget L M Ericsson (Publ) Generating Incremental Program Updates
CN103309683A (en) * 2012-03-07 2013-09-18 京信通信系统(中国)有限公司 Software patch embedding method and device for hardware equipment
CN105204900A (en) * 2015-09-23 2015-12-30 小米科技有限责任公司 Operation method and device for embedded chip, embedded chip and terminal device
CN107205055A (en) * 2017-08-01 2017-09-26 海信集团有限公司 Terminal staging method and device
CN110704077A (en) * 2018-07-10 2020-01-17 中兴通讯股份有限公司 Firmware remote upgrading method and device, terminal, mobile device and storage medium
CN109783081A (en) * 2018-12-27 2019-05-21 百富计算机技术(深圳)有限公司 A kind of development approach of application program, device and Integrated Development Tool
CN110837393A (en) * 2019-11-14 2020-02-25 北京知道创宇信息技术股份有限公司 Method and device for manufacturing firmware differential upgrade package and readable storage medium
CN110928570A (en) * 2019-11-27 2020-03-27 北京知道创宇信息技术股份有限公司 Firmware upgrading method and device and readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ONDREJ KACHMAN 等: "Optimized differencing algorithm for firmware updates of low-power devices", 《2016 IEEE 19TH INTERNATIONAL SYMPOSIUM ON DESIGN AND DIAGNOSTICS OF ELECTRONIC CIRCUITS & SYSTEMS》 *
方兵兵: "基于STM32的嵌入式软件远程升级研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
李成龙: "基于单片机增量式编码器的分光计设计", 《大学物理实验》 *
陈文斌 等: "基于分散加载技术的单片机增量升级程序设计", 《无线互联科技》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306540A (en) * 2020-11-05 2021-02-02 重庆科技学院 Multi-project independent compiling method, system, terminal and medium
CN112306539A (en) * 2020-11-05 2021-02-02 重庆科技学院 Method, system, terminal and medium for developing application layer of single chip microcomputer
CN112306539B (en) * 2020-11-05 2023-08-01 重庆科技学院 Development method, system, terminal and medium for SCM application layer

Also Published As

Publication number Publication date
CN111552503B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN108363587B (en) Application program operation monitoring method and device, computer equipment and storage medium
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN110119352A (en) UI adjustment method, device, computer equipment and the storage medium of application program
CN111061475B (en) Software code generating method, device, computer equipment and storage medium
CN109800404A (en) Electronic contract template generation method, device, computer equipment and storage medium
CN109871500A (en) Page loading method, device, computer equipment and storage medium
CN111552503B (en) Project file processing method and device, computer equipment and storage medium
CN104603750A (en) Layout and execution of software applications using BPRAM
CN104583948A (en) Layout and execution of operating systems using BPRAM
CN111459541B (en) Application program packaging method and device, computer equipment and storage medium
CN112650487B (en) Hybrid application development method, system, computer device and storage medium
CN111414377B (en) Method, device and storage medium for processing structured query statement
CN100507871C (en) Method and system for testing embedded file system
CN111008522A (en) Automatic article writing method and device, computer equipment and storage medium
CN111079062A (en) Page creating method and device, electronic equipment and storage medium
CN112486828A (en) Test case generation method and device, computer equipment and storage medium
CN104699503A (en) Method and device for replacing function execution logic in Android system
CN111008022B (en) Relationship diagram generation method, device, computer equipment and storage medium
US8196093B2 (en) Apparatus and method for componentizing legacy system
CN111045707A (en) Method and device for updating small program, computer equipment and storage medium
CN107688456A (en) Document generating method, equipment and computer-readable recording medium
CN110806891B (en) Method and device for generating software version of embedded device
CN111079382A (en) Form rendering method and system based on MVVM (multifunction virtual machine) mode

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant