CN110609690A - Burning acceleration method of burner - Google Patents

Burning acceleration method of burner Download PDF

Info

Publication number
CN110609690A
CN110609690A CN201910822134.4A CN201910822134A CN110609690A CN 110609690 A CN110609690 A CN 110609690A CN 201910822134 A CN201910822134 A CN 201910822134A CN 110609690 A CN110609690 A CN 110609690A
Authority
CN
China
Prior art keywords
data
burner
chip
packet
burning
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.)
Pending
Application number
CN201910822134.4A
Other languages
Chinese (zh)
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.)
Zhuhai Core Semiconductor Co Ltd
Original Assignee
Zhuhai Core Semiconductor Co Ltd
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 Zhuhai Core Semiconductor Co Ltd filed Critical Zhuhai Core Semiconductor Co Ltd
Priority to CN201910822134.4A priority Critical patent/CN110609690A/en
Publication of CN110609690A publication Critical patent/CN110609690A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Abstract

A burning acceleration method of a burner comprises the following steps: 110, the burner prepares a first packet of data; 111, the burner sends the first packet of data; 112, caching the first packet data by the chip; 114, the burner determines whether the cache is completed, if yes, step 115 is entered, and if no, step 112 is returned; 115, the burner prepares the next packet data; 116, the burner determines whether the last packet of data is prepared, if so, go to step 121, and if not, go to step 117; 117, the burner sends the next packet of data; 118, the chip caches the next packet of data and burns the last packet of data; 120, the burner judges whether the caching and burning are finished, if so, returns to the step 115, and if not, returns to the step 118; 121, the burner sends the last packet of data; 122, caching the last packet of data by the chip, and burning the last packet of data; 124, the burner determines whether the caching and burning are completed, if yes, go to step 125, if no, go back to step 122; 125, burning the last packet of data by the chip; the invention accelerates the burning speed of the burner.

Description

Burning acceleration method of burner
All as the field of technology
The invention relates to the technical field of burner burning, in particular to a burning acceleration method of a burner.
All the above-mentioned background techniques
A burner, also called Programmer (Programmer), is a tool for writing data on a programmable integrated circuit, and is mainly used for programming (or writing) chips such as a single chip microcomputer (including an embedded system)/a memory (including a BIOS). The general burning process of the burner is as follows: the method includes the steps that a recorder sends a whole erasing command, a chip carries out whole erasing, the recorder sends a burning command, the chip enters a burning mode, the recorder sends a packet of data, the chip carries out burning, the recorder waits for the completion of burning, the burning of the previous packet is completed, the recorder prepares the next packet of data, the recorder sends the next packet of data, the chip carries out burning, the recorder waits for the completion of burning, the recorder sends all the data, the data are verified, and the burning result is displayed.
For example, the invention patent application with publication number CN 105955764 a discloses an improved method for burning an IAP serial port program of an STM32 singlechip, which comprises the following steps: after the singlechip is powered on, initializing DMA (direct memory access) controllers and serial port resources of the singlechip; after receiving an application program upgrading request of a user, executing the following steps by the program, otherwise, jumping to the last step; opening a DMA controller switch, and transmitting data to the memory by DMA when the serial port has data; when the DMA finishes data transmission, generating transmission completion interruption, informing a CPU (central processing unit), writing the data in the memory into Flash by the CPU, enabling the DMA to continue data transmission by the CPU, and circulating the steps; when the serial port finishes transmitting data, the serial port generates an idle interrupt to inform the CPU, the CPU writes the last received data into a flash memory in an interrupt function, and closes a DMA interrupt controller; jumping to the program; and an application program function inlet starts to execute the application program.
As shown in fig. 1, although the technical solution disclosed in the above patent can realize the burning, after the burner sends the previous packet of data to the chip, the burner must send the next packet of data to the chip after the previous packet of data is burned on the chip, and the burning speed of the burner is low.
All the contents of the invention
The first objective of the present invention is to provide a burning acceleration method for a burner, which accelerates the burning speed of the burner.
In order to achieve the first object, the invention adopts a technical scheme as follows:
a burning acceleration method of a burner is used for accelerating the burning speed of the burner; the burning acceleration method of the burner comprises the following steps:
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
and S125, burning the last packet of data by the chip.
Further, the step S125 is followed by the following steps:
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S132 is entered, and if not, step S125 is returned to;
s132, the burning is successful, and the burning operation is quitted.
Further, the step S125 is followed by the following steps:
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S128 is entered, and if not, step S125 is returned to;
s128, sending a checking instruction to the chip;
s129, the chip receives the verification instruction sent by the burner and verifies the burning result;
s130, the chip sends the verification result to the burner;
s131, the burner judges whether the verification passes, if so, the step S132 is executed, and if not, the step S133 is executed;
s133, the burning operation is quitted after the burning fails.
Further, the step S108 is preceded by the following steps:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
and S103, the chip receives the power-on instruction sent by the burner and executes power-on operation.
Further, the step S108 is preceded by the following steps:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
s103, the chip receives a power-on instruction sent by the burner and executes power-on operation;
s104, the burner sends a whole erasing command to the chip;
s105, the chip receives a full-chip erasing command sent by the burner and performs full-chip erasing;
s106, the chip sends the whole erasing result to the burner;
s107, the recorder receives the whole chip erasing result sent by the chip and judges whether the whole chip erasing is successful, if so, the step S108 is executed, and if not, the step S133 is executed; s133, the burning operation is quitted after the burning fails.
In order to achieve the first object, the invention adopts another technical scheme as follows:
a burning acceleration method of a burner comprises the following steps:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
s103, the chip receives a power-on instruction sent by the burner and executes power-on operation;
s104, the burner sends a whole erasing command to the chip;
s105, the chip receives a full-chip erasing command sent by the burner and performs full-chip erasing;
s106, the chip sends the whole erasing result to the burner;
s107, the recorder receives the whole chip erasing result sent by the chip and judges whether the whole chip erasing is successful, if so, the step S108 is executed, and if not, the step S133 is executed;
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
s125, burning the last packet of data by the chip;
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S128 is entered, and if not, step S125 is returned to;
s128, sending a checking instruction to the chip;
s129, the chip receives the verification instruction sent by the burner and verifies the burning result;
s130, the chip sends the verification result to the burner;
s131, the burner judges whether the verification passes, if so, the step S132 is executed, and if not, the step S134 is executed;
s132, recording successfully, and quitting the recording operation;
s133, the burning operation is quitted after the burning fails.
As a specific implementation, the chip adopts a DMA double-cache acceleration mechanism; and the chip receives the data sent by the burner in a DMA mode.
A second object of the present invention is directed to a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a microcontroller and to carry out the above-mentioned method steps.
A third object of the present invention is to provide a burner, comprising: a microcontroller and a memory; wherein the memory stores a computer program adapted to be loaded by the microcontroller and to perform the above-mentioned method steps.
The invention has the beneficial effects that:
according to the technical scheme, the burner can accelerate the burning speed of the burner by burning the previous packet of data while the chip caches the next packet of data. Furthermore, the invention ensures that all the data to be burned are burned by confirming that the burning of the last packet of data is completed and displaying that the burning is completed. Furthermore, the burning result after burning is finished is checked, and the success of burning is displayed after the checking is passed. Furthermore, the invention supplies power to the chip by electrifying the burner. Furthermore, the invention ensures that only the data to be burned is written in the chip by carrying out the whole erasing operation before the burning of the chip.
Description of the drawings
In order to more clearly illustrate the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. The drawings in the following description are only embodiments of the invention and other drawings may be derived from those drawings by a person skilled in the art without inventive effort.
FIG. 1 is a timing chart of a recording method of a recorder according to the prior art;
FIG. 2 is a diagram of an exemplary system architecture provided by an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for accelerating recording of a recorder according to an embodiment of the present invention;
FIG. 4 is a timing chart of the method for accelerating the writing process of the writer according to an embodiment of the present invention.
(specific embodiments) in all cases
The present invention will be described in detail below with reference to the accompanying drawings.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Figure 2 shows an exemplary system architecture 100 that can be applied to the burner burning method of the burner of the present application.
As shown in fig. 2, the system architecture 100 may include an upper computer 101, a burner 102, and a chip 103. The upper computer 101 and the burner 102 communicate with each other through a communication link, and the type of the communication link may be a wireless communication link or a wired communication link, for example: the wired communication link includes an optical fiber, a twisted pair wire, or a coaxial cable, and the WIreless communication link includes a bluetooth communication link, a WIreless-FIdelity (Wi-Fi) communication link, or a microwave communication link, etc.
The burner 102 includes a microcontroller, a memory, a chip socket, a display and a communication interface, the chip socket is used for inserting the chip 103 to be burned, and the display is used for displaying information such as the burning progress, the chip type and the burning state of the chip 103 to be burned. The upper computer 101 communicates with the burner 102 through a communication interface, for example: the upper computer 101 and the burner 102 are communicated through an RS232 interface; the memory comprises a flash memory, and the memory can be connected with the processor of the burner through the SPI.
In this embodiment, in addition to a Flash Memory (Flash), the Memory further adopts a dma (direct Memory access) double-cache mechanism, and further includes a first cache area BUF1 and a second cache area BUF 2.
The upper computer 101 can be a computer, and can also be provided with a display device, and the display of the display device can be various devices capable of realizing the display function; for example: the display device may be a Cathode ray tube (Cathode ray tube, CR) display, a Light-emitting diode (LED) display, an electronic ink screen, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), or the like.
Referring to fig. 3, a flow chart of a method for accelerating burning of a burner is provided in an embodiment of the present application. As shown in fig. 3, the method of the embodiment of the present application may include the steps of:
s101, electrifying a burner;
after detecting a power-on instruction, the burner 101 is powered on, and executes an initialization process to complete the initialization process;
s102, the burner sends a power-on instruction to the chip;
s103, the chip receives a power-on instruction sent by the burner and executes power-on operation;
the burner 102 sends a power-on instruction to the chip 103, wherein the power-on instruction is used for instructing the chip 103 to execute a power-on operation and provide a voltage signal for each pin of the chip 103, namely after the burner 102 is powered on, the chip 103 is powered on;
s104, the burner sends a whole erasing command to the chip;
s105, the chip receives a full-chip erasing command sent by the burner and performs full-chip erasing;
s106, the chip sends the whole erasing result to the burner;
s107, the recorder receives the whole chip erasing result sent by the chip and judges whether the whole chip erasing is successful, if so, the step S108 is executed, and if not, the step S133 is executed;
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
wherein, the first packet data selects one of the first buffer BUF1 or the second buffer BUF2 for buffering;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
the memory also adopts a DMA double-cache mechanism, and the chip receives data sent by the burner in a DMA mode; the next packet data and the previous packet data are respectively selected from one of the first buffer area BUF1 or the second buffer area BUF2 for caching, namely the next packet data and the previous packet data are respectively selected from different buffer areas for caching, when the chip burns (writes) the previous packet data cached in the first buffer area BUF1 or the second buffer area BUF2 into Flash, the buffer area which does not cache the previous packet data in the first buffer area BUF1 or the second buffer area BUF2 can still be used for caching the next packet data, and the burning efficiency is improved; when the previous packet of data is written into Flash, the cache region which originally caches the previous packet of data can be used for caching the next packet of data of the next packet of data, the next packet of data is written into Flash while the cache region caches the next packet of data of the next packet of data, the cache region which originally caches the next packet of data can be used for caching the next packet of data of the next packet of data, and so on;
in the present embodiment, each packet data is 512byte data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
s125, burning the last packet of data by the chip;
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S128 is entered, and if not, step S125 is returned to;
s128, sending a checking instruction to the chip;
the verification instruction is a bin file verification instruction and is used for verifying the burning result of the chip;
s129, the chip receives the verification instruction sent by the burner and verifies the burning result;
s130, the chip sends the verification result to the burner;
s131, the burner judges whether the verification passes, if so, the step S132 is executed, and if not, the step S134 is executed;
s132, recording successfully, and quitting the recording operation;
s133, the burning operation is quitted after the burning fails.
As shown in fig. 3, in this embodiment, while the burner sends the next packet of data to the chip, the chip writes the previous packet of data into Flash, so as to speed up the burning of the burner.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a microcontroller and executing the method steps in the embodiment shown in fig. 3, and a specific execution process may refer to a specific description of the embodiment shown in fig. 3, which is not described herein again.
The present application further provides a computer program product, in which at least one instruction is stored, and the at least one instruction is loaded and executed by the microcontroller to implement the burn acceleration method of the burner according to the above embodiments.
Example two
The difference between the present embodiment and the first embodiment is that the burn-in acceleration method of the burner includes the following steps:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
s103, the chip receives a power-on instruction sent by the burner, executes power-on operation, and enters step S108;
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
s125, burning the last packet of data by the chip;
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S128 is entered, and if not, step S125 is returned to;
s128, sending a checking instruction to the chip;
s129, the chip receives the verification instruction sent by the burner and verifies the burning result;
s130, the chip sends the verification result to the burner;
s131, the burner judges whether the verification passes, if so, the step S132 is executed, and if not, the step S133 is executed;
s132, recording successfully, and quitting the recording operation;
s133, the burning operation is quitted after the burning fails.
EXAMPLE III
The difference between the present embodiment and the second embodiment is that the burn-in acceleration method of the burner includes the following steps:
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
s125, burning the last packet of data by the chip;
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S128 is entered, and if not, step S125 is returned to;
s128, sending a checking instruction to the chip;
s129, the chip receives a verification instruction sent by the burner;
s130, the chip verifies the burning result and sends the verification result to the burner;
s131, the burner judges whether the verification passes, if so, the step S132 is executed, and if not, the step S133 is executed;
s132, recording successfully, and quitting the recording operation;
s133, the burning operation is quitted after the burning fails.
Example four
The difference between the present embodiment and the first embodiment is that the burn-in acceleration method of the burner includes the following steps:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
s103, the chip receives a power-on instruction sent by the burner and executes power-on operation;
s104, the burner sends a whole erasing command to the chip;
s105, the chip receives a full-chip erasing command sent by the burner and performs full-chip erasing;
s106, the chip sends the whole erasing result to the burner;
s107, the recorder receives the whole chip erasing result sent by the chip and judges whether the whole chip erasing is successful, if so, the step S108 is executed, and if not, the step S133 is executed;
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
s125, burning the last packet of data by the chip;
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S132 is entered, and if not, step S125 is returned to;
132, if the burning is successful, the burning operation is quitted;
133, the burning operation is exited after the burning fails.
EXAMPLE five
The present embodiment is different from the fourth embodiment in that: the burning acceleration method of the burner comprises the following steps:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
s103, the chip receives a power-on instruction sent by the burner and executes power-on operation;
s104, the burner sends a whole erasing command to the chip;
s105, the chip receives a full-chip erasing command sent by the burner and performs full-chip erasing;
s106, the chip sends the whole erasing result to the burner;
s107, the recorder receives the whole chip erasing result sent by the chip and judges whether the whole chip erasing is successful, if so, the step S108 is executed, and if not, the step S133 is executed;
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
s125, burning the last packet of data by the chip, and entering the step S132;
s132, recording successfully, and quitting the recording operation;
s133, the burning operation is quitted after the burning fails.
EXAMPLE six
The difference between this embodiment and the first embodiment or the second embodiment or the third embodiment or the fourth embodiment is that: the burning acceleration method of the burner comprises the following steps:
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
and S125, burning the last packet of data by the chip.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.

Claims (9)

1. A burning acceleration method of a burner is characterized by comprising the following steps:
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
and S125, burning the last packet of data by the chip.
2. The burning acceleration method of a burner according to claim 1, wherein the step S125 is followed by the steps of:
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S132 is entered, and if not, step S125 is returned to;
s132, the burning is successful, and the burning operation is quitted.
3. The burning acceleration method of a burner according to claim 1, wherein the step S125 is followed by the steps of:
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S128 is entered, and if not, step S125 is returned to;
s128, sending a checking instruction to the chip;
s129, the chip receives the verification instruction sent by the burner and verifies the burning result;
s130, the chip sends the verification result to the burner;
s131, the burner judges whether the verification passes, if so, the step S132 is executed, and if not, the step S133 is executed;
s133, the burning operation is quitted after the burning fails.
4. The burning acceleration method for a burner of claim 1, wherein the step S108 is preceded by the steps of:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
and S103, the chip receives the power-on instruction sent by the burner and executes power-on operation.
5. The burning acceleration method for a burner of claim 1, wherein the step S108 is preceded by the steps of:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
s103, the chip receives a power-on instruction sent by the burner and executes power-on operation;
s104, the burner sends a whole erasing command to the chip;
s105, the chip receives a full-chip erasing command sent by the burner and performs full-chip erasing;
s106, the chip sends the whole erasing result to the burner;
s107, the recorder receives the whole chip erasing result sent by the chip and judges whether the whole chip erasing is successful, if so, the step S108 is executed, and if not, the step S133 is executed; s133, the burning operation is quitted after the burning fails.
6. A burning acceleration method of a burner is characterized by comprising the following steps:
s101, electrifying a burner;
s102, the burner sends a power-on instruction to the chip;
s103, the chip receives a power-on instruction sent by the burner and executes power-on operation;
s104, the burner sends a whole erasing command to the chip;
s105, the chip receives a full-chip erasing command sent by the burner and performs full-chip erasing;
s106, the chip sends the whole erasing result to the burner;
s107, the recorder receives the whole chip erasing result sent by the chip and judges whether the whole chip erasing is successful, if so, the step S108 is executed, and if not, the step S133 is executed;
s108, the burner sends a burning command to the chip;
s109, the chip receives a burning command and prepares for burning;
s110, preparing a first packet of data by a burner;
s111, the burner sends the first packet of data to the chip;
s112, the chip receives the first packet of data sent by the burner and caches the first packet of data;
s113, the chip sends the cache result of the first packet of data to the burner;
s114, the recorder receives the cache result of the first packet data sent by the chip, judges whether the caching of the first packet data is finished or not, if yes, the step S115 is executed, and if not, the step S112 is executed again;
s115, the burner prepares the next packet data;
s116, the burner judges whether the last packet of data is prepared, if so, the step S121 is executed, and if not, the step S117 is executed;
s117, the burner sends the next packet of data to the chip;
s118, the chip receives the next packet of data sent by the burner, caches the next packet of data and simultaneously burns the previous packet of data;
s119, the chip sends the cache result of the next packet of data and the burning result of the previous packet of data to the burner;
s120, the burner receives the cache result of the next packet of data and the burning result of the previous packet of data sent by the chip, judges whether the caching of the next packet of data and the burning of the previous packet of data are finished, if so, returns to the step S115, and if not, returns to the step S118;
s121, the burner sends the last packet of data to the chip;
s122, the chip receives the last packet of data sent by the burner, caches the last packet of data and simultaneously burns the last packet of data of the last packet of data;
s123, the chip sends the cache result of the last packet of data and the burning result of the last packet of data to the burner;
s124, the burner receives the cache result of the last packet of data and the burning result of the last packet of data sent by the chip, and determines whether the caching of the last packet of data and the burning of the last packet of data are completed, if yes, step S125 is entered, and if not, step S122 is returned to;
s125, burning the last packet of data by the chip;
s126, the chip sends the burning result of the last packet of data to the burner;
s127, the burner receives the burning result of the last packet of data sent by the chip, and determines whether the burning of the last packet of data is completed, if yes, step S128 is entered, and if not, step S125 is returned to;
s128, sending a checking instruction to the chip;
s129, the chip receives the verification instruction sent by the burner and verifies the burning result;
s130, the chip sends the verification result to the burner;
s131, the burner judges whether the verification passes, if so, the step S132 is executed, and if not, the step S134 is executed;
s132, recording successfully, and quitting the recording operation;
s133, the burning operation is quitted after the burning fails.
7. The burning acceleration method of the burner according to any of the claims 1-6, characterized in that the chip employs DMA double-cache acceleration mechanism; and the chip receives the data sent by the burner in a DMA mode.
8. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a microcontroller and to perform the method steps according to any one of claims 1 to 7.
9. A burner, comprising: a microcontroller and a memory; wherein the memory stores a computer program adapted to be loaded by the microcontroller and to perform the method steps according to any of claims 1 to 7.
CN201910822134.4A 2019-08-30 2019-08-30 Burning acceleration method of burner Pending CN110609690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910822134.4A CN110609690A (en) 2019-08-30 2019-08-30 Burning acceleration method of burner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910822134.4A CN110609690A (en) 2019-08-30 2019-08-30 Burning acceleration method of burner

Publications (1)

Publication Number Publication Date
CN110609690A true CN110609690A (en) 2019-12-24

Family

ID=68891170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910822134.4A Pending CN110609690A (en) 2019-08-30 2019-08-30 Burning acceleration method of burner

Country Status (1)

Country Link
CN (1) CN110609690A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857742A (en) * 2020-06-05 2020-10-30 珠海市运泰利自动化设备有限公司 Method for burning STM32 single chip microcomputer in serial port under apple computer OS X system
CN112416376A (en) * 2020-11-20 2021-02-26 上海东软载波微电子有限公司 Chip burning method, burning equipment, chip and system
CN113094058A (en) * 2021-04-12 2021-07-09 上海磐启微电子有限公司 Point-to-point wireless protocol control method applied to wireless burning

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991731A (en) * 2005-12-26 2007-07-04 鸿富锦精密工业(深圳)有限公司 Chip burn-recording system
CN106201617A (en) * 2016-07-14 2016-12-07 青岛歌尔声学科技有限公司 A kind of method and system of burning memorizer
CN106933603A (en) * 2015-12-29 2017-07-07 深圳市博巨兴实业发展有限公司 A kind of method of burning chip, device and microcontroller
US20190259340A1 (en) * 2017-12-08 2019-08-22 Chengdu Boe Optoelectronics Technology Co., Ltd. Data burning method and data burning device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991731A (en) * 2005-12-26 2007-07-04 鸿富锦精密工业(深圳)有限公司 Chip burn-recording system
CN106933603A (en) * 2015-12-29 2017-07-07 深圳市博巨兴实业发展有限公司 A kind of method of burning chip, device and microcontroller
CN106201617A (en) * 2016-07-14 2016-12-07 青岛歌尔声学科技有限公司 A kind of method and system of burning memorizer
US20190259340A1 (en) * 2017-12-08 2019-08-22 Chengdu Boe Optoelectronics Technology Co., Ltd. Data burning method and data burning device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857742A (en) * 2020-06-05 2020-10-30 珠海市运泰利自动化设备有限公司 Method for burning STM32 single chip microcomputer in serial port under apple computer OS X system
CN112416376A (en) * 2020-11-20 2021-02-26 上海东软载波微电子有限公司 Chip burning method, burning equipment, chip and system
CN113094058A (en) * 2021-04-12 2021-07-09 上海磐启微电子有限公司 Point-to-point wireless protocol control method applied to wireless burning
CN113094058B (en) * 2021-04-12 2023-10-31 上海磐启微电子有限公司 Point-to-point wireless protocol control method applied to wireless burning

Similar Documents

Publication Publication Date Title
CN110609690A (en) Burning acceleration method of burner
CN105573743B (en) Chip burning system and method and electronic equipment
CN104915237B (en) Upgrading, upgrade control method and the equipment of bluetooth equipment firmware program
US5978591A (en) Personal information device and method for downloading reprogramming data from a computer to the personal information device via the PCMCIA port or through a docking station with baud rate conversion means
CN106648803A (en) Online upgrading method for DSP chip
US6842858B2 (en) Mechanism for updating firmware of an electronic device
CN110597542B (en) Software automatic OTA (over the air) upgrading method and device and electronic equipment
US20040153778A1 (en) Method, system and software for configuring a graphics processing communication mode
CN113950808B (en) MODBUS system with real and virtual slave addresses and slave sensors
CN106406967A (en) STM32-based USB online upgrade method and system
CN107678765A (en) A kind of online upgrading method based on C8051F series monolithics
US20150058828A1 (en) Plc simulation system, plc simulator, recording medium, and simulation method
CN110597675B (en) Chip testing method, device, storage medium and burner
CN107844374A (en) The task executing method of terminal device, device, electronic equipment, storage medium
JP6619765B2 (en) Game machine
EP1635242A2 (en) Password verification system
CN105740015A (en) Upgrade method for firmware of HMD device
CN107404535A (en) The distal end upgrade method and device of equipment
CN110795112A (en) Multi-channel IC burning method, device and system
US5964890A (en) System call issue method and debug system
CN110457058A (en) Control node online upgrading method, apparatus, host computer, system and electronic equipment
CN106648697B (en) Method for lighting terminal and method for automatically controlling terminal
CN110377358A (en) Coprocessor firmware dynamic loading method, system, equipment and storage medium
CN115964067A (en) Method and device for realizing product upgrading based on infrared transmission and related components
CN109344096A (en) A kind of method, apparatus, equipment and storage medium connecting external equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191224