[go: up one dir, main page]

CN106933603A - A kind of method of burning chip, device and microcontroller - Google Patents

A kind of method of burning chip, device and microcontroller Download PDF

Info

Publication number
CN106933603A
CN106933603A CN201511016315.6A CN201511016315A CN106933603A CN 106933603 A CN106933603 A CN 106933603A CN 201511016315 A CN201511016315 A CN 201511016315A CN 106933603 A CN106933603 A CN 106933603A
Authority
CN
China
Prior art keywords
burning
packet
microcontroller
memory
recording device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201511016315.6A
Other languages
Chinese (zh)
Other versions
CN106933603B (en
Inventor
万上宏
叶媲舟
黎冰
涂柏生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Original Assignee
SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT 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 SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd filed Critical SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Priority to CN201511016315.6A priority Critical patent/CN106933603B/en
Publication of CN106933603A publication Critical patent/CN106933603A/en
Application granted granted Critical
Publication of CN106933603B publication Critical patent/CN106933603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The present invention relates to chip technology field, there is provided a kind of method of burning chip, device and microcontroller, it is intended to solve the problems, such as that burning chip efficiency is low in the prior art.Methods described includes:Microcontroller receives the packet for treating burning that recording device sends, and by the data pack buffer in the static memory of the microcontroller;The packet that will be cached in the static memory, according to preset burning unit burning in target memory.The technical scheme that the present invention is provided is transmitted in units of packet between recording device and microcontroller, it is saved in the static memory of microcontroller by by packet, and burning is carried out according to preset burning unit to being buffered in the packet in static memory, so as to effectively raise burning efficiency.

Description

A kind of method of burning chip, device and microcontroller
Technical field
The present invention relates to chip technology field, more particularly to a kind of method of burning chip, device and microcontroller Device.
Background technology
User application is write the target memory of microcontroller, such as in non-volatile holographic storage medium, This process is commonly known as " burning ".During burning, how rapidly and efficiently and reliably by user Burning program is extremely important for control production cost and reliability in microcontroller.
At present, by the common method of user program data recording to microcontroller entered in units of the byte Row burning.After microcontroller receives the byte data that recording device sends by serial communication interface, Start internal burning module, this byte data is burnt in target memory.Treat successfully the complete word of burning Joint number is after, then receives the data of next byte and carry out burning.So repeat, until all routine datas burn After the completion of record, then by the data of institute's burning, byte is read outside microcontroller one by one by serial communication interface Verified, checked whether burning is correct.
Due to recording device after having sent a byte, it is necessary to can just be carried out after the completion of waiting the byte burning The transmission of next byte, therefore efficiency of transmission is not high, causes burning relatively inefficient.
The content of the invention
It is an object of the invention to provide a kind of method of burning chip, device and microcontroller, it is intended to solve The low problem of burning chip efficiency in the prior art.
A kind of the first aspect of the present invention, there is provided method of burning chip, including:
Microcontroller receives the packet for treating burning that recording device sends, and by the data pack buffer in institute In stating the static memory of microcontroller;
The packet that will be cached in the static memory, according to preset burning unit burning in target In memory.
A kind of the second aspect of the present invention, there is provided device of burning chip, including:
Cache module, for receiving the packet for treating burning of recording device transmission, and the packet is delayed In there is the static memory of the microcontroller;
Burning module, for the packet that will be cached in the static memory, according to preset burning Unit burning is in target memory.
The third aspect of the present invention, there is provided a kind of microcontroller, the microcontroller includes:
Burning control module, static memory and target memory;
The static memory and the target memory are electrically connected with the burning control module;
The burning control module, is used for
The packet for treating burning that recording device sends is received, and the data pack buffer is deposited in the static state In reservoir, and
The packet that will be cached in the static memory, according to preset burning unit burning described In target memory.
The beneficial effect that exists compared with prior art of the present invention is:The technical scheme that the present invention is provided is with data Wrap as unit is transmitted between recording device and microcontroller, microcontroller is saved in by by packet Static memory in, and carried out according to preset burning unit to being buffered in the packet in static memory Burning, so as to effectively raise burning efficiency.
Brief description of the drawings
Fig. 1 is the flow chart of the method for the burning chip that the embodiment of the present invention one is provided;
Fig. 2 is the flow chart of the method for the burning chip that the embodiment of the present invention two is provided;
Fig. 3 is the composition schematic diagram of the device of the burning chip that the embodiment of the present invention three is provided;
Fig. 4 is the composition schematic diagram of the device of the burning chip that the embodiment of the present invention four is provided;
Fig. 5 is the composition schematic diagram of the microcontroller that the embodiment of the present invention five is provided;
Fig. 6 is the composition schematic diagram of the microcontroller that the embodiment of the present invention six is provided.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with accompanying drawing and reality Example is applied, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only Only it is used to explain the present invention, is not intended to limit the present invention.
Realization of the invention is described in detail below in conjunction with specific accompanying drawing.
Embodiment one:
Fig. 1 is the flow chart of the method for the burning chip that the embodiment of the present invention one is provided, and specifically includes step S101 to S102, details are as follows:
What S101, microcontroller reception recording device sent treats the packet of burning, and data pack buffer is existed In the static memory of microcontroller.
Microcontroller (Microcontroller Unit, MCU) is that the major part of microcomputer is integrated One-chip microcomputer on a single die.The static memory of microcontroller can be SRAM (Static Random Access Memory, static RAM).
Recording device can will treat that the packet of burning is sent to microcontroller, micro-control by serial communication interface Device processed is being received after after the packet of burning, by the data pack buffer in the static memory of chip.
Specifically, treat that the length and form of the packet of burning consult true in advance by recording device and microcontroller It is fixed.Preferably, the data length of each packet can be 128 bytes.Recording device, will before burning Treat that the whole file of burning is divided into multiple packets according to preset length, the packet that then will be partitioned into Microcontroller is sent to one by one, in case burning.
S102, the packet that will be cached in static memory, deposit according to preset burning unit burning in target In reservoir.
Microcontroller reads the packet of caching from static memory, and the burning needed for producing target memory Record sequential, the data of packet are burned onto in target memory with preset burning unit.
Specifically, target memory can be with right and wrong volatile storage medium memory, such as OTP (One Time Programmable, One Time Programmable), (Multiple Time Programmable, repeatedly may be used MTP Programming) and FLASH etc..Preset burning unit can be 1 byte.
It should be noted that the reception of packet and the burning of packet can be come according to the mode of streamline Carry out, that is, while receiving current data packet, a upper packet is burned onto according to preset burning unit Target memory.By such processing mode, burning efficiency can be further improved.
In the present embodiment, it is transmitted between recording device and microcontroller in units of packet, is passed through Packet is saved in the static memory of microcontroller, and the packet to being buffered in static memory Burning is carried out according to preset burning unit, so as to effectively raise burning efficiency.
Embodiment two:
Fig. 2 is the flow chart of the method for the burning chip that the embodiment of the present invention two is provided, and specifically includes step S201 to S204, details are as follows:
What S201, microcontroller reception recording device sent treats the packet of burning, and data pack buffer is existed In first memory block and the second memory block of the static memory of microcontroller.
Microcontroller (Microcontroller Unit, MCU) is that the major part of microcomputer is integrated One-chip microcomputer on a single die.The static memory of microcontroller can be SRAM (Static Random Access Memory, static RAM).
Specifically, recording device will treat that the packet of burning is sent to microcontroller by serial communication interface, Treat that the length and form of the packet of burning are consulted to determine in advance by recording device and microcontroller.
Recording device will treat that the whole file of burning is divided into multiple data according to preset length before burning Bag, the packet that then will be partitioned into is sent to microcontroller one by one, in case burning.
Preferably, packet can be made up of packet header, data and bag check word.Its middle wrapping head is by 1 byte Packet starts to identify the bag sequence number composition of (such as 0x1b) and 1 byte;Data length is 128 bytes, It is divided into 4 32 bytes to come behind packet header, microcontroller can be to burning after often receiving the data of 32 bytes Equipment sends acknowledgement bit (Acknowledge), represents that data have been received by;It is bag school after the data of 128 bytes Word is tested, the length of bag check word is 2 bytes, for the transfer check of packet.
Microcontroller receive recording device transmission after after the packet of burning, the packet header to packet is carried out Parsing, bag sequence number in packet header select corresponding address by data buffer storage in sram.
Specifically, the packet of bag serial number odd number is saved to the first preset memory block of SRAM, example Such as the bank0 areas of SRAM, the packet of bag serial number even number is saved to preset second of SRAM The bank1 areas of memory block, such as SRAM.
It should be noted that microcontroller receives the packet for treating burning that recording device sends and by packet It can be parallel to be cached to SRAM.Being cached to SRAM can be carried out by preset caching unit, in advance The caching unit put can be 1 byte.
S202, the packet to receiving are transmitted verification.
Transfer check is used to verify whether the packet received by microcontroller error of transmission occurs.Transmission school Testing can be completed by the bag check word of packet.
Preferably, even-odd check can be carried out to packet according to bag check word, bag check word is by packet Data according to even-odd check rule produce check information.
Even-odd check be according to the number of " 1 " in one group of numerical digit of binary code being transmitted be odd number or Even number is verified, and odd is referred to as using odd number, conversely, referred to as even parity check, specifically using strange school Test or even parity check is pre-specified.Specifically, the number of received data bag is made by bag check word According to " 1 " in the numerical digit of binary code number be odd number or even number, upon reception of the data packet, according to Odd, then whether the number for verifying " 1 " is odd number, according to even parity check, then verifies the number of " 1 " Whether it is even number, so as to judge whether the transmitting procedure of packet makes a mistake.
When transfer check success, represent that packet does not make a mistake in transmitting procedure, microcontroller can With by serial communication interface confirmation is sent to recording device.Preferably, the confirmation can be true Recognize position (Acknowledge).Recording device after the confirmation is received, by serial communication interface to Microcontroller sends stop position (P), represents that current transmission terminates, and start next packet for treating burning Transmission.
When transfer check fails, represent that packet there occurs mistake in transmitting procedure, microcontroller can be with Unacknowledged information is sent to recording device by serial communication interface.Preferably, the unacknowledged information can be Non-acknowledgement position (Not Acknowledge).Recording device after the unacknowledged information is received, by serial Communication interface sends stop position (P) to microcontroller, represents that current transmission terminates, and start current data packet Re-transmission.
It should be noted that microcontroller is while static memory caching is delivered a packet to, can be right Same data are transmitted checking treatment.Therefore, after the completion of data pack buffer, the transmission school of packet Also corresponding completion is tested, such that it is able to reduce the overall time of burning, burning efficiency is improved.
S203, the packet that will be cached in static memory, deposit according to preset burning unit burning in target In reservoir.
Microcontroller reads the packet of caching from static memory, and the burning needed for producing target memory Record sequential, the data of packet are burned onto in target memory with preset burning unit.
Specifically, target memory can be with right and wrong volatile storage medium memory, such as OTP, MTP With FLASH etc..Preset burning unit can be 1 byte.
It should be noted that the reception of packet and the burning of packet can be come according to the mode of streamline Carry out, that is, while receiving current data packet, a upper packet is burned onto according to preset burning unit Target memory.By such processing mode, burning efficiency can be further improved.
S204, read data of the burning in target memory, and with the data being buffered in static memory Bag carries out burning verification.
Specifically, after the completion of current data packet burning, microcontroller by the current data packet of burning according to Preset byte unit reads from target memory, and is carried out one by one with the data of caching in static memory Check and correction, and the successful data bits of check and correction are deleted from corresponding static memory caching, if all ratios Special bit check passes through, then the burning success of packet, otherwise burning failure.When burning failure, microcontroller Device can be to being buffered in static memory the data of burning failure carry out n burning again, wherein n can be with By user configuring.If burning verification is all unsuccessful after n burning, then it is assumed that burning failure.
Microcontroller behind the packet header for receiving the next packet transmitted by recording device, by program state The burning check results of current data packet are fed back to recording device in position.Preferably, the length of program state position can Think 2 bits (Bit), representing that current data packet burning succeeds and verifies with 00 passes through, with 11 Verified after expression current data packet burning and do not passed through, 01 and 10 retain.
Due to prior art verification when, it is necessary to byte reads from chip one by one by the data of burning The data stored in chip exterior, with recording device are verified, and this external equipment is read from recording device Access according to need spend longer time, therefore cause verification it is relatively inefficient.The burning school of the present embodiment Test need not by outside the digital independent of burning to chip, directly chip internal be buffered in static memory Data verified, therefore improve verification efficiency.
On the other hand, in the prior art, when some byte verifies failure, it is necessary to re-execute to this Operation " is write " in the burning of byte, then its " reading " is gone out into verification by serial communication interface, until success Write-in, thus target memory is frequently switched between " writing " pattern and " reading " pattern, by Needed plus programming high pressure in " writing " pattern, " reading " pattern then closes programming high pressure, therefore frequently switchs Switching increased chip due to programming high pressure and impaired probability.Programmed by microprocessor control in the present embodiment The opening and closing of the enable signal (VPEN) of high pressure (Vp), when burning data bag, by VPEN Open, when burning verification is carried out to packet, VPEN is closed, so as to reduce programming high pressure Switches switching frequency, reduces programming high pressure to the hurtful probability of chip.
In the present embodiment, it is transmitted between recording device and microcontroller in units of packet, is passed through Packet is saved in the static memory of microcontroller, and the packet to being buffered in static memory Burning is carried out according to preset burning unit, while the reception of packet and the burning of packet are according to streamline Mode carry out, so as to effectively raise burning efficiency;By chip internal be buffered in static storage Data in device carry out burning verification, it is not necessary to burning data is read into chip exterior and is verified, therefore Improve verification efficiency;In burning and checking procedure, programming high pressure is opened only when burning data bag, Programming high pressure is closed when verification data bag, so as to avoid the frequent switching of programming high-voltage switch gear, drop Low chip impaired probability due to programming high pressure;Packet is avoided in transmitting procedure by transfer check The mistake being likely to occur, so as to reduce the discarded rate that wrong burning is caused.
Embodiment three:
Fig. 3 is the composition schematic diagram of the device of the burning chip that the embodiment of the present invention three is provided, for the ease of saying It is bright, illustrate only the part related to the embodiment of the present invention.The device for burning chip of Fig. 3 examples can To be the executive agent of the method for burning chip that previous embodiment one is provided, it can be microcontroller Or the One function module in microcontroller.The device for burning chip of Fig. 3 examples mainly includes: Cache module 31 and burning module 32, each functional module describe in detail as follows:
Cache module 31, the packet for treating burning for receiving recording device transmission, and by data pack buffer In the static memory of the microcontroller;
Burning module 32, for the packet that will be cached in static memory, burns according to preset burning unit Record is in target memory.
In the device of the burning chip in the present embodiment, each module realizes the process of respective function, referring to foregoing The description of embodiment illustrated in fig. 1, here is omitted.
Knowable to the device for burning chip of above-mentioned Fig. 3 examples, in the present embodiment, with packet as single Position is transmitted between recording device and microcontroller, by the static state that packet is saved in microcontroller In memory, and burning is carried out according to preset burning unit to being buffered in the packet in static memory, So as to effectively raise burning efficiency.
Example IV:
Fig. 4 is the composition schematic diagram of the device of the burning chip that the embodiment of the present invention four is provided, for the ease of saying It is bright, illustrate only the part related to the embodiment of the present invention.The device for burning chip of Fig. 4 examples can To be the executive agent of the method for burning chip that previous embodiment two is provided, it can be microcontroller Or the One function module in microcontroller.The device for burning chip of Fig. 4 examples mainly includes: Cache module 41, burning module 42, burning correction verification module 43 and transfer check module 44, each functional module Describe in detail as follows:
Cache module 41, the packet for treating burning for receiving recording device transmission, and by data pack buffer In the static memory of the microcontroller;
Burning module 42, for the packet that will be cached in static memory, burns according to preset burning unit Record is in target memory;
Burning correction verification module 43, for reading data of the burning in target memory, and be buffered in static state Packet in memory carries out burning verification;
Transfer check module 44, for being transmitted verification to the packet for receiving, when transfer check success, Confirmation is sent to recording device so that recording device sends the next packet for treating burning, works as transmission During verification failure, unacknowledged information is sent to recording device so that the recording device retransmits the packet.
Specifically, bag sequence number is included in packet, cache module 41 includes:
First cache sub-module 411, if for the bag serial number odd number of packet, data pack buffer is existed First memory block of the static memory of microcontroller;
Second cache sub-module 412, if for the bag serial number even number of packet, data pack buffer is existed Second memory block of the static memory of microcontroller.
Specifically, bag check word is included in packet, transfer check module 44 is additionally operable to according to the bag school Test word carries out even-odd check to the packet.
In the device of the burning chip in the present embodiment, each module realizes the process of respective function, referring to foregoing The description of embodiment illustrated in fig. 2, here is omitted.
Knowable to the device for burning chip of above-mentioned Fig. 4 examples, in the present embodiment, with packet as single Position is transmitted between recording device and microcontroller, by the static state that packet is saved in microcontroller In memory, and burning is carried out according to preset burning unit to being buffered in the packet in static memory, The reception of packet simultaneously is carried out with the burning of packet according to the mode of streamline, so as to effectively raise Burning efficiency;Burning verification is carried out with the data in being buffered in static memory by chip internal, is not required to Burning data is read into chip exterior to be verified, therefore improves verification efficiency;In burning and verification During, programming high pressure is opened only when burning data bag, programming is closed when verification data bag High pressure, so as to avoid the frequent switching of programming high-voltage switch gear, is reduced chip and is damaged due to programming high pressure Probability;The mistake that packet is likely to occur in transmitting procedure is avoided by transfer check, so as to reduce mistake The discarded rate that burning is caused by mistake.
Embodiment five:
Fig. 5 is the composition schematic diagram of the microcontroller that the embodiment of the present invention five is provided, for convenience of description, only Show the part related to the embodiment of the present invention.The microcontroller of Fig. 5 examples can be previous embodiment one The executive agent of the method for burning chip for providing.The microcontroller of Fig. 5 examples includes:Burning is controlled Module 51, static memory 52 and target memory 53.
Static memory 52 and target memory 53 are electrically connected with burning control module 51.
Burning control module 51, the packet for treating burning for receiving recording device transmission, and by packet It is buffered in the static memory 52 of microcontroller, and the packet that will be cached in static memory 52, According to preset burning unit burning in target memory 53.
In microcontroller in the present embodiment, each several part realizes the process of respective function, referring to the institute of earlier figures 1 Show the description of embodiment, here is omitted.
Knowable to the microcontroller of above-mentioned Fig. 5 examples, in the present embodiment, set in burning in units of packet It is standby to be transmitted between microcontroller, it is saved in the static memory of microcontroller by by packet, And burning is carried out according to preset burning unit to being buffered in the packet in static memory, so that effectively Improve burning efficiency.
Embodiment six:
Fig. 6 is the composition schematic diagram of the microcontroller that the embodiment of the present invention six is provided, for convenience of description, only Show the part related to the embodiment of the present invention.The microcontroller of Fig. 6 examples can be previous embodiment two The executive agent of the method for burning chip for providing.The microcontroller of Fig. 6 examples includes:Burning is controlled Module 61, static memory 62, target memory 63 and transfer check module 64.
Static memory 62, target memory 63 and transfer check module 64 with burning control module 61 It is electrically connected with.
Burning control module 61, the packet for treating burning for receiving recording device transmission, and by packet It is buffered in the static memory 62 of microcontroller, and the packet that will be cached in static memory 62, According to preset burning unit burning in target memory 63.
Specifically, bag sequence number is included in packet, static memory 62 includes the first memory block 621 and second Memory block 622, burning control module 61, if being additionally operable to the bag serial number odd number of packet, by packet Be buffered in the first memory block 621 of the static memory of microcontroller, and if packet bag serial number idol Number, then by data pack buffer in the second memory block 621 of the static memory of microcontroller.
Burning control module 61, is additionally operable to read data of the burning in target memory 63, and with caching Packet in static memory 62 carries out burning verification.
The opening and closing of the enable signal (VPEN) of control programming high pressure of burning control module 61 (Vp), When burning data bag, VPEN is opened, when burning verification is carried out to packet, will VPEN is closed, so as to reduce the switches switching frequency of programming high pressure, reduces programming high pressure and chip is caused to damage Harmful probability.
Transfer check module 64 includes:Verification word register 641, total check register 642, check word Section counter 643, the comparator 645 of first comparator 644 and second.
Verification word register 641 and total check register 642 are electrically connected with the second comparator 645;
Check byte counter 643 is electrically connected with first comparator 644;
First comparator 644 is electrically connected with the second comparator 645.
Total check register 642, the data for receiving packet from burning control module 61, this is counted According to being added in the cache size of total check register 642, while trigger check byte counter 643 adding up Count;
First comparator 644, the data volume of value and packet for twin check byte counter 643, When the value of check byte counter 643 and the identical data volume of packet, the second comparator 645 is driven to enter Row transfer check;
Second comparator 645, cache size and verification word register for comparing total check register 642 641 value is transmitted verification, when cache size and the verification word register 641 of total check register 642 Value it is identical when, transfer check success, the successful result of transfer check is sent to burning control module 61, Notify that burning control module 61 sends confirmation to recording device so that recording device transmission is treated under burning One packet, when cache size and the value of verification word register 641 of total check register 642 are differed When, transfer check failure notifies that burning control module 61 sends unacknowledged information to recording device so that burn Recording apparatus retransmit the packet.
Specifically, transfer check module 64 be transmitted verification process describe in detail it is as follows:
The transfer check of packet and data pack buffer to the first memory block 621 and second of static memory 62 Memory block 622 is parallel.Burning control module 61 receives recording device and sends by serial communication interface Packet after, by the data (wdata) of packet send to static memory 62 cache while, Same data wdata is sent to transfer check module 64.
When the data (wdata) for needing to cache are ready, write enable signal (wen) has been set to Effect, now burning control module 61 by wdata be cached to static memory 62 the first memory block 621 or The corresponding storage address (waddr) in second memory block 622, while wen also serves as transfer check module 64 Input enable signal (enable).When wen signals are effective, transfer check module 64 will trigger tired Plus checkout action, the cache size of wdata and total check register 642 is carried out into accumulating operation, it is cumulative Result is updated in total check register 642, while triggering check byte counter 643 carries out Jia 1 Action, the result of accumulated counts is updated in check byte counter 643.Data with packet are 128 As a example by byte, when the data of whole packet are all stored to static memory 62, check byte counter 643 value is 128, and now first comparator 644 exports and effectively enable signal (cmp_enable) and drive the Two comparators 645, make the second comparator 645 that the cache size of total check register 642 is posted with check word The value of storage 641 is compared, if the cache size of total check register 642 and verification word register 641 Value it is equal, then transfer check success, otherwise transfer check failure.
The result (vrf_result) of transfer check is fed back to burning control module 61 by the second comparator 645, Burning control module 61 is operated accordingly according to the result of the transfer check of packet.If transfer check Success, then send confirmation to recording device so that recording device sends the next packet for treating burning, If transfer check fails, unacknowledged information is sent to recording device so that recording device log-on data bag Retransmit.
In microcontroller in the present embodiment, each several part realizes the process of respective function, referring to the institute of earlier figures 2 Show the description of embodiment, here is omitted.
Knowable to the microcontroller of above-mentioned Fig. 6 examples, in the present embodiment, set in burning in units of packet It is standby to be transmitted between microcontroller, it is saved in the static memory of microcontroller by by packet, And burning is carried out according to preset burning unit to being buffered in the packet in static memory, while packet Reception carried out according to the mode of streamline with the burning of packet, so as to effectively raise burning efficiency; Burning verification is carried out with the data in being buffered in static memory, it is not necessary to by chip internal by burning number Verified according to chip exterior is read, therefore improve verification efficiency;In burning and checking procedure, only Programming high pressure is opened when burning data bag, programming high pressure is closed when verification data bag, so that Avoid programming high-voltage switch gear frequent switching, reduce chip due to programming high pressure and impaired probability;It is logical The mistake that transfer check avoids packet from being likely to occur in transmitting procedure is crossed, so as to reduce wrong burning cause Discarded rate.
It should be noted that each embodiment in this specification is described by the way of progressive, each What embodiment was stressed is all the difference with other embodiment, identical between each embodiment or phase As part mutually referring to.For device class and system class embodiment, because it is implemented with method Example is substantially similar, so description is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
It is worth noting that, in said apparatus embodiment, included modules and unit are according to work( Energy logic is divided, but is not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the specific name of each functional module and unit is also only to facilitate mutually differentiation, is not limited to Protection scope of the present invention.
It will appreciated by the skilled person that all or part of step in realizing the various embodiments described above method Rapid to can be by program to instruct the hardware of correlation to complete, corresponding program can be stored in a computer In read/write memory medium, described storage medium, such as ROM/RAM, disk or CD.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in this hair Any modification, equivalent and improvement made within bright spirit and principle etc., should be included in the present invention Protection domain within.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in this hair Any modification, equivalent and improvement made within bright spirit and principle etc., should be included in the present invention Protection domain within.

Claims (10)

1. a kind of method of burning chip, it is characterised in that including:
Microcontroller receives the packet for treating burning that recording device sends, and by the data pack buffer in institute In stating the static memory of microcontroller;
The packet that will be cached in the static memory, according to preset burning unit burning in target In memory.
2. the method for burning chip according to claim 1, it is characterised in that wrapped in the packet Sequence number containing bag, the static memory by the data pack buffer in the microcontroller includes:
If the bag serial number odd number of the packet, by the data pack buffer in the quiet of the microcontroller First memory block of state memory;
If the bag serial number even number of the packet, by the data pack buffer in the quiet of the microcontroller Second memory block of state memory.
3. the method for burning chip according to claim 1 and 2, it is characterised in that it is described will be described The packet cached in static memory, according to preset burning unit burning in target memory After step, also include:
Read data of the burning in the target memory, and with the institute being buffered in the static memory Stating packet carries out burning verification.
4. the method for burning chip according to claim 1 and 2, it is characterised in that the microcontroller Device also includes after receiving the packet for treating burning that recording device sends:
The packet to receiving is transmitted verification;
When transfer check success, confirmation is sent to the recording device so that the burning sets Preparation send the next packet for treating burning;
When the transfer check fails, unacknowledged information is sent to the recording device so that the burning Equipment retransmits the packet.
5. a kind of device of burning chip, it is characterised in that including:
Cache module, for receiving the packet for treating burning of recording device transmission, and the packet is delayed In there is the static memory of the microcontroller;
Burning module, for the packet that will be cached in the static memory, according to preset burning Unit burning is in target memory.
6. the device of burning chip according to claim 5, it is characterised in that
Bag sequence number is included in the packet, the cache module includes:
First cache sub-module, if for the bag serial number odd number of the packet, the packet is delayed There is the first memory block of the static memory of the microcontroller;
Second cache sub-module, if for the bag serial number even number of the packet, the packet is delayed There is the second memory block of the static memory of the microcontroller.
Described device also includes:
Burning correction verification module, for reading data of the burning in the target memory, and be buffered in institute The packet stated in static memory carries out burning verification.
7. the device of the burning chip according to claim 5 or 6, it is characterised in that described device is also Including:
Transfer check module, for being transmitted verification to the packet for receiving, when the transfer check During success, confirmation is sent to the recording device so that the recording device sends and treats the next of burning Individual packet, when the transfer check fails, sends unacknowledged information so that institute to the recording device State recording device and retransmit the packet.
8. a kind of microcontroller, it is characterised in that the microcontroller includes:
Burning control module, static memory and target memory;
The static memory and the target memory are electrically connected with the burning control module;
The burning control module, is used for
The packet for treating burning that recording device sends is received, and the data pack buffer is deposited in the static state In reservoir, and
The packet that will be cached in the static memory, according to preset burning unit burning described In target memory.
9. microcontroller according to claim 8, it is characterised in that
Bag sequence number is included in the packet, the static memory includes the first memory block and the second memory block,
The burning control module, is additionally operable to
If the bag serial number odd number of the packet, by the data pack buffer in the quiet of the microcontroller First memory block of state memory, and
If the bag serial number even number of the packet, by the data pack buffer in the quiet of the microcontroller Second memory block of state memory.
The burning control module, is additionally operable to read data of the burning in the target memory, and with it is slow The packet existed in the static memory carries out burning verification.
10. microprocessor according to claim 8 or claim 9, it is characterised in that described device also includes: The transfer check module being electrically connected with the burning control module, the transfer check module includes:Verification Word register, total check register, check byte counter, first comparator and the second comparator;
The verification word register and the total check register are electrically connected with second comparator;
The check byte counter is electrically connected with the first comparator;
The first comparator is electrically connected with second comparator;
The total check register, the data for receiving the packet from the burning control module, By in the cache size of the data accumulation to the total check register, while triggering the check byte meter Number device accumulated counts;
The first comparator, for comparing the value of the check byte counter and the data of the packet Amount, when the value of the check byte counter is identical with the data volume of the packet, drives described second Comparator is transmitted verification;
Second comparator, is used for
The cache size and the value of the verification word register for comparing the total check register are transmitted Verification,
When the cache size of the total check register is identical with the value of the verification word register, pass It is defeated to verify successfully, the successful result of the transfer check is sent to the burning control module, notify described Burning control module sends confirmation to the recording device so that the recording device sends and treats burning Next packet,
When the cache size of the total check register is differed with the value of the verification word register, Transfer check fails, and notifies that the burning control module sends unacknowledged information to the recording device so that The recording device retransmits the packet.
CN201511016315.6A 2015-12-29 2015-12-29 Chip burning method, device and microcontroller Active CN106933603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511016315.6A CN106933603B (en) 2015-12-29 2015-12-29 Chip burning method, device and microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511016315.6A CN106933603B (en) 2015-12-29 2015-12-29 Chip burning method, device and microcontroller

Publications (2)

Publication Number Publication Date
CN106933603A true CN106933603A (en) 2017-07-07
CN106933603B CN106933603B (en) 2024-03-05

Family

ID=59442278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511016315.6A Active CN106933603B (en) 2015-12-29 2015-12-29 Chip burning method, device and microcontroller

Country Status (1)

Country Link
CN (1) CN106933603B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967144A (en) * 2017-12-08 2018-04-27 京东方科技集团股份有限公司 A kind of data burning method and device
CN108363579A (en) * 2018-02-08 2018-08-03 深圳创维-Rgb电子有限公司 Data burning method, device, equipment and storage medium
CN110119373A (en) * 2019-05-28 2019-08-13 深圳市博巨兴微电子科技有限公司 Single-chip microcontroller and its adjustment method and method for burn-recording
CN110399143A (en) * 2019-07-29 2019-11-01 Oppo广东移动通信有限公司 Brush machine method, apparatus, computer storage medium and the system of terminal device
CN110609690A (en) * 2019-08-30 2019-12-24 珠海泰芯半导体有限公司 Burning acceleration method of burner
CN110767188A (en) * 2019-10-12 2020-02-07 深圳市华星光电技术有限公司 Display panel driving system
CN111260366A (en) * 2018-11-30 2020-06-09 广州众诺电子技术有限公司 Burning method, system and storage medium
CN111381837A (en) * 2018-12-28 2020-07-07 广州众诺电子技术有限公司 Burning method, system and readable storage medium
CN113312065A (en) * 2021-06-06 2021-08-27 深圳市昂科技术有限公司 Data burning method, device, terminal and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4443865A (en) * 1981-10-26 1984-04-17 Allen-Bradley Co. Processor module for a programmable controller
WO2001053915A1 (en) * 2000-01-19 2001-07-26 Codex Technologies Incorporated Security system involving creation and auto-burning of a digital signature in an electronic device and intelligent token device
US20020166025A1 (en) * 2001-05-03 2002-11-07 Kuan-Yuan Hsiao Method of continuous burn for storage medium
US20050268030A1 (en) * 2004-05-28 2005-12-01 Chi-Hsiang Chang Method and related apparatus for generating fixed packets while writing data to cds
US20090254785A1 (en) * 2008-04-07 2009-10-08 Micron Technology, Inc. Test mode for parallel load of address dependent data to enable loading of desired data backgrounds
US20110154059A1 (en) * 2009-12-23 2011-06-23 David Durham Cumulative integrity check value (icv) processor based memory content protection
CN102508732A (en) * 2011-10-25 2012-06-20 深圳芯邦科技股份有限公司 Method and device for improving one-time programmable memory use performance
CN103577211A (en) * 2012-08-08 2014-02-12 上海赤炫信息科技有限公司 Novel packaging and burning as well as updating methods for Android ROM (read only memory) system
CN104102530A (en) * 2014-07-30 2014-10-15 广东小天才科技有限公司 Method and system for improving burning speed of electronic product
US20140372667A1 (en) * 2013-06-14 2014-12-18 Phison Electronics Corp. Data writing method, memory controller and memory storage apparatus
CN105045626A (en) * 2015-07-21 2015-11-11 珠海格力电器股份有限公司 Program burning method, program burning equipment and controller
CN105117236A (en) * 2015-06-30 2015-12-02 无锡华润矽科微电子有限公司 Automatic verified programming e-writing method
CN205282100U (en) * 2015-12-29 2016-06-01 深圳市博巨兴实业发展有限公司 Microcontroller

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4443865A (en) * 1981-10-26 1984-04-17 Allen-Bradley Co. Processor module for a programmable controller
WO2001053915A1 (en) * 2000-01-19 2001-07-26 Codex Technologies Incorporated Security system involving creation and auto-burning of a digital signature in an electronic device and intelligent token device
US20020166025A1 (en) * 2001-05-03 2002-11-07 Kuan-Yuan Hsiao Method of continuous burn for storage medium
US20050268030A1 (en) * 2004-05-28 2005-12-01 Chi-Hsiang Chang Method and related apparatus for generating fixed packets while writing data to cds
US20090254785A1 (en) * 2008-04-07 2009-10-08 Micron Technology, Inc. Test mode for parallel load of address dependent data to enable loading of desired data backgrounds
US20110154059A1 (en) * 2009-12-23 2011-06-23 David Durham Cumulative integrity check value (icv) processor based memory content protection
CN102508732A (en) * 2011-10-25 2012-06-20 深圳芯邦科技股份有限公司 Method and device for improving one-time programmable memory use performance
CN103577211A (en) * 2012-08-08 2014-02-12 上海赤炫信息科技有限公司 Novel packaging and burning as well as updating methods for Android ROM (read only memory) system
US20140372667A1 (en) * 2013-06-14 2014-12-18 Phison Electronics Corp. Data writing method, memory controller and memory storage apparatus
CN104102530A (en) * 2014-07-30 2014-10-15 广东小天才科技有限公司 Method and system for improving burning speed of electronic product
CN105117236A (en) * 2015-06-30 2015-12-02 无锡华润矽科微电子有限公司 Automatic verified programming e-writing method
CN105045626A (en) * 2015-07-21 2015-11-11 珠海格力电器股份有限公司 Program burning method, program burning equipment and controller
CN205282100U (en) * 2015-12-29 2016-06-01 深圳市博巨兴实业发展有限公司 Microcontroller

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11636811B2 (en) 2017-12-08 2023-04-25 Chengdu Boe Optoelectronics Technology Co., Ltd. Data burning method and data burning device
CN107967144A (en) * 2017-12-08 2018-04-27 京东方科技集团股份有限公司 A kind of data burning method and device
CN108363579A (en) * 2018-02-08 2018-08-03 深圳创维-Rgb电子有限公司 Data burning method, device, equipment and storage medium
CN108363579B (en) * 2018-02-08 2021-06-29 深圳创维-Rgb电子有限公司 Data burning method, device, equipment and storage medium
CN111260366B (en) * 2018-11-30 2024-02-20 广州众诺微电子有限公司 Burning method, system and storage medium
CN111260366A (en) * 2018-11-30 2020-06-09 广州众诺电子技术有限公司 Burning method, system and storage medium
CN111381837B (en) * 2018-12-28 2023-07-18 广州众诺微电子有限公司 Burning method, system and readable storage medium
CN111381837A (en) * 2018-12-28 2020-07-07 广州众诺电子技术有限公司 Burning method, system and readable storage medium
CN110119373A (en) * 2019-05-28 2019-08-13 深圳市博巨兴微电子科技有限公司 Single-chip microcontroller and its adjustment method and method for burn-recording
CN110399143A (en) * 2019-07-29 2019-11-01 Oppo广东移动通信有限公司 Brush machine method, apparatus, computer storage medium and the system of terminal device
CN110609690A (en) * 2019-08-30 2019-12-24 珠海泰芯半导体有限公司 Burning acceleration method of burner
CN110767188B (en) * 2019-10-12 2022-05-31 Tcl华星光电技术有限公司 Display panel driving system
CN110767188A (en) * 2019-10-12 2020-02-07 深圳市华星光电技术有限公司 Display panel driving system
CN113312065A (en) * 2021-06-06 2021-08-27 深圳市昂科技术有限公司 Data burning method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN106933603B (en) 2024-03-05

Similar Documents

Publication Publication Date Title
CN106933603A (en) A kind of method of burning chip, device and microcontroller
CN205282100U (en) Microcontroller
US7676617B2 (en) Posted memory write verification
TWI547799B (en) System and method for transmitting packets in an expandable memory system protocol
CN103532854B (en) Storage and forwarding method and device of message
CN101800071B (en) Solid state disk device and program fail processing method thereof
CN105117236B (en) A kind of programming programming method of automatic Verification
CN102257573B (en) Error detection method and a system including one or more memory devices
US20080052449A1 (en) Modular command structure for memory and memory system
US20080195914A1 (en) Memory system and command handling method
CN101685381A (en) Data streaming of solid-state large-capacity storage device
RU2013152206A (en) METHOD AND DEVICE FOR SEQUENTIAL DATA TRANSFER ADAPTABLE TO DIMENSIONS OF MEMORY
TW200935233A (en) System and method for data read of a synchronous serial interface NAND
CN105183382B (en) A kind of data block guard method and device
CN110457160A (en) A kind of error correction method and device
CA1070850A (en) Apparatus and method for increasing the efficiency of random access storage
US20040250177A1 (en) Flash memory device with fast reading rate
CN104166629A (en) NAND flash memory systems with efficient soft information interface
CN103034559B (en) PQ inspection module and the method for inspection based on RDMA architecture design
US20090043946A1 (en) Architecture for very large capacity solid state memory systems
US9122411B2 (en) Signal order-preserving method and apparatus
CN103838638B (en) Calibration method and device for FPGA plug-in storage
CN103902483A (en) Data arrangement method of nonvolatile memory and memory control system
CN100468380C (en) Memory card variable length multi-block data transmission method
CN101206703B (en) A chip with external security function of program content and program downloading method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Shenzhen Nanshan District, Guangdong Province, Guangdong Province, Yuehai Street High-tech Zone Community Science and Technology South Road 18 Shenzhen Bay Science and Technology Eco-Park 12 Skirt Building 732

Applicant after: Shenzhen Bojuxing Microelectronics Technology Co.,Ltd.

Address before: 518000 Shenzhen City, Nanshan District Province, a new high tech park, No. 1,, new materials, building D, room four, building

Applicant before: SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant