CN115469812A - Waiting time setting method based on firmware burning and burning system - Google Patents

Waiting time setting method based on firmware burning and burning system Download PDF

Info

Publication number
CN115469812A
CN115469812A CN202211189220.4A CN202211189220A CN115469812A CN 115469812 A CN115469812 A CN 115469812A CN 202211189220 A CN202211189220 A CN 202211189220A CN 115469812 A CN115469812 A CN 115469812A
Authority
CN
China
Prior art keywords
firmware
memory
burning
speed
waiting time
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
CN202211189220.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 Amicro Semiconductor Co Ltd
Original Assignee
Zhuhai Amicro 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 Amicro Semiconductor Co Ltd filed Critical Zhuhai Amicro Semiconductor Co Ltd
Priority to CN202211189220.4A priority Critical patent/CN115469812A/en
Publication of CN115469812A publication Critical patent/CN115469812A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Read Only Memory (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a waiting time setting method and a burning system based on firmware burning, wherein an execution main body of the waiting time setting method is a burning tool; the waiting time is configured in the burning tool; the waiting time setting method comprises the following steps: when the target firmware is started to be burned, the waiting time is set according to the burning speed of the firmware which is burned in advance in the memory so as to adapt to the performance of the memory. The burning system comprises a burning tool and a memory, wherein the burning tool is configured to execute the waiting time setting method.

Description

Waiting time setting method based on firmware burning and burning system
Technical Field
The application relates to the technical field of firmware burning, in particular to a waiting time setting method and a burning system based on firmware burning.
Background
For most burning tools of small And medium-sized embedded systems, a fixed waiting time is generated for the read-write And erase operations required by firmware burning, and most storage media for read-write And erase use NOR (Not Or) FLASH Or NAND (Not And) FLASH. For example, when NORflash is burned, if the time (actually generated operation time) for erasing data, writing data, or reading data exceeds the corresponding waiting time, the burning will be overtime, resulting in a burning failure, and the waiting time is generally an empirical value used for describing the standard time for normal burning of the firmware program of NORflash.
Under the premise that a fixed waiting time is set for a storage device such as FLASH, in the process of burning FLASH memories of various models, as the FLASH memories of different manufacturers have larger performance difference, the actually generated burning time is different in the process of burning FLASH memories of different manufacturers in different models, so that the phenomenon of burning timeout of part of FLASH always exists, and the burning fails.
Disclosure of Invention
In order to overcome the problem of burning timeout caused by performance differences of various memories, the application discloses a waiting time setting method and a burning system based on firmware burning, which can set the waiting time according to the burning speed of firmware in the current memory so as to adapt to the performance of the currently burned memory, and the specific technical scheme comprises the following steps:
the method comprises the steps of setting a waiting time based on firmware burning, wherein an execution main body of the waiting time setting method is a burning tool; the waiting time is configured in the burning tool; the waiting time setting method comprises the following steps: when the target firmware is burned, the waiting time is set according to the burning speed of the pre-burned firmware in the memory so as to adapt to the performance of the memory.
Further, the waiting time setting method specifically includes: s1, burning the reference firmware into a memory, and calculating the burning speed under the burning operation after finishing the burning operation of the reference firmware; then step S2 is executed; s2, when the current target firmware starts to be burned into the memory, calculating the current waiting time under the burning operation according to the capacity of the current target firmware and the pre-calculated burning speed under the burning operation so as to adapt to the performance of the memory; calculating the burning speed under the burning operation after the burning operation of the current target firmware is finished, and updating the burning speed under the currently calculated burning operation to the pre-calculated burning speed under the burning operation; then step S3 is executed; and step S3, when the next target firmware starts to be burnt, updating the next target firmware to the current target firmware, and then returning to execute the step S2.
Further, for the same firmware, the burning operation includes an erasing operation, a writing operation and a reading operation, and accordingly, the burning speed under the burning operation includes an erasing speed, a writing speed and a reading speed, and the burning time of the firmware in the memory includes an erasing time, a writing time and a reading time, so as to represent the time consumed by the burning operation in the same memory partition; for the same firmware, respectively configuring a current waiting time for an erasing operation, a writing operation and a reading operation, and respectively comparing the current waiting time with the consumed time of the burning operation in the same memory partition so as to determine whether the burning tool is burned successfully; the same firmware belongs to the current target firmware or the reference firmware, and the burning process of the same firmware is to execute an erasing operation, then execute a writing operation and finally execute a reading operation.
Further, the step S1 specifically includes: firstly erasing data stored in a test partition of a memory, recording the erasing time of the test partition, then calculating the ratio of the capacity of reference firmware to the erasing time to obtain an average erasing speed, and configuring the average erasing speed as the erasing speed under the erasing operation so as to update the average erasing speed to the pre-calculated erasing speed; after the memory of the test partition is erased, writing the reference firmware into the erased test partition, recording the writing time of the reference firmware, calculating the ratio of the capacity of the reference firmware to the writing time to obtain an average writing speed, and configuring the average writing speed as the writing speed under the writing operation to update the average writing speed to the pre-calculated writing speed; after the reference firmware is written into the erased test partition, reading the reference firmware from the test partition, recording the reading time of the reference firmware, calculating the ratio of the capacity of the reference firmware to the reading time to obtain an average reading speed, and configuring the average reading speed as the reading speed under the reading operation to update the average reading speed to the pre-calculated reading speed; and then, executing the step S2 and determining and calculating the burning speed under the burning operation.
Further, the step S2 specifically includes: the pre-calculated burning speed under the burning operation comprises an erasing speed for the same firmware, a writing speed for the same firmware and a reading speed for the same firmware; when erasing a memory partition matched with the current target firmware in the memory is started, calculating the ratio of the capacity of the current target firmware to the pre-calculated erasing speed to obtain erasing waiting time, and setting the sum of the erasing waiting time and preset error time as the current waiting time under the erasing operation so as to adapt to the performance of the burning tool on the erasing firmware of the memory; after the memory partition matched with the current target firmware in the memory is erased, starting to write the current target firmware into the erased memory partition, calculating the ratio of the capacity of the current target firmware to the pre-calculated writing speed to obtain writing waiting time, and setting the sum of the writing waiting time and the preset error time as the current waiting time under the writing operation so as to adapt to the performance of writing the firmware into the memory; after the current target firmware is written into the erased memory partition, when the current target firmware starts to be read from the memory partition matched with the memory, the ratio of the capacity of the current target firmware to the pre-calculated reading speed is calculated to obtain the reading waiting time, and then the sum of the reading waiting time and the preset error time is set as the current waiting time under the reading operation so as to adapt to the performance of reading the firmware from the memory.
Further, the step S2 further includes: when the memory partition matched with the current target firmware in the memory is erased, recording the erasing time of the current target firmware in the memory partition matched with the current target firmware in the memory; after the matched memory partition of the current target firmware in the memory is erased, calculating the ratio of the capacity of the current target firmware to the erasing time to obtain an average erasing speed, configuring the average erasing speed as the current erasing speed under the erasing operation, and updating the current erasing speed under the erasing operation into the pre-calculated erasing speed; when the current target firmware is written into the erased memory partition, recording the writing time of the current target firmware; after the current target firmware is written into the erased memory partition, calculating the ratio of the capacity of the current target firmware to the writing time to obtain an average writing speed, configuring the average writing speed as the current writing speed under the writing operation, and updating the current writing speed under the writing operation into the pre-calculated writing speed; when the current target firmware is read from the matched memory partition in the memory, recording the reading time of the current target firmware; after the current target firmware is read from the matched memory partition in the memory, calculating the ratio of the capacity of the current target firmware to the reading time to obtain an average reading speed, configuring the average reading speed as the current reading speed under the reading operation, and updating the current reading speed under the reading operation into the pre-calculated reading speed; and then, executing the step S3, and determining to update the currently calculated burning speed under the burning operation to the pre-calculated burning speed under the burning operation.
Further, for the same current target firmware, if the erasing time of the current target firmware recorded in the step S2 in the memory partition matched with the memory in the memory is less than the current waiting time under the erasing operation set in the step S2, the writing time of the current target firmware recorded in the step S2 is less than the current waiting time under the writing operation set in the step S2, and the reading time of the current target firmware recorded in the step S2 is less than the current waiting time under the reading operation set in the step S2, it is determined that the burning time of the current burned target firmware in the memory is less than or equal to the current set waiting time, and it is determined that the current target firmware is successfully burned in the memory.
Further, the current target firmware is different from the test firmware; the current target firmware used for each execution of step S2 is not the same firmware; in the step S2 executed at least twice, there are current target firmware burned into different memory partitions of the memory of the same model, so that the current waiting time of the burning operation calculated in the step S2 executed each time updates the current waiting time of the burning operation calculated in the step S2 executed last time; wherein the reference firmware and the current target firmware are both pre-configured program code; the memory partition matched with the current target firmware in the current burned memory is a pre-configured memory space.
Further, after the currently burned memory is replaced by another memory of the same type, the burning tool re-executes the steps S1 to S3 to calculate the current waiting time under the burning operation and complete the burning of the corresponding target firmware; and when the currently burned memory is replaced by another memory of the same type of another model, the reference firmware and the current target firmware are changed to be matched with the memory of the same type of another model.
The method has the technical effects that compared with the method of judging whether different firmware is successfully burned in the same memory by using fixed waiting time, the method for setting the waiting time calculates the actual burning time and updates the waiting time according to the burning speed of the pre-burned firmware in the memory, realizes the setting of the waiting time according to the read-write performance of the firmware in the current memory so as to adapt to the burning operation of one or more firmware in the currently used memory, reduces the occurrence frequency of the phenomenon that the burning time of the currently burned target firmware in the memory exceeds the currently set waiting time as much as possible in the process of burning a plurality of firmware in the same memory, and improves the success rate of burning various target firmware in the same memory.
Moreover, the method for setting the waiting time disclosed by the application can be compatible with memories of different types of the same type, reduces the probability of recording overtime failure caused by poor support of the memories of different manufacturers or different types on correspondingly recorded firmware, does not need to manually modify the waiting time for being compatible with a new memory of different types, avoids updating the version of a recording tool, and ensures that the currently identified capacity has hardware adaptability to FLASH of different types.
A burning system comprises a burning tool and a memory, wherein the burning tool is configured to execute the waiting time setting method disclosed in the technical scheme and has the same technical effect; the burning tool is used for providing the reference firmware and the current target firmware to burn into the memory in a wired or wireless mode.
Drawings
Fig. 1 is a flowchart of a latency setting method based on firmware burning according to an embodiment of the present disclosure.
Detailed Description
The following describes technical solutions in the embodiments of the present application in detail with reference to the drawings in the embodiments of the present application. It is to be understood that the following precise distinctions are made clear. The specific embodiments described are merely illustrative of the present application and do not delimit the present application.
In a relatively universal burning mode of a factory-test burning tool (including but not limited to a singlechip burning tool and a chip burning test machine), a fixed waiting time is used, corresponding waiting times are set in an erasing operation, a writing operation and a reading operation respectively in the burning implementation process, if the actual consumed time of one operation exceeds the corresponding waiting time, burning fails, wherein the waiting time can also be called as timeout waiting time or upgrade waiting time, the waiting time is represented as delay time for a memory to be burned to normally receive a program instruction, and here can be a time threshold value for representing normal burning of a firmware program, so as to be used for judging whether the burning process of the firmware is normally carried out or not.
However, in the prior art, the waiting time is generally set as a fixed empirical value, and is not limited to the type of the memory to be burned, in one burning implementation mode, an ISP (In-System Programming) divides a firmware program to be downloaded into one block and transmits the block to a single chip, for the single chip, the program to be downloaded transmitted from an upper computer can be received and written into a FLASH memory In one block through an SPI or other serial interface, and a burning tool is configured with a fixed waiting time, so that under the influence of performance differences of storage devices of different manufacturers and different types, a burning timeout failure problem occurs In the process of burning a certain type of FLASH memory.
In order to solve the problem of burning timeout caused by performance difference among memories of different models, the embodiment of the invention discloses a waiting time setting method based on firmware burning; the execution main body of the waiting time setting method is a burning tool which is used for burning the memory and is suitable for memory devices of different manufacturers and different models, wherein the memory devices of different manufacturers and different models are memories with slightly different attributes; the waiting time is configured in the burning tool and is adjusted by the waiting time setting method, so that the waiting time is not fixed in the embodiment, at least not fixed in the same memory which is currently burned, and preferably changes along with the change of the model of the memory which needs to be burned. In this embodiment, the waiting time setting method includes: when the burning tool starts to burn the target firmware, namely when a memory (namely a memory to be burned, also called a current burned memory or a current memory) starts to be burned, the waiting time is set according to the burning speed of the pre-burned firmware in the memory, wherein the setting of the waiting time involves calculating new waiting time to replace the originally configured waiting time, and the burning operation of each firmware can reset the waiting time once to adapt to the performance of the current burned memory, including the performance of the read-write erasing speed, which can be understood as the burning performance of the memory, so that the occurrence frequency of the phenomenon that the burning time of the current burned target firmware in the memory exceeds the currently set waiting time is reduced, the influence caused by performance difference among different memories is overcome, and the burning success rate of the target firmware is improved; in this embodiment, in the process of burning the firmware into the plurality of different memory partitions, the burning speed state information of the memory is continuously calculated to form the read-write performance data of the currently burned memory, and the waiting time is set continuously accordingly to adaptively adjust the waiting time, so as to ensure that the waiting time is always in a state related to the performance of the currently burned memory, and the burning tool keeps updating the waiting time as long as receiving a new firmware, strives for that the actual burning time of the currently burned target firmware in the memory is shorter than the currently set waiting time, and improves the burning success rate of the firmware.
It should be noted that the memory may be NOR (Not Or) FLASH memory Or NAND (Not And) FLASH memory, and the model And the manufacturer of each type of FLASH memory are Not limited; for each memory mentioned above, the above latency setting method is applied and the writing success rate of the correspondingly applied memory is improved. Therefore, compared with the method of using fixed waiting time to judge whether different firmware is successfully burned in the same memory, for each mentioned flash memory, the waiting time setting method disclosed by the embodiment of the invention calculates the actual burning time and sets the waiting time according to the burning speed of the pre-burned firmware in the memory so as to update the previously set waiting time when burning new firmware, realizes the setting of the waiting time according to the reading and writing performance of the firmware in the current memory, adapts to the processes of erasing, writing and reading of one or more firmware in the current memory (one burning process sequentially comprises the erasing, writing and reading), reduces the occurrence of the phenomenon that the burning time of the current burned target firmware in the current memory exceeds the waiting time set in real time, and provides guarantee for improving the success rate of burning various target firmware in the same memory.
As an embodiment, as shown in fig. 1, the method for setting the waiting time specifically includes: step S1, the burning tool burns the reference firmware into a memory, calculates the burning speed under the burning operation after finishing the burning operation of the reference firmware, and records the burning speed under the burning operation; then step S2 is executed; calculation needs to be performed according to the actually consumed time of the burning operation of the reference firmware; preferably, the reference firmware is a firmware to be tested with the smallest capacity in the firmware package to be burned, the reference firmware can be used as a firmware block for testing and used for preliminarily detecting the performance of the current memory, and then the burning speed under the burning operation is obtained through corresponding calculation in step S1 and is used as a reference speed value of the subsequent calculation waiting time; preferably, the memory partition of the reference firmware in the memory may be a basic/minimum unit of memory for an erase operation or a write operation or a read operation of the memory, which is the smallest erasable entity in the memory.
And S2, when the current target firmware starts to be burned into the memory, calculating the current waiting time under the burning operation according to the capacity of the current target firmware and the pre-calculated burning speed under the burning operation, wherein the current target firmware is the target firmware to be tested subsequently relative to the reference firmware, and preferably, the capacity of the current target firmware is greater than that of the reference firmware. When the pre-calculated burning speed under the burning operation is the burning speed under the burning operation calculated in the step S1, the current waiting time under the burning operation calculated in the step S2 is the waiting time set for the first target firmware in the firmware package to be burned in the step S1, and is the initial waiting time relative to all target firmware in the firmware package to be burned, and also belongs to the initial waiting time calculated by the waiting time setting method.
In step S2, calculating a burning speed under the burning operation and recording the calculated burning speed under the burning operation every time the burning tool completes the burning operation of the current target firmware; the burning speed under the burning operation executed in the step S2 needs to be calculated according to the time actually consumed by the burning operation of the current target firmware in the memory, and the currently calculated burning speed under the burning operation is updated to be the pre-calculated burning speed under the burning operation; then step S3 is performed. If the step S2 is executed after the recording operation of the reference firmware is completed, the pre-calculated recording speed under the recording operation, which needs to be updated here, is the recording speed under the recording operation of the reference firmware. If step S2 is repeated after step S2 is executed once, the pre-calculated burning speed under the burning operation that needs to be updated is the last burning speed under the burning operation of the current target firmware. Therefore, when the pre-calculated burning speed under the burning operation is the burning speed under the burning operation calculated in the last execution of the step S2, the current waiting time under the burning operation calculated in the current step S2 is the waiting time set for the currently burned target firmware based on the burning speed of the last burned target firmware in the memory (belonging to the burning speed detected through one actual operation), so that the adaptability of the currently burned target firmware to the performance of the memory is enhanced.
S3, when the next target firmware starts to be burnt, updating the next target firmware into the current target firmware, and then returning to execute the S2; and only after the burning tool finishes the burning operation of the current target firmware, starting to burn the next target firmware into the memory. Preferably, the reference firmware, the current target firmware and the next target firmware may be packaged into one firmware package to be burned into the same memory, and of course, the number of the firmware packages burned into the same memory is not limited to three, and is specifically related to the function of the program code to be burned into the corresponding memory or the number of the target firmware packages to be downloaded by dividing the firmware package. The number of times of repeatedly executing the step S2 is equal to the number of the target firmware to be divided and downloaded by the firmware package, and in the step S3, the step S2 is repeatedly executed until the burning tool burns all the target firmware to be burned into the memory, and then a new firmware package is received, or the memory may be replaced by another memory of the same type.
For step S3, in some embodiments, when a new firmware is started to be burned, it is first determined whether a memory to be burned of the new firmware is different from the memory in step S1, including determining whether a model of the memory and an identifier associated therewith are the same; the memory to be burned by the new firmware differs from the current memory by a different model (such as a different model of NOR flash memory or a different vendor) or type (such as NOR flash memory or NAND flash memory).
When the memory required to be burned of the new firmware is judged to be the same as the memory in the step S1, updating the new firmware into the reference firmware and returning to the step S1; and when the step S1 is executed again, the burning tool burns the new firmware package into the memory required to burn the new firmware.
And when judging that the memory required to be burned by the new firmware is not the same as the memory in the step S1, updating the new firmware to be the current target firmware and returning to execute the step S2, wherein the new firmware is equivalent to the next target firmware.
It should be noted that, the embodiment is applicable to a hardware system configured with FLASH, and no matter embedded FLASH DIE (DIE) or external FLASH memory chip, it is possible to select NOR FLASH memories or NAND FLASH memories of different manufacturers and different models and different capacities in practical scheme application. Each FLASH has its own unique ID (Identity Document) and SFDP table (Serial FLASH recoverable Parameter Serial FLASH memory). For the NOR FLASH memory and the NAND FLASH memory, the FLASH capacity can be directly converted from a certain byte of the ID number, or the capacity can be read from the SFDP table, the read/write performance of the NOR FLASH memories of various models is different, and the read/write performance of the NAND FLASH memories of various models is different, so that the waiting time required for the NOR FLASH memories of various models is different, and the waiting time required for the NAND FLASH memories is also different.
As an embodiment, after the currently burned memory is replaced with another type of memory of the same type, the burning tool re-executes the steps S1 to S3 to calculate the current waiting time under the burning operation and complete the burning of the corresponding target firmware, in the process of re-executing the steps S1 to S3, if the target firmware existing in one firmware package to be burned exceeds one, the steps S2 and S3 need to be repeatedly executed, and the number of times of executing the step S2 is equal to the number of target firmware required to be burned to another type of memory of the same type; the current waiting time under the burning operation is calculated in step S2, and step S3 is executed to start receiving a new target firmware to enter the memory of the same type of another model after the burning operation of the currently calculated target firmware is completed in step S2.
It should be noted that, when the currently burned memory is replaced with another memory of the same type, the memory of the same type of another model is updated to the currently burned memory, and the reference firmware and the current target firmware are both changed to match with the memory of the same type of another model; the effective information carried in each firmware includes a check code and a burning address, and is matched with the currently burned memory, for example, the check code can be recognized by the currently burned memory, and the burning address belongs to a memory partition partitioned by the currently burned memory. Therefore, when the currently burned memory is replaced by another memory of the same type of another model, the memory partition matched with the test partition and the current target firmware in the currently burned memory is also changed, so that the firmware can be indexed to the corresponding memory address of the memory of the same type of another model in the burning process.
In summary, the method for setting the waiting time disclosed by the invention can be compatible with memories of different types and the same type, and reduces the probability of recording overtime failure caused by poor support of different manufacturers or memories of different types on correspondingly recorded firmware. Specifically, under the support of a burning tool, the waiting time setting method disclosed by the invention is suitable for memories of the same type and different models, reduces the phenomenon that the burning time of the currently burned target firmware in the current memory exceeds the waiting time, can measure the read-write performance of the memory of the model by using the burning speed of the firmware in the memory of the same type (the memory with the small attribute difference) of each model, calculates the current waiting time under the burning operation according to the capacity of the current target firmware and the pre-calculated burning speed under the burning operation to adapt to the performance difference among the memories, and obtains the waiting time to promote the current burning of the firmware to develop towards the success direction; the waiting time is not required to be manually modified for being compatible with a new memory with different performances, the version updating of the burning tool is avoided, and the probability of the burning failure phenomenon of the burning tool due to the performance difference of the memory is reduced to a certain extent; even if the burning operation fails, the memory partition specifically corresponding to the burning operation can be used for positioning the partition area with the burning failure so as to find out the failure reason. Furthermore, the method for setting the waiting time disclosed by the invention can be compatible with FLASH memories of different models, and ensures that the currently identified capacity has hardware adaptability to FLASH memories of different models.
On the basis of the above embodiment, the current target firmware is different from the test firmware, if the current target firmware and the test firmware are different, and each target firmware is different from the other target firmware; the current target firmware used each time step S2 is executed is not the same firmware, and if the current target firmware used each time step S2 is executed is burned into the same memory, the current target firmware used each time step S2 is replaced by the current target firmware used in the last execution of step S2. The reference firmware and the current target firmware are pre-configured program codes, the program codes can be regarded as being written into corresponding memory partitions of the storage in groups and support batch transmission in data lines, the minimum capacity of one memory partition is 64Kb, the program codes belong to firmware data, and operating units of data transmission and data storage are arranged under the control of the burning tool.
In the process of executing the waiting time setting method, in step S2 executed at least twice, there are current target firmware that are burned into different memory partitions of a memory of the same model, then in step S2 executed twice adjacently, the current waiting time under the burning operation calculated in step S2 executed later updates the current waiting time under the burning operation calculated in step S2 executed earlier, so that the current waiting time under the burning operation calculated in step S2 executed each time updates the current waiting time under the burning operation calculated in step S2 executed earlier, realizes dynamic adjustment of the current waiting time, and is adapted to the burning operation in step S2 executed at the current time; the same memory which is currently burned is divided into a plurality of memory partitions in advance; and the memory partition matched by the reference firmware in the currently burned memory and the memory partition matched by the current target firmware in the currently burned memory are both pre-configured memory spaces. Therefore, in this embodiment, the waiting time required to be obtained in the step S2 executed at the current time can be adaptively set according to the burning speed obtained in the last time of executing the step S2, so as to reduce the probability of occurrence of the phenomenon that the burning time of the target firmware to be burned in the memory exceeds the currently set waiting time, and thus, complete and correct batch burning of the firmware of the memories of the same type can be realized.
As an embodiment, for the same firmware, the burning operation includes an erasing operation, a writing operation, and a reading operation to form a complete burning operation process, and accordingly, the burning speed under the burning operation disclosed in the step S2 includes an erasing speed, a writing speed, and a reading speed, where the erasing operation corresponds to the erasing speed, the writing operation corresponds to the writing speed, and the reading operation corresponds to the reading speed. The burning time of the firmware in the memory includes an erasing time, a writing time and a reading time to represent the consumed time of the burning operation in the same memory partition, where the erasing time may be a ratio of the capacity of the firmware to the erasing speed, the writing time may be a ratio of the capacity of the same firmware to the writing speed, and the reading time may be a ratio of the capacity of the same firmware to the reading speed.
For the same firmware, respectively configuring a current waiting time for an erasing operation, a writing operation and a reading operation, and respectively comparing the current waiting time with the consumed time of the burning operation in the same memory partition so as to determine whether the burning of the firmware in the memory is successful; specifically, in the erasing operation, the writing operation and the reading operation, if the time consumed by one of the operations in one memory partition is longer than the current waiting time correspondingly configured for the operation, it may be determined that the same firmware is burned in the memory overtime, and it is determined that the burning of the burning tool fails; and when the consumed time of the erasing operation, the writing operation and the reading operation in a memory partition is less than or equal to the current waiting time of the corresponding configuration, determining that the burning of the burning tool is successful, and at least the burning tool does not have a timeout phenomenon in the process of burning the firmware into the memory.
In this embodiment, the same firmware belongs to the current target firmware or the reference firmware, and the burning process of the same firmware is to perform an erasing operation first, so that the formatting of the memory partition of the memory can be realized by erasing data; then executing write operation to store the firmware into the erased partition; finally, executing a reading operation, and judging whether the previously written firmware is consistent with the currently read firmware by reading the erased partition; in order to ensure that the burning is successful, the erasing time needs to be adjusted to be less than the waiting time correspondingly configured for the erasing operation, the writing time needs to be adjusted to be less than the waiting time correspondingly configured for the writing operation, and the reading time needs to be adjusted to be less than the waiting time correspondingly configured for the reading operation.
It should be noted that, a flash memory erasing a partition is to set all bits (bit) to "1" (and all bytes (byte) to FFh), and a minimum erasable entity of a flash memory may be a partition, i.e. a series of blocks (blocks) divided in a flash memory array, and the capacity of a partition is 64Kb at minimum. The embodiment can circularly erase the partition of 64Kb, and can also use the partition with 64Kb as a unit for writing and reading in the subsequent firmware writing process, thereby being suitable for burning scenes.
As an embodiment, the step S1 specifically includes:
the burning tool firstly erases data stored in a test partition of a memory, and records the erasing time of the test partition, namely the time spent from the start of erasing the test partition to the complete erasing of the test partition is timed, wherein the capacity of reference firmware is equal to the capacity of the test partition, and the test partition of the memory is configured to store the reference firmware for burning the reference firmware; then, the burning tool calculates the ratio of the capacity of the reference firmware to the erasing time to obtain an average erasing speed, and in this embodiment, the ratio of the capacity of the reference firmware to the erasing time can be set as the average erasing speed of the memory, wherein the larger the space for one-time erasing is, the faster the average erasing speed is, so as to evaluate the erasing performance of the burning tool on the memory in the state of burning the reference firmware; and configuring the average erasing speed as the erasing speed under the erasing operation to realize updating into the pre-calculated erasing speed, so that the average erasing speed can be conveniently used in the step S2 executed subsequently. In this embodiment, erasing the data stored in the test partition of the memory is equivalent to formatting the test partition, so that the test partition of the memory stores the latest data, and the interference of old data is eliminated.
After the memory of the test partition is erased, writing the reference firmware into the erased test partition, and recording the writing time of the reference firmware, namely, timing the time consumed by the reference firmware from the beginning of writing into the test partition to the complete writing into the test partition, and starting to write from the first byte of the reference firmware to the last byte of the reference firmware; then, calculating a ratio of the capacity of the reference firmware to the write time to obtain an average write speed, where the ratio of the capacity of the reference firmware to the write time may be set as the average write speed of the memory in this embodiment, so as to evaluate the data writing performance of the burning tool on the memory in a state of burning the reference firmware; and configuring the average writing speed as the writing speed under the writing operation to update the average writing speed to the pre-calculated writing speed, so that the average writing speed can be conveniently used in the step S2 executed subsequently.
After the reference firmware is written into the erased test partition, reading the reference firmware from the test partition, and recording the reading time of the reference firmware, namely timing the time consumed from the time when the reference firmware is read from the test partition to the time when the reference firmware is completely read, wherein the reference firmware can be read byte by byte according to the data cache sequence written into the corresponding memory space; then, calculating a ratio of the capacity of the reference firmware to the read time to obtain an average read speed, where the ratio of the capacity of the reference firmware to the read time may be set as the average read speed of the memory in this embodiment, so as to evaluate the performance of reading data from the memory by the burning tool in the state of burning the reference firmware; and configuring the average reading speed as the reading speed under the reading operation to update the average reading speed to the pre-calculated reading speed, so as to be conveniently used in the step S2 executed subsequently. And then executing the step S2, determining that the reference firmware is burnt into the memory, and calculating the burning speed under the burning operation after the burning operation of the reference firmware is completed.
As an embodiment, the step S2 specifically includes:
the pre-calculated burning speed under the burning operation includes an erasing speed for the same firmware, a writing speed for the same firmware, and a reading speed for the same firmware, and when the step S2 is executed for the first time, the pre-calculated burning speed under the burning operation may include the erasing speed under the erasing operation, the writing speed under the writing operation, and the reading speed under the reading operation, which are calculated in the step S1, which are executed last time.
When the memory partition matched with the current target firmware in the memory is erased, the ratio of the capacity of the current target firmware to the pre-calculated erasing speed is calculated to obtain the erasing waiting time, and then the sum of the erasing waiting time and the preset error time is set as the current waiting time under the erasing operation to form a self-adaptive adjusted waiting time which can adapt to the pre-calculated erasing speed and adapt to the performance of the burning tool for erasing the firmware of the memory. And under the control of the burning tool, erasing from the first byte address of the memory partition matched with the current target firmware in the memory to the last byte address of the memory partition so as to complete the data erasing of the memory partition matched with the current target firmware in the memory.
After the memory partition matched with the current target firmware in the memory is erased, the ratio of the capacity of the current target firmware to the pre-calculated writing speed is calculated to obtain the writing waiting time, and then the sum of the writing waiting time and the preset error time is set as the current waiting time under the writing operation, so that the reliability and the stability of the burning can be ensured, and the adaptively adjusted current waiting time under the writing operation is formed to adapt to the performance of writing the firmware into the memory; this latency may be compared to the time spent by the write operation in the same memory partition to determine the burn state; in the process of writing the current target firmware, under the control of the burning tool, the matched memory partitions in the memory are written byte by byte from the first byte of the current target firmware until the last byte of the current target firmware is written into the matched memory partitions in the memory, and the current target firmware is determined to be written into the erased memory partitions.
After the current target firmware is written into the erased memory partition, when the current target firmware starts to be read from the memory partition matched with the memory, calculating the ratio of the capacity of the current target firmware to the pre-calculated reading speed to obtain the reading waiting time, and setting the sum of the reading time and the preset error time as the current waiting time under the reading operation, so that the reliability and the stability of the burning can be ensured, and the self-adaptive adjustment of the current waiting time under the reading operation is formed to adapt to the performance of reading the firmware from the memory; in the process of reading the current target firmware, under the control of the burning tool, reading the current target firmware byte by byte according to the data caching sequence written into the corresponding memory partition until the last byte of the current target firmware is read from the memory partition matched in the memory, and determining that the current target firmware is completely read from the memory partition matched in the memory.
The preset error time can be a specific numerical value in seconds, and can be specifically set according to the performance condition of the actual burning memory, so that the calculated waiting time is subjected to the effect of prolonging the time sequence, and the reliability and the stability of burning are ensured.
On the basis of the foregoing embodiment, the scheme that calculates the burning speed under the burning operation and updates the burning speed under the currently calculated burning operation to the pre-calculated burning speed under the burning operation every time the burning operation of the current target firmware is completed in step S2 specifically includes:
when the burning tool erases the memory partition matched with the current target firmware in the memory, recording the erasing time of the current target firmware in the memory partition matched with the current target firmware in the memory, namely timing the time consumed from the beginning of erasing the memory partition to the complete erasing of the memory partition, preferably, the capacity of the current target firmware is set to be smaller than or equal to the capacity of the memory partition matched with the current target firmware in the memory, and the memory partition matched with the current target firmware in the memory is divided into the memory partitions for burning the current target firmware; after the memory partition matched with the current target firmware in the memory is erased, calculating the ratio of the capacity of the current target firmware to the erasing time to obtain an average erasing speed, configuring the average erasing speed as the current erasing speed under the erasing operation, and updating the current erasing speed under the erasing operation to the pre-calculated erasing speed so as to evaluate the erasing performance of the burning tool on the memory partition of the memory under the state of burning the current target firmware. Therefore, the memory partition matched with the current target firmware in the memory is formatted, and the interference of old data in the memory partition is avoided. On the other hand, in the step S2 executed next time, the ratio of the capacity of the current target firmware to the newly determined pre-calculated erasing speed is continuously adjusted to the current waiting time under the erasing operation according to the foregoing embodiment, the current waiting time under the erasing operation set in advance can be updated, the dynamic adjustment of the current waiting time under the erasing operation is realized, and the performance of the storage can be adapted when a new memory partition is erased.
After the memory partition is erased, starting to write the current target firmware into the erased memory partition; when the current target firmware is written into the erased memory partition, recording the writing time of the current target firmware, namely, timing the time consumed by the current target firmware from the beginning of writing into the memory partition to the complete writing into the memory partition, and starting to write from the first byte of the current target firmware to the last byte of the current target firmware; then, calculating a ratio of the capacity of the current target firmware to the write time to obtain an average write speed, where the ratio of the capacity of the target firmware to the write time may be set as the average write speed of the memory in this embodiment, so as to evaluate the data writing performance of the burning tool on the memory in a state of burning the current target firmware; after the current target firmware is written into the erased memory partition, calculating the ratio of the capacity of the current target firmware to the writing time to obtain an average writing speed, configuring the average writing speed as the current writing speed under the writing operation, and updating the current writing speed under the writing operation into the pre-calculated writing speed, so that the average writing speed is convenient to use in the next step S2, the self-adaptive adjustment of the pre-calculated writing speed is realized, and the next target firmware can be written into the memory in a self-adaptive manner; on the other hand, in step S2 executed next time, the ratio of the capacity of the current target firmware to the newly determined pre-calculated writing speed is continuously adjusted to the current waiting time under the writing operation according to the foregoing embodiment, the previously set current waiting time may be updated, and the current waiting time under the writing operation is dynamically adjusted, so that when a new target firmware is written into the memory, the performance of the memory can be adapted.
After the reference firmware is written into the erased test partition, starting to read the current target firmware from the matched memory partition in the memory; when the current target firmware is read from the matched memory partition in the memory, recording the reading time of the current target firmware, namely timing the time consumed by starting to read the current target firmware from the memory partition to completely read the current target firmware, and reading the current target firmware byte by byte according to the data cache sequence written into the corresponding memory address; after the current target firmware is read from the memory partition matched in the memory, calculating a ratio of the capacity of the current target firmware to the read time, and obtaining an average read speed, where this embodiment may set the ratio of the capacity of the current target firmware to the read time as the average read speed of the memory, so as to evaluate the read data performance of the burning tool on the memory in a state of burning the reference firmware; and then, configuring the average reading speed as the current reading speed under the reading operation, updating the current reading speed under the reading operation to the pre-calculated reading speed, then executing the step S3, and determining to update the currently calculated burning speed under the burning operation to the pre-calculated burning speed under the burning operation. Updating the current reading speed under the reading operation to a pre-calculated reading speed in the step S2 executed at the current time, so as to be conveniently used in the step S2 executed at the next time, realize self-adaptive adjustment of the pre-calculated writing speed, and be capable of reading out the next target firmware from the memory; on the other hand, in the next step S2, the sum of the ratio of the capacity of the current target firmware to the newly determined pre-calculated reading speed and the preset error time is set as the current waiting time under the reading operation, the current waiting time set in the step S2 which is currently executed can be updated, the dynamic adjustment of the current waiting time under the reading operation is realized, and the performance of the memory can be adapted when the new target firmware is read from the memory.
It is to be added that, after the burning tool completely reads the current target firmware from the memory partition matched in the memory, it is determined that the burning operation of the current target firmware is completed, and specifically, for the same current target firmware, the three operations executed successively, namely, erasing the memory partition matched in the memory of the current target firmware, writing the current target firmware into the erased memory partition, and reading the current target firmware from the memory partition matched in the memory, constitute the burning operation of the current target firmware in the step S2. In addition, the method of recording time in the foregoing embodiments may use a timer to implement timing, including a counting function designed in software or a timer trigger implemented in hardware.
Preferably, if the erasing time of the current target firmware recorded in the step S2 in the memory partition matched in the memory is less than the current waiting time under the erasing operation set in the step S2, and the writing time of the current target firmware recorded in the step S2 is less than the current waiting time under the writing operation set in the step S2, and the reading time of the current target firmware recorded in the step S2 is less than the current waiting time under the reading operation set in the step S2, it is determined that the current target firmware is successfully recorded in the memory, and it is determined that the recording time of the current recorded target firmware in the memory is less than or equal to the latest set current waiting time, so as to prevent the recording time of the current recorded target firmware in the memory from exceeding the current set waiting time. It should be noted that, it may be determined that the burning operation of the current target firmware is completed after the current target firmware is completely read from the matched memory partition in the memory, but it is not necessarily determined that the burning operation of the current target firmware in the memory is successful.
To sum up, the method for setting the latency disclosed by the present invention calculates the actual burning time to realize the adjustment of the latency according to the burning speed of the pre-burned firmware in the memory, and includes dynamically adjusting the current latency under the erasing operation, the current latency under the writing operation, and the current latency under the reading operation in sequence, wherein the latency set each time is calculated by using the burning speed obtained in the current burning memory last time, so that the burning speed obtained in the last time can adaptively adjust the latency required by the currently burned firmware, so that the adjustment result can be adapted to the erasing and reading performance of the current burning memory, and the set latency is ensured to be always in a state related to the erasing and reading performance of the current memory device, that is, if the erasing and reading speed matched with the performance of the current memory device becomes smaller, the set latency under the corresponding operation is increased and the increment is large enough to avoid being smaller than the burning time (actual time consumption of the erasing, reading or writing operation) of the current target firmware in the memory; if the performance of the current memory device is matched with the increased erasing or reading or writing speed, the set waiting time under the corresponding operation can be properly reduced but not too small to avoid being less than the burning time (actually consumed time of erasing or reading or writing operation) of the currently burned target firmware in the memory.
Based on the foregoing embodiment, the present invention further discloses a burning system, which includes a burning tool and a memory, wherein the burning tool is configured to execute the waiting time setting method, and the burning tool is configured to provide the reference firmware and the current target firmware to be burned into the memory in a wired or wireless manner. With reference to the foregoing embodiments, the burning system disclosed in the present invention calculates the actual burning time and updates the waiting time according to the burning speed of the pre-burned firmware in the memory, so as to set the waiting time according to the read/write performance of the firmware in the current memory, so as to adapt to the burning operation of one or more firmware in the currently used memory, and in the process of burning multiple firmware in the same memory, the occurrence frequency of the phenomenon that the burning time of the currently burned target firmware in the memory exceeds the currently set waiting time is reduced as much as possible, and the success rate of burning various target firmware in the same memory is improved. Moreover, the burning system can be compatible with memories of the same type and different models, the probability of burning overtime failure caused by poor support of different manufacturers or different models of memories on correspondingly burned firmware is reduced, the waiting time is not required to be manually modified for being compatible with a new memory of different performances, the version updating of a burning tool is avoided, and the capacity currently identified has hardware adaptability to FLASH of different models.
In some embodiments, the burning tool comprises upper computer software and a burner which run in a computer; the memory is arranged in the embedded equipment mainboard and can belong to an external memory of the embedded equipment mainboard; when the communication connection relation between the embedded equipment mainboard and the burning tool is established, the burning tool is used for driving the embedded equipment mainboard to enter a burning mode so as to execute the waiting time setting method disclosed by any one of the embodiments, the waiting time and the burning speed do not need to be manually changed in the burning software, the compatibility is strong, and the later maintenance workload of the software is reduced; the target firmware can be added or subtracted, or matched firmware can be configured according to the model of the memory to start burning of the firmware in the memory.
The memory is a flash memory of the same type, which may be a NOR flash memory or a NAND flash memory, allowing erasing, reading and writing of firmware in units of bytes. Preferably, the communication interface of the embedded device motherboard can select an SPI interface, and can perform bit processing operations in units of bytes; each byte of test data may be written to the address of the corresponding partition, where the write operations are performed in order of addresses from low to high. In subsequent read operations, the test data may be read byte by byte in chronological order.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed burning system can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Claims (10)

1. The waiting time setting method based on firmware burning is characterized in that an execution main body of the waiting time setting method is a burning tool; the waiting time is configured in the burning tool;
the waiting time setting method comprises the following steps:
when the target firmware is burned, the waiting time is set according to the burning speed of the pre-burned firmware in the memory so as to adapt to the performance of the memory.
2. The method for setting the waiting time according to claim 1, wherein the method for setting the waiting time specifically comprises:
s1, burning the reference firmware into a memory, and calculating the burning speed under the burning operation after finishing the burning operation of the reference firmware; then step S2 is executed;
s2, when the current target firmware starts to be burned into the memory, calculating the current waiting time under the burning operation according to the capacity of the current target firmware and the pre-calculated burning speed under the burning operation so as to adapt to the performance of the memory; calculating the burning speed under the burning operation after the burning operation of the current target firmware is finished, and updating the currently calculated burning speed under the burning operation to the pre-calculated burning speed under the burning operation; then step S3 is executed;
and step S3, when the next target firmware starts to be burnt, updating the next target firmware to the current target firmware, and then returning to execute the step S2.
3. The method for setting the waiting time according to claim 2, wherein for the same firmware, the burning operation includes an erasing operation, a writing operation and a reading operation, and accordingly, the burning speed under the burning operation includes an erasing speed, a writing speed and a reading speed, and the burning time of the firmware in the memory includes an erasing time, a writing time and a reading time, so as to represent the time consumption of the burning operation in the same memory partition;
for the same firmware, respectively configuring a current waiting time for an erasing operation, a writing operation and a reading operation, and respectively comparing the current waiting time with the consumed time of the burning operation in the same memory partition so as to determine whether the burning tool is burned successfully;
the same firmware belongs to the current target firmware or the reference firmware, and the burning process of the same firmware is to execute an erasing operation, then execute a writing operation and finally execute a reading operation.
4. The waiting time setting method according to claim 3, wherein the step S1 specifically comprises:
firstly, erasing data stored in a test partition of a memory, recording erasing time of the test partition, then calculating a ratio of the capacity of a reference firmware to the erasing time to obtain an average erasing speed, and configuring the average erasing speed as an erasing speed under an erasing operation to update the erasing speed to be the pre-calculated erasing speed;
after the memory of the test partition is erased, writing the reference firmware into the erased test partition, recording the writing time of the reference firmware, calculating the ratio of the capacity of the reference firmware to the writing time to obtain an average writing speed, and configuring the average writing speed as the writing speed under the writing operation to update the average writing speed to the pre-calculated writing speed;
after the reference firmware is written into the erased test partition, reading the reference firmware from the test partition, recording the reading time of the reference firmware, calculating the ratio of the capacity of the reference firmware to the reading time to obtain an average reading speed, and configuring the average reading speed as the reading speed under the reading operation to update the average reading speed to the pre-calculated reading speed; and then, executing the step S2, and determining and calculating the burning speed under the burning operation.
5. The method for setting the waiting time according to claim 3, wherein the step S2 specifically comprises:
the pre-calculated burning speed under the burning operation comprises an erasing speed for the same firmware, a writing speed for the same firmware and a reading speed for the same firmware;
when erasing a memory partition matched with the current target firmware in the memory is started, calculating the ratio of the capacity of the current target firmware to the pre-calculated erasing speed to obtain erasing waiting time, and setting the sum of the erasing waiting time and preset error time as the current waiting time under the erasing operation so as to adapt to the performance of the burning tool on the erasing firmware of the memory;
after the memory partition matched with the current target firmware in the memory is erased, starting to write the current target firmware into the erased memory partition, calculating the ratio of the capacity of the current target firmware to the pre-calculated writing speed to obtain writing waiting time, and setting the sum of the writing waiting time and the preset error time as the current waiting time under the writing operation so as to adapt to the performance of writing the firmware into the memory;
after the current target firmware is written into the erased memory partition, when the current target firmware starts to be read from the memory partition matched with the memory, the ratio of the capacity of the current target firmware to the pre-calculated reading speed is calculated to obtain the reading waiting time, and then the sum of the reading waiting time and the preset error time is set as the current waiting time under the reading operation so as to adapt to the performance of reading the firmware from the memory.
6. The waiting time setting method according to claim 5, wherein said step S2 further comprises:
when the memory partition matched with the current target firmware in the memory is erased, recording the erasing time of the current target firmware in the memory partition matched with the current target firmware in the memory; after the matched memory partition of the current target firmware in the memory is erased, calculating the ratio of the capacity of the current target firmware to the erasing time to obtain an average erasing speed, configuring the average erasing speed as the current erasing speed under the erasing operation, and updating the current erasing speed under the erasing operation into the pre-calculated erasing speed;
when the current target firmware is written into the erased memory partition, recording the writing time of the current target firmware; after the current target firmware is written into the erased memory partition, calculating the ratio of the capacity of the current target firmware to the writing time to obtain an average writing speed, configuring the average writing speed as the current writing speed under the writing operation, and updating the current writing speed under the writing operation into the pre-calculated writing speed;
when the current target firmware is read from the matched memory partition in the memory, recording the reading time of the current target firmware; after the current target firmware is read from the matched memory partition in the memory, calculating the ratio of the capacity of the current target firmware to the reading time to obtain an average reading speed, configuring the average reading speed as the current reading speed under the reading operation, and updating the current reading speed under the reading operation into the pre-calculated reading speed; and then, executing the step S3, and determining to update the currently calculated burning speed under the burning operation to the pre-calculated burning speed under the burning operation.
7. The method according to claim 6, wherein for the same current target firmware, if the erasing time of the current target firmware recorded in step S2 in the memory partition matched with the memory is less than the current waiting time under the erasing operation set in step S2, the writing time of the current target firmware recorded in step S2 is less than the current waiting time under the writing operation set in step S2, and the reading time of the current target firmware recorded in step S2 is less than the current waiting time under the reading operation set in step S2, it is determined that the burning time of the currently burned target firmware in the memory is less than or equal to the currently set waiting time, and it is determined that the burning of the current target firmware in the memory is successful.
8. The latency setting method according to claim 2, wherein the current target firmware is different from the test firmware;
the current target firmware used for each execution of step S2 is not the same firmware; in the step S2 executed at least twice, there are current target firmware burned into different memory partitions of the memory of the same model, so that the current waiting time under the burning operation calculated in the step S2 executed each time updates the current waiting time under the burning operation calculated in the step S2 executed last time;
wherein the reference firmware and the current target firmware are both pre-configured program code;
the memory partition matched with the current target firmware in the currently burned memory is a pre-configured memory space.
9. The waiting time setting method of claim 2, wherein after the currently burned memory is replaced with another memory of the same type, the burning tool re-executes steps S1 to S3 to calculate the current waiting time under the burning operation and complete the burning of the corresponding target firmware;
and when the currently burned memory is replaced by another memory of the same type of another model, the reference firmware and the current target firmware are changed to be matched with the memory of the same type of another model.
10. A burning system, comprising a burning tool and a memory, wherein the burning tool is configured to execute the latency setting method of any one of claims 1 to 9, and the burning tool is used for providing the reference firmware and the current target firmware to burn into the memory in a wired or wireless manner.
CN202211189220.4A 2022-09-28 2022-09-28 Waiting time setting method based on firmware burning and burning system Pending CN115469812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211189220.4A CN115469812A (en) 2022-09-28 2022-09-28 Waiting time setting method based on firmware burning and burning system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211189220.4A CN115469812A (en) 2022-09-28 2022-09-28 Waiting time setting method based on firmware burning and burning system

Publications (1)

Publication Number Publication Date
CN115469812A true CN115469812A (en) 2022-12-13

Family

ID=84335388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211189220.4A Pending CN115469812A (en) 2022-09-28 2022-09-28 Waiting time setting method based on firmware burning and burning system

Country Status (1)

Country Link
CN (1) CN115469812A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117667601A (en) * 2024-01-30 2024-03-08 深圳鲲云信息科技有限公司 Programmable memory burning monitoring method, electronic equipment, system and monitor
CN117667601B (en) * 2024-01-30 2024-06-11 深圳鲲云信息科技有限公司 Programmable memory burning monitoring method, electronic equipment, system and monitor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117667601A (en) * 2024-01-30 2024-03-08 深圳鲲云信息科技有限公司 Programmable memory burning monitoring method, electronic equipment, system and monitor
CN117667601B (en) * 2024-01-30 2024-06-11 深圳鲲云信息科技有限公司 Programmable memory burning monitoring method, electronic equipment, system and monitor

Similar Documents

Publication Publication Date Title
US9678761B2 (en) Technology for selectively updating memory-resident images
US8683113B2 (en) Concurrently searching multiple devices of a non-volatile semiconductor memory
CN111309364A (en) Chip program upgrading method and device and storage medium
CN111737051B (en) Trim data verification test method, device and system of SSD (solid State disk)
US20070136510A1 (en) Storage device, memory managing device, memory managing method, and program
CN112992231A (en) Data storage device and parameter rewriting method
CN109240943B (en) Address mapping relation feedback method, device and equipment and readable storage medium
CN104133743A (en) Method and device for burning file into EMMC (Embedded MultiMedia Card)
CN111026417A (en) Embedded equipment upgrading method and embedded equipment
EP1540660B1 (en) Method of and apparatus for detecting an error in writing to persistent memory
CN101131649A (en) Updating speed improving method for read-only memory of device with flash memory
CN116302011B (en) Firmware upgrading method for cable monitoring equipment
CN115469812A (en) Waiting time setting method based on firmware burning and burning system
CN112835601A (en) Firmware updating method, device, equipment and storage medium
CN112445670B (en) eMMC test method and device
CN112802530A (en) NAND testing method and device, readable storage medium and electronic equipment
US7089354B2 (en) Disk fragmentation test system
CN107168650B (en) Method and device for processing data in memory of BIOS
CN113626091A (en) Starting optimization method and device of solid state disk, computer equipment and storage medium
US20190384872A1 (en) Development system and productization method for data storage device
TWI417888B (en) An embedded chip system, a method for burning a wafer, and a computer program product
JP4334331B2 (en) Flash memory access control method
KR20010056103A (en) Flash Memory To Share With Booting And Main Operation Program In System And Upgrade Method In That Memory
CN112732309B (en) Flash memory updating method and device and electronic equipment
CN117785069B (en) Memory and parameter adjustment method thereof

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