Method for designing program downloader and program downloader system

文档序号:1215265 发布日期:2020-09-04 浏览:15次 中文

阅读说明:本技术 用于设计程序下载器的方法和程序下载器系统 (Method for designing program downloader and program downloader system ) 是由 马传宝 杨玉良 李占坤 刘春芳 熊雪峰 于 2019-02-28 设计创作,主要内容包括:本发明涉及电子信息技术,具体涉及用于设计程序下载器的方法、程序下载器系统、实现该方法的计算机设备和计算机可读存储介质。按照本发明一个方面的用于设计程序下载器的方法包含下列步骤:根据下载端口的属性将所述下载端口分类;基于所述分类结果组合所述下载端口以将其集成在同一程序下载器中;以及基于所述下载端口的形式设计相应的接插头。(The present invention relates to electronic information technology, and more particularly, to a method for designing a program downloader, a program downloader system, a computer device implementing the method, and a computer-readable storage medium. A method for designing a program downloader according to an aspect of the present invention comprises the steps of: classifying the download ports according to their attributes; combining the download ports based on the classification results to integrate them in the same program downloader; and designing a corresponding plug based on the form of the download port.)

1. A method for designing a program downloader, comprising the steps of:

classifying the download ports according to their attributes;

combining the download ports based on the classification results to integrate them in the same program downloader; and

and designing a corresponding plug based on the form of the download port.

2. The method of claim 1, wherein the attributes of the download port include one or more of: quantity, type, operating conditions and frequency of use.

3. The method of claim 1, wherein the combination comprises one or more of: the combination of all-in-one for different download ports in different processors, the combination of all-in-one for specific conditions, the combination of all-in-one for different download ports in the same processor, and the combination of all-in-one for frequency of use.

4. A program downloader system, comprising:

an emulator interface module connected to an emulator for communicatively coupling the emulator with the program downloader system;

a signal integration module connected to the emulator interface module for receiving signals from the emulator interface module; and

a processor interface module connected to the signal integration module to receive the signal from the signal integration module and transmit the signal to a processor.

5. The system of claim 4, wherein the emulator interface module is configured to classify download ports according to their number, type, behavior, and frequency of use and combine the download ports based on the classification results to integrate them in the same program downloader system.

6. The system of claim 5, wherein the combination comprises one or more of: the combination of all-in-one for different download ports in different processors, the combination of all-in-one for specific conditions, the combination of all-in-one for different download ports in the same processor, and the combination of all-in-one for frequency of use.

7. The system of claim 4, wherein the emulator interface module is further configured to design a corresponding plug based on a form of the download port.

8. The system of any of claims 4 to 7, wherein the program downloader system is communicatively coupled with a processor.

9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement:

a method for designing a program downloader according to any one of claims 1 to 3.

10. A computer-readable storage medium on which a computer program is stored, the program being executable by a processor to perform:

a method for designing a program downloader according to any one of claims 1 to 3.

Technical Field

The present invention relates to electronic information technology, and more particularly, to a method for designing a program downloader, a program downloader system, a computer device implementing the method, and a computer-readable storage medium.

Background

With the rapid development of electronic information technology, various single-core or multi-core processor chips are layered in a large number. Due to the different internal structures and programming software used in various processors, the downloading modes are diversified, and the diversity is mainly reflected in the following aspects: different processors use different download ports; and the same processor has a number of different forms of download ports.

The above-mentioned diversity of the download port causes technicians to prepare various downloaders in the process of programming and debugging, which increases the debugging cost and the complexity of the work.

Disclosure of Invention

To achieve one or more of the above objects, the present invention provides the following technical solutions.

According to a first aspect of the present invention, there is provided a method for designing a program downloader, comprising the steps of: classifying the download ports according to their attributes; combining the download ports based on the classification results to integrate them in the same program downloader; and

and designing a corresponding plug based on the form of the download port.

According to an embodiment of the invention, the method for designing the program downloader comprises the following steps of: quantity, type, operating conditions and frequency of use.

A method for designing a program downloader according to another embodiment of the invention or any of the embodiments above, wherein the combination comprises one or more of the following: the combination of all-in-one for different download ports in different processors, the combination of all-in-one for specific conditions, the combination of all-in-one for different download ports in the same processor, and the combination of all-in-one for frequency of use.

According to a second aspect of the present invention, there is provided a program downloader system comprising: an emulator interface module connected to an emulator for communicatively coupling the emulator with the program downloader system; a signal integration module connected to the emulator interface module for receiving signals from the emulator interface module; and a processor interface module connected to the signal integration module to receive the signal from the signal integration module and transmit the signal to a processor.

The program downloader system according to an embodiment of the second aspect of the invention, wherein the emulator interface module is configured to classify download ports according to their number, kind, condition and frequency of use and combine the download ports based on the classification result to be integrated in the same program downloader system.

The program downloader system according to an embodiment of the second aspect of the invention or any of the embodiments above, wherein the combination comprises one or more of: the combination of all-in-one for different download ports in different processors, the combination of all-in-one for specific conditions, the combination of all-in-one for different download ports in the same processor, and the combination of all-in-one for frequency of use.

The program downloader system according to an embodiment of the second aspect of the invention or any of the embodiments above, wherein the emulator interface module is further configured to design a respective patch plug based on the form of the download port.

The program downloader system according to an embodiment of the second aspect of the invention or any of the embodiments above, wherein the program downloader system is communicatively coupled to the processor.

According to a third aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method for designing a program downloader as described in any one of the embodiments of the first aspect of the present invention.

According to a fourth aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program, wherein the program is capable, when executed by a processor, of implementing a method for designing a program downloader according to any of the embodiments of the first aspect of the present invention.

According to an aspect of the present invention, the method for designing a program downloader as described above may be adopted, and the method may multiplex download ports of various downloaders (e.g., single-core or multi-core processors such as MCU, DSP, etc.) based on similarity of internal software and hardware configurations, so as to avoid waste of resources and reduce complexity of work. In addition, corresponding plug is designed based on the interface forms of various download ports, so that the plug is convenient for a user to plug and unplug.

Other features and advantages of the methods and systems of the present invention will be more particularly apparent from or elucidated with reference to the drawings described herein, and the following detailed description of the embodiments used to illustrate certain principles of the invention.

Drawings

The above and/or other aspects and advantages of the present invention will become more apparent and more readily appreciated from the following description of the various aspects taken in conjunction with the accompanying drawings, in which like or similar elements are designated with like reference numerals. The drawings comprise:

FIG. 1 is a flowchart of a method for designing a program downloader according to an embodiment of the invention.

Fig. 2 is a schematic diagram of a program downloader system according to an embodiment of the invention.

Fig. 3a to 3d are schematic diagrams of a program downloader system according to an embodiment of the present invention.

FIG. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention.

Detailed Description

In this specification, the invention is described more fully with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. This invention may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. The embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

Words such as "comprising" and "comprises" mean that, in addition to having elements or steps which are directly and explicitly stated in the description, the solution of the invention does not exclude other elements or steps which are not directly or explicitly stated. Terms such as "first" and "second" do not denote an order of the elements in time, space, size, etc., but rather are used to distinguish one element from another.

The present invention is described below with reference to flowchart illustrations, block diagrams, and/or flow diagrams of methods and systems according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block and/or flow diagram block or blocks.

These computer program instructions may be stored in a computer-readable memory that can direct a computer or other programmable processor to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer program instructions may be loaded onto a computer or other programmable data processor to cause a series of operational steps to be performed on the computer or other programmable processor to produce a computer implemented process such that the instructions which execute on the computer or other programmable processor provide steps for implementing the functions or acts specified in the flowchart and/or block diagram block or blocks. It should also be noted that, in some alternative implementations, the functions/acts noted in the blocks may occur out of the order noted in the flowcharts. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved.

FIG. 1 is a flowchart of a method for designing a program downloader according to an embodiment of the invention.

As shown in fig. 1, in step 110, the download ports are classified according to their attributes. Optionally, the attributes of the download port include one or more of the following: quantity, type, operating conditions and frequency of use. Thereafter, step 120 is entered.

In step 120, the download ports are combined based on the classification result to be integrated in the same program downloader, wherein the combination mode comprises one or more of the following items: the combination of all-in-one for different download ports in different processors, the combination of all-in-one for specific conditions, the combination of all-in-one for different download ports in the same processor, and the combination of all-in-one for frequency of use. By way of example, two, three, etc. of the download ports (e.g., JTAG, SWD, DAP, ST-Link, etc. ports with similar functions) with high frequency of use may be grouped, or combined in multiple for different specific conditions and specific requirements, or combined in multiple for the same processor. Thereafter, step 130 is entered.

In step 130, a corresponding plug is designed based on the form of the download port. The form is associated with the combination in step 120.

Fig. 2 is a schematic diagram of a program downloader system according to an embodiment of the invention.

As shown in FIG. 2, the program downloader system 20 includes an emulator interface module 210 connected to the emulator for communicatively coupling the emulator with the program downloader system to functionally ensure that signals are communicatively transmitted between the emulator and the program downloader system; a signal integration module 220 connected to the simulator interface module 210 for receiving signals from the simulator interface module 210; and a processor interface module 230 connected to the signal integration module to receive the signal from the signal integration module and transmit the signal to a processor.

Specifically, the signal integration module 220 is configured to connect the simulator interface module 210 and the processor interface module 230, so as to collect signals received by the simulator interface module 210 from the simulator, and group and integrate the signals according to the requirements of specific conditions and devices, so as to multiplex the functional ports capable of being multiplexed according to the specific requirements of the specific conditions and devices, and simultaneously ensure that the signals are accurately transmitted to the processor interface module 230. The processor interface module 230 is used to connect the program downloader system 20 to the processor to functionally ensure that signals are communicated prior to the processor and the program downloader system 20. Optionally, the program downloader system 20 is communicatively coupled to the processor, and the coupling may be a wired connection, a wireless connection, or any other connection that enables reliable communication of signals.

Fig. 3a to 3d are schematic diagrams of a program downloader system according to an embodiment of the present invention. Based on the classification and combination for the download ports described in fig. 1, as an example, fig. 3a shows an all-in-one combination for different download ports in different processors, fig. 3b shows an all-in-one combination for a specific condition, fig. 3c shows an all-in-one combination for different download ports in the same processor, and fig. 3d shows an all-in-one combination for different download ports with higher frequency of use.

In fig. 3a, different download ports (e.g., JTAG, SWD, DAP, ST-Link, etc. with similar functions) of various processors are combined into one of two, three, four, etc. in a signal integration circuit according to specific requirements of operating conditions and devices, and signals are accurately transmitted to an output interface. In fig. 3b, different download ports (e.g., JTAG, SWD, DAP, ST-Link, etc. with similar functions) of various processors are combined into a signal integration circuit in a two-in-one, three-in-one, four-in-one, and so on for specific conditions, and simultaneously, signals are ensured to be accurately transmitted to the output interface. In fig. 3c, different ports of the same processor are combined into one of two-in-one, three-in-one, four-in-one, and so on in the signal integration circuit, and the signals are accurately transmitted to the output interface. In fig. 3d, the download port with higher frequency of use is combined into two-in-one, three-in-one, four-in-one, and so on in the signal integration circuit, and meanwhile, the signal is ensured to be accurately transmitted to the output interface.

FIG. 4 is a schematic block diagram of a computer device 40 according to an embodiment of the present invention. The computer device 40 comprises a memory 410, a processor 420 and a computer program 430 stored on said memory 410 and executable on said processor 420. The processor 420 runs the program to implement the method for designing a program downloader described above.

According to a further aspect of the present invention, there is also provided a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the above-mentioned method for designing a program downloader.

According to the method for designing the program downloader, the concept of multiplexing the download ports is provided, and the download ports are multiplexed based on the similarity of the software and hardware structures of the program downloader, so that the waste of resources is avoided, and the complexity of the work of technicians is reduced.

The embodiments and examples set forth herein are presented to best explain the embodiments in accordance with the present technology and its particular application and to thereby enable those skilled in the art to make and utilize the invention. However, those skilled in the art will recognize that the foregoing description and examples have been presented for the purpose of illustration and example only. The description as set forth is not intended to cover all aspects of the invention or to limit the invention to the precise form disclosed.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:通用串行总线装置及其数据传输方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!