CN107463341A - Method for deleting, device and the mobile terminal of FLASH chip - Google Patents
Method for deleting, device and the mobile terminal of FLASH chip Download PDFInfo
- Publication number
- CN107463341A CN107463341A CN201710747684.5A CN201710747684A CN107463341A CN 107463341 A CN107463341 A CN 107463341A CN 201710747684 A CN201710747684 A CN 201710747684A CN 107463341 A CN107463341 A CN 107463341A
- Authority
- CN
- China
- Prior art keywords
- flash chip
- information
- write
- driver
- chip
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000005540 biological transmission Effects 0.000 claims description 5
- 230000005055 memory storage Effects 0.000 claims description 3
- 230000008707 rearrangement Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000004064 recycling Methods 0.000 abstract description 4
- 238000012545 processing Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000004087 circulation Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention provides a kind of method for deleting of FLASH chip, device and mobile terminal, belong to memory technology field.Method for deleting, device and the mobile terminal of FLASH chip provided in an embodiment of the present invention, the CPU relevant informations stored in FLASH chip can be wiped, so as to release the binding relationship between cpu chip and FLASH chip, when changing cpu chip, FLASH chip may not necessarily be changed, so as to reduce expenses.Meanwhile using method for deleting provided in an embodiment of the present invention, after wiping the data in FLASH chip, FLASH chip can be with recycling.
Description
Technical field
The present invention relates to memory technology field, in particular to a kind of method for deleting of FLASH chip, device and
Mobile terminal.
Background technology
With the development of information age, personal electric information is more and more paid attention to.Mobile phone is as a kind of weight
The information media wanted widely is propagated at present.CPU and FLASH (flash memory) in usual mobile phone is binding.Such as Fig. 1 institutes
Show, the CPU relevant informations of the CPU ID memory blocks memory storage of cpu chip 1 can pass through the side of KEY Provision (value supplies)
Formula is written to RPMB (Replay Protected Memory Block, return protection subregion) region in FLASH chip 2.By
There is OTP (One Time Programalbe, One Time Programmable) characteristic in RPMB regions, once CPU relevant informations are write
Enter the RPMB regions of FLASH chip, will be unable to wipe or change.In use, only the CPU ID memory blocks of cpu chip 1 and
When CPU relevant informations in the RPMB regions of FLASH chip 2 are identical, both cpu chip 1 and FLASH chip 2 are established can gateway
System, mobile phone just can normally start.
The mode that above-mentioned cpu chip is bound with FLASH chip, after hand-set from stolen, even if taking user's
FLASH can not also obtain the personal information of user, therefore, mobile phone can not normal use, so as to subtract to a certain extent
Few hand-set from stolen.
But during mobile phone development or use, once cpu chip damage, it is necessary to when changing cpu chip, before
The FLASH chip bound can not also use, and this, which allows for replacing cpu chip, must also change FLASH chip, so as to cause
Very big waste.
The content of the invention
For above-mentioned problems of the prior art, the invention provides a kind of method for deleting of FLASH chip, device
And mobile terminal, the CPU relevant informations stored in FLASH chip can be wiped, so as to release cpu chip and FLASH chip it
Between binding relationship, when changing cpu chip, it may not be necessary to FLASH chip is changed, so as to reduce expenses.
In a first aspect, the embodiments of the invention provide a kind of method for deleting of FLASH chip, including:
The original cid information stored in FLASH chip is backed up;The original cid information includes FLASH chip pair
The version information for the driver answered;
All data and information stored in erasing FLASH chip;
The driver according to corresponding to the original cid information obtains FLASH chip;
The original cid information of the driver and backup is re-write into FLASH chip.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the first of first aspect, wherein, will
The step of original cid information stored in FLASH chip is backed up, including:
Original cid information is read from the CID registers inside FLASH chip;
The original cid information is stored into memory.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of second of first aspect, wherein, wipe
The step of except all data and information stored in FLASH chip, including:
Factory mode order is transmitted into FLASH chip, FLASH chip is entered factory mode;
Erasing order is sent to FLASH chip, to wipe all data and information that are stored in FLASH chip.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the third of first aspect, wherein, will
The step of driver and the original cid information of backup re-write FLASH chip, including:
The driver is re-write into FLASH chip;
FLASH chip is resetted;
The original cid information of backup is re-write into FLASH chip.
With reference to the third possible embodiment of first aspect, the embodiments of the invention provide the 4th of first aspect kind
Possible embodiment, wherein, the step of driver is re-write into FLASH chip, including:
The driver is write into FLASH chip;
Judge whether the driver driver corresponding with the FLASH chip obtained in FLASH chip is consistent;
Confirm errorless order to FLASH chip if it is, sending driver.
With reference to the third possible embodiment of first aspect, the embodiments of the invention provide the 5th of first aspect kind
Possible embodiment, wherein, the step of reset to FLASH chip, including:
Reduce the clock frequency of FLASH chip;
The working frequency and transmission mode of FLASH chip are set.
With reference to the third possible embodiment of first aspect, the embodiments of the invention provide the 6th of first aspect kind
Possible embodiment, wherein, the step of original cid information of backup is re-write into FLASH chip, including:
It is transmitted into FLASH chip and writes CID mode commands, is entered FLASH chip and write CID mode of operations;
Data length to be written is set according to the original cid information;
According to the CID storage formats of setting, the original cid information is resequenced;
Original cid information after rearrangement is write into FLASH chip.
Second aspect, the embodiment of the present invention additionally provide a kind of erasing apparatus of FLASH chip, including:
Cid information backup module, for the original cid information stored in FLASH chip to be backed up;It is described original
Cid information includes the version information of driver corresponding to FLASH chip;
Module is wiped, for wiping all data and information that are stored in FLASH chip;
Rewriting module, for the driver according to corresponding to the original cid information acquisition FLASH chip;By the drive
Dynamic program and the original cid information of backup re-write FLASH chip.
With reference to second aspect, the embodiments of the invention provide the possible embodiment of the first of second aspect, wherein, institute
Stating rewriting module includes:
Program writing unit;For the driver to be re-write into FLASH chip;
Chip reset unit, for being resetted to FLASH chip;
Information writing unit, for the original cid information of backup to be re-write into FLASH chip.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including processor, are connected with the processor
Memory and FLASH chip, the memory storage has can be described by the machine-executable instruction of the computing device
Machine-executable instruction described in computing device is to realize above-mentioned method.
The embodiment of the present invention brings following beneficial effect:
Method for deleting, device and the mobile terminal of FLASH chip provided in an embodiment of the present invention, can wipe FLASH cores
The CPU relevant informations stored in piece, so as to release the binding relationship between cpu chip and FLASH chip, changing cpu chip
When, it may not be necessary to FLASH chip is changed, so as to reduce expenses.Meanwhile using method for deleting provided in an embodiment of the present invention, wipe
After the data in FLASH chip, FLASH chip can be with recycling.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages are in specification, claims
And specifically noted structure is realized and obtained in accompanying drawing.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical scheme of the prior art
The required accompanying drawing used is briefly described in embodiment or description of the prior art, it should be apparent that, in describing below
Accompanying drawing is some embodiments of the present invention, for those of ordinary skill in the art, before creative work is not paid
Put, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is cpu chip and the schematic diagram of FLASH chip binding;
The flow chart of the method for deleting for the FLASH chip that Fig. 2 is provided by one embodiment of the invention;
The flow chart of the method for deleting for the FLASH chip that Fig. 3 is provided by another embodiment of the present invention;
Fig. 4 is the flow chart of step S304 in Fig. 3;
The structured flowchart of the erasing apparatus for the FLASH chip that Fig. 5 is provided by one embodiment of the invention;
The structured flowchart of the erasing apparatus for the FLASH chip that Fig. 6 is provided by another embodiment of the present invention.
Icon:1-CPU chips;2-FLASH chips.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing to the present invention
Technical scheme be clearly and completely described, it is clear that described embodiment is part of the embodiment of the present invention, rather than
Whole embodiments.The component of embodiments of the present invention, which are generally described and illustrated herein in the accompanying drawings can be matched somebody with somebody with a variety of
Put to arrange and design.Therefore, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit below
The scope of claimed invention, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment in the present invention, sheet
The every other embodiment that field those of ordinary skill is obtained under the premise of creative work is not made, belongs to the present invention
The scope of protection.
Can not be unbinding for existing cpu chip and FLASH chip, FLASH cores must also be changed by changing cpu chip
It is the problem of piece, right first below the embodiments of the invention provide a kind of method for deleting of FLASH chip, device and mobile terminal
The method for deleting of the FLASH chip of the present invention describes in detail.
Embodiment one
A kind of method for deleting of FLASH chip is present embodiments provided, applied to mobile terminal.For example, mobile terminal is more
After the CPU renewed, new CPU can use the former CPU stored in the FLASH chip of following methods erasing mobile terminal phase
Information is closed, so as to establish new binding relationship with FLASH chip.As shown in Fig. 2 this method comprises the following steps:
Step S201, the original CID stored in FLASH chip (Card Identification, card identification) is believed
Breath is backed up.Wherein, original cid information includes the information such as version of driver corresponding to FLASH chip, it may for example comprise
The information such as the version number of driver (also referred to as firmware), manufacturer, date of manufacture.
The cid information of driver corresponding to FLASH chip and the FLASH chip is stored with FLASH chip.Right
, it is necessary to first obtain the original cid information stored in FLASH chip and backed up before FLASH chip carries out erasing operation.Tool
Body can be accomplished by the following way:Original cid information is read from the CID registers of the inside of FLASH chip;Will be original
Cid information is stored into memory.The memory can be other in memory block, internal memory or the mobile terminal that processor carries
Memory.For example, in program statement, can read mmc_cid, be saved in global variable.
Step S202, wipe all data and information stored in FLASH chip.
Because each register has write-protect characteristic inside FLASH chip, therefore, the letter stored in FLASH chip is wiped
, it is necessary to first be transmitted into factory mode order to FLASH chip during breath, FLASH chip is set to enter factory mode, Ran Houxiang
FLASH chip sends erasing order, to wipe all data and information that are stored in FLASH chip.
For example, erasing move can be completed according to following CMD (Command, order) sequence, two are continuously transmitted first
Customized instruction CMD60, parameter are respectively 0xEFAC60FC and 0xCBAD1160, and reply type is R1B, it is possible to is entered
The factory mode of FLASH chip, next continuously transmits three erasing instructions CMD35, CMD36, CMD38, to whole FLASH chip
Wiped entirely, parameter is all 0x0, and reply type is R1B.
Step S203, the driver according to corresponding to original cid information obtains FLASH chip.
According to the original cid information of above-mentioned acquirement, FLASH can be obtained from the memory or far-end server of mobile terminal
Driver corresponding to chip.For example, the manfid in original cid information, product_name, cid_pnm inquiries
Reset_table forms, it may be determined that driver corresponding to FLASH chip.Wherein, it is stored with reset_table forms
The index of multiple drivers, in other words, it is stored with the first address of memory block corresponding to multiple drivers.If mobile whole
Driver corresponding to FLASH chip is not found in end, drive corresponding to FLASH chip can also be obtained from distal end by network
Dynamic program.
Step S204, the original cid information of driver and backup is re-write into FLASH chip.
In the embodiment shown in fig. 3, except including the step S301 identical with above-mentioned steps S201~step S203~
Outside step S303, this method also includes:
Step S304, driver is re-write into FLASH chip.
Erasing operation is completed afterwards, it is necessary to which Firmware corresponding to FLASH chip (driver) is written into FLASH cores
In piece.If interrupted in erase process, or programming Firmware failures will all cause FLASH chip to be scrapped.In order to confirm
The Firmware of write-in is correct, reads out in write-in Firmware successes and then by the Firmware of write-in, compares one by one,
If incorrect, also execution is needed to write firmware action.After verifying successfully, it is also necessary to which send CMD28 orders is to confirm firmware
No OK.
That is, step S304 includes following steps as shown in Figure 4 again:
Step S3041, driver is write into FLASH chip.
Specifically, the form that driver corresponding to FLASH chip can be converted into header file (xxx.h) is added
Carry.For high-pass platform, re-writing for firmware can be realized by mmc_write interfaces, as long as setting write-in
Address=0x0, length is the size of driver, and is passed to the first address of driver.
Step S3042, judge that the driver corresponding with the FLASH chip obtained of the driver in FLASH chip is
It is no consistent;If it is, perform step S3043;Step S3041 is performed if not, returning.
Previous step is write into successful driver to read out, prepared for follow-up checking, it is ensured that the driving journey of write-in
Sequence is correct, and the interface used is mmc_read.Set and read at the 0x0 of address, read in a buffer area, length is drive
The size of dynamic program.In order to ensure the driver of write-in correctness, it is necessary to be verified to Firmware.Specific implementation side
Method is:The Firmware and Firmware that previous step is read out are contrasted one by one in itself, are realized by for circulations.
Step S3043, send driver and confirm errorless order to FLASH chip.
If the driver of write-in is correct, CMD28 orders can be sent, to show that driver is errorless.
It is 0x000000FA to send CMD28 parameters, and reply type is R1B.Under the factory mode of FLASH chip, CMD28 orders by with
It is whether correct in confirmation firmware.
Step S305, resets to FLASH chip.
FLASH chip reset is carried out, is prepared for the follow-up original cid information for recovering Flash chip.FLASH chip
The key of reset is to set FLASH clock frequency and transmission mode, specifically, reduces the clock frequency of FLASH chip,
The transmission mode for setting FLASH chip is low-speed mode, to ensure that the operation for writing original cid information can succeed.For example, will
The clock frequency of FLASH chip is reduced to 400kHz or 200kHz, set the transmission mode of FLASH chip for 400kHz or
Low-speed mode corresponding to 200kHz.
It is possible to further the entrance of FLASH chip reset routine is placed in the lk stages init.c target_init
After target_sdc_init () in () is completed.Mmc_clock is reduced before being resetted, high-pass platform is arranged to
400kHz.By calling sdhci_clk_supply (s &dev->Host, SDHCI_CLK_400kHz) interface realization.
Step S306, the original cid information of backup is re-write into FLASH chip.
Step S306 can be realized in the following way:It is transmitted into FLASH chip and writes CID mode commands, makes FLASH
Chip, which enters, writes CID mode of operations;Data length to be written is set according to the original cid information;Deposited according to the CID of setting
Form is stored up, the original cid information is resequenced;Original cid information after rearrangement is write into FLASH chip.
Specifically, after erasing operation is carried out to FLASH chip, the value of the cid information in FLASH chip can become
One default value, now need to recover the original cid information of FLASH chip, otherwise will not guarantee that FLASH chip can normal work
Make.Because CID registers are write-protects, can not operate on it in the normal mode.It is but specific in Vendor
Under pattern, using Vendor specific CMD and Arg, one-time programming is carried out to CID registers.Flow is as follows:
Into writing CID patterns:The customized instruction CMD62 of Liang Tiao FLASH manufacturers is continuously transmitted, parameter is respectively
0xEFAC62EC and 0x00CCED82, it is R1B to reply type.
The data length to be write is set:Realize that parameter 0x00000010, reply type is R1 by CMD16 orders.
The CID forms to be write are set:Due to CID storage format demands, CID to be write is resequenced, ability
The CID for ensureing write-in is desired value.
CMD26 (CMD_PROGRAM_CID) can be finally sent to FLASH chip, and the length that write data is set
(CID is 16 bytes), can write FLASH chip by cid information.Again by instruction CMD62, parameter 0xDECCEE, reply
Type is R1B, to determine whether the cid information of write-in is correct.
The method for deleting for the FLASH chip that the present embodiment provides, the related letters of the CPU stored in FLASH chip can be wiped
Breath, so as to release the binding relationship between cpu chip and FLASH chip, when changing cpu chip, it may not be necessary to change FLASH
Chip, so as to reduce expenses.Meanwhile using method for deleting provided in an embodiment of the present invention, wipe the data in FLASH chip
Afterwards, FLASH chip can be with recycling.
Embodiment two
Present embodiments provide a kind of erasing apparatus of the FLASH chip corresponding with above method embodiment.Such as Fig. 5 and
Shown in Fig. 6, the device includes:
Cid information backup module 51, for the original cid information stored in FLASH chip to be backed up;It is described original
Cid information includes the information such as version of driver corresponding to FLASH chip;
Module 52 is wiped, for wiping all data and information that are stored in FLASH chip;
Rewriting module 53, for the driver according to corresponding to original cid information acquisition FLASH chip;By driver
FLASH chip is re-write with the original cid information of backup.
Wherein, rewriting module 53 includes again:
Program writing unit 531;For driver to be re-write into FLASH chip;
Chip reset unit 532, for being resetted to FLASH chip;
Information writing unit 533, for the original cid information of backup to be re-write into FLASH chip.
The erasing apparatus for the FLASH chip that the present embodiment provides, the related letters of the CPU stored in FLASH chip can be wiped
Breath, so as to release the binding relationship between cpu chip and FLASH chip, when changing cpu chip, it may not be necessary to change FLASH
Chip, so as to reduce expenses.Meanwhile using method for deleting provided in an embodiment of the present invention, wipe the data in FLASH chip
Afterwards, FLASH chip can be with recycling.
Embodiment three
Present embodiments provide a kind of mobile terminal corresponding with above method embodiment, including processor and processing
The memory and FLASH chip of device connection.Wherein, memory be used for store one or more computer instruction, one or more
Computer instruction is executed by processor, to realize the erasing operation to FLASH chip.
Memory may include high-speed random access memory (RAM, Random Access Memory), it is also possible to also wrap
Include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.
Processor is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method
Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor or software form.Above-mentioned processing
Device can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit
(Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), application specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), field programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It can realize or perform in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor can also be appointed
What conventional processor etc..The step of method with reference to disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device performs completion, or performs completion with the hardware in decoding processor and software module combination.Software module can be located at
Machine memory, flash memory, read-only storage, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the ripe storage medium in field.The storage medium is located at memory, and processor reads the information in memory, with reference to its hardware
The step of completing the method for previous embodiment.
Further, the embodiment of the present invention additionally provides a kind of machinable medium, and the machinable medium is deposited
Machine-executable instruction is contained, when being called and being performed by processor, machine-executable instruction promotes the machine-executable instruction
Processor realizes the method for deleting of above-mentioned FLASH chip, and specific implementation can be found in embodiment of the method, will not be repeated here.
The erasing apparatus and mobile terminal for the FLASH chip that the embodiment of the present invention is provided, its realization principle and caused
Technique effect is identical with preceding method embodiment, and to briefly describe, device embodiment part does not refer to part, refers to foregoing side
Corresponding contents in method embodiment.
Method for deleting, device and the mobile terminal of FLASH chip provided in an embodiment of the present invention have identical technology special
Sign, so can also solve identical technical problem, reaches identical technique effect.
It should be noted that in embodiment provided by the present invention, it should be understood that disclosed system and method, can
To realize by another way.Device embodiment described above is only schematical, for example, the unit is drawn
Point, only a kind of division of logic function, there can be other dividing mode when actually realizing, in another example, multiple units or group
Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is described to be used as separation unit
The unit that part illustrates can be or may not be physically separate, can be as the part that unit is shown or also may be used
Not to be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need select some or all of unit therein to realize the purpose of this embodiment scheme.
In addition, each functional unit in embodiment provided by the invention can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
In addition, term " first ", " second ", " the 3rd " are only used for describing purpose, and it is not intended that instruction or implying phase
To importance.
Finally it should be noted that:Embodiment described above, it is only the embodiment of the present invention, to illustrate the present invention
Technical scheme, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, it will be understood by those within the art that:Any one skilled in the art
The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light
Change is readily conceivable that, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make
The essence of appropriate technical solution departs from the spirit and scope of technical scheme of the embodiment of the present invention, should all cover the protection in the present invention
Within the scope of.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (10)
- A kind of 1. method for deleting of FLASH chip, it is characterised in that including:The original cid information stored in FLASH chip is backed up;The original cid information is included corresponding to FLASH chip The version information of driver;All data and information stored in erasing FLASH chip;The driver according to corresponding to the original cid information obtains FLASH chip;The original cid information of the driver and backup is re-write into FLASH chip.
- 2. according to the method for claim 1, it is characterised in that carry out the original cid information stored in FLASH chip standby The step of part, including:Original cid information is read from the CID registers inside FLASH chip;The original cid information is stored into memory.
- 3. according to the method for claim 1, it is characterised in that all data and information stored in erasing FLASH chip The step of, including:Factory mode order is transmitted into FLASH chip, FLASH chip is entered factory mode;Erasing order is sent to FLASH chip, to wipe all data and information that are stored in FLASH chip.
- 4. according to the method for claim 1, it is characterised in that by the driver and the original cid information weight of backup The step of new write-in FLASH chip, including:The driver is re-write into FLASH chip;FLASH chip is resetted;The original cid information of backup is re-write into FLASH chip.
- 5. according to the method for claim 4, it is characterised in that the driver is re-write to the step of FLASH chip Suddenly, including:The driver is write into FLASH chip;Judge whether the driver driver corresponding with the FLASH chip obtained in FLASH chip is consistent;Confirm errorless order to FLASH chip if it is, sending driver.
- 6. according to the method for claim 4, it is characterised in that the step of being resetted to FLASH chip, including:Reduce the clock frequency of FLASH chip;The transmission mode for setting FLASH chip is low-speed mode.
- 7. according to the method for claim 4, it is characterised in that the original cid information of backup is re-write into FLASH chip The step of, including:It is transmitted into FLASH chip and writes CID mode commands, is entered FLASH chip and write CID mode of operations;Data length to be written is set according to the original cid information;According to the CID storage formats of setting, the original cid information is resequenced;Original cid information after rearrangement is write into FLASH chip.
- A kind of 8. erasing apparatus of FLASH chip, it is characterised in that including:Cid information backup module, for the original cid information stored in FLASH chip to be backed up;The original CID letters Breath includes the version information of driver corresponding to FLASH chip;Module is wiped, for wiping all data and information that are stored in FLASH chip;Rewriting module, for the driver according to corresponding to the original cid information acquisition FLASH chip;By the driving journey Sequence and the original cid information of backup re-write FLASH chip.
- 9. device according to claim 8, it is characterised in that the rewriting module includes:Program writing unit;For the driver to be re-write into FLASH chip;Chip reset unit, for being resetted to FLASH chip;Information writing unit, for the original cid information of backup to be re-write into FLASH chip.
- A kind of 10. mobile terminal, it is characterised in that including:The memory that is connected including processor, with the processor and FLASH chip, the memory storage has can be by the machine-executable instruction of the computing device, the computing device The machine-executable instruction is to realize the method described in any one of claim 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710747684.5A CN107463341A (en) | 2017-08-25 | 2017-08-25 | Method for deleting, device and the mobile terminal of FLASH chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710747684.5A CN107463341A (en) | 2017-08-25 | 2017-08-25 | Method for deleting, device and the mobile terminal of FLASH chip |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107463341A true CN107463341A (en) | 2017-12-12 |
Family
ID=60550621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710747684.5A Pending CN107463341A (en) | 2017-08-25 | 2017-08-25 | Method for deleting, device and the mobile terminal of FLASH chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463341A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657504A (en) * | 2018-12-12 | 2019-04-19 | 深圳忆联信息系统有限公司 | The binding method of chip and firmware, device, computer equipment and storage medium |
CN109669707A (en) * | 2018-12-25 | 2019-04-23 | 上海创功通讯技术有限公司 | A kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing |
CN109710192A (en) * | 2018-12-27 | 2019-05-03 | 公安部物证鉴定中心 | A method for erasing data in the used firmware area of a Western Digital hard drive |
CN109726558A (en) * | 2018-12-27 | 2019-05-07 | 公安部物证鉴定中心 | A data erasing method for Western Digital hard disk defect table |
CN114924808A (en) * | 2022-05-12 | 2022-08-19 | 中国电子科技集团公司第二十九研究所 | SRAM type FPGA on-orbit reliable loading method based on duplicate storage program |
CN116595594A (en) * | 2023-05-19 | 2023-08-15 | 无锡摩芯半导体有限公司 | FLASH safety control method based on UCB |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1777267A (en) * | 2004-11-19 | 2006-05-24 | 佳能株式会社 | Electronic device and control method therefor |
WO2008029389A1 (en) * | 2006-09-04 | 2008-03-13 | Sandisk Il Ltd. | Device and method for prioritized erasure of flash memory |
CN101908021A (en) * | 2009-06-03 | 2010-12-08 | 康佳集团股份有限公司 | Flash memory erasing-writing method and flash memory |
CN104991737A (en) * | 2015-06-18 | 2015-10-21 | 杭州电子科技大学 | Storage card array architecture based hard disk implementation method |
CN106843892A (en) * | 2017-02-07 | 2017-06-13 | 上海与德信息技术有限公司 | A kind of method and device of rewriting Flash |
-
2017
- 2017-08-25 CN CN201710747684.5A patent/CN107463341A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1777267A (en) * | 2004-11-19 | 2006-05-24 | 佳能株式会社 | Electronic device and control method therefor |
WO2008029389A1 (en) * | 2006-09-04 | 2008-03-13 | Sandisk Il Ltd. | Device and method for prioritized erasure of flash memory |
CN101908021A (en) * | 2009-06-03 | 2010-12-08 | 康佳集团股份有限公司 | Flash memory erasing-writing method and flash memory |
CN104991737A (en) * | 2015-06-18 | 2015-10-21 | 杭州电子科技大学 | Storage card array architecture based hard disk implementation method |
CN106843892A (en) * | 2017-02-07 | 2017-06-13 | 上海与德信息技术有限公司 | A kind of method and device of rewriting Flash |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657504A (en) * | 2018-12-12 | 2019-04-19 | 深圳忆联信息系统有限公司 | The binding method of chip and firmware, device, computer equipment and storage medium |
CN109657504B (en) * | 2018-12-12 | 2020-09-22 | 深圳忆联信息系统有限公司 | Chip and firmware binding method and device, computer equipment and storage medium |
CN109669707A (en) * | 2018-12-25 | 2019-04-23 | 上海创功通讯技术有限公司 | A kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing |
CN109710192A (en) * | 2018-12-27 | 2019-05-03 | 公安部物证鉴定中心 | A method for erasing data in the used firmware area of a Western Digital hard drive |
CN109726558A (en) * | 2018-12-27 | 2019-05-07 | 公安部物证鉴定中心 | A data erasing method for Western Digital hard disk defect table |
CN109726558B (en) * | 2018-12-27 | 2020-11-24 | 公安部物证鉴定中心 | A data erasing method for Western Digital hard disk defect table |
CN109710192B (en) * | 2018-12-27 | 2022-04-05 | 公安部物证鉴定中心 | Data erasing method for firmware area used by Western digital hard disk |
CN114924808A (en) * | 2022-05-12 | 2022-08-19 | 中国电子科技集团公司第二十九研究所 | SRAM type FPGA on-orbit reliable loading method based on duplicate storage program |
CN116595594A (en) * | 2023-05-19 | 2023-08-15 | 无锡摩芯半导体有限公司 | FLASH safety control method based on UCB |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107463341A (en) | Method for deleting, device and the mobile terminal of FLASH chip | |
CN106095620B (en) | A kind of development approach of built-in Linux partition holding | |
US20150161039A1 (en) | Data erasing method, memory control circuit unit and memory storage apparatus | |
CN101853692B (en) | Controller with flash memory testing function, its storage system and testing method | |
US9552287B2 (en) | Data management method, memory controller and embedded memory storage apparatus using the same | |
CN102955751B (en) | Memory storage device, memory controller and data writing method | |
CN101197006B (en) | Smart card and data write-in method | |
CN102945173A (en) | User program on-line upgrading system and method | |
CN103778964B (en) | Process, using method and the device of a kind of NAND Flash programming data, system | |
CN101699476B (en) | Data processing method and device of smart cards | |
CN108170457A (en) | Firmware upgrade method, device and VR head-mounted displays | |
CN110289039B (en) | Debugging method and device of eMMC | |
US20110022746A1 (en) | Method of dispatching and transmitting data streams, memory controller and memory storage apparatus | |
CN105205019B (en) | NV parameter reading and writing system and methods based on high-pass platform mobile phone | |
CN107678770B (en) | Interface chip upgrading method and device, storage medium and processor | |
CN101667133B (en) | Firmware update method and chips using the method to update firmware | |
US20100153622A1 (en) | Data Access Controller and Data Accessing Method | |
US8225028B2 (en) | Memory devices and methods for programming flash memory utilizing spare blocks | |
CN105867833B (en) | Data storage device and date storage method | |
CN107168650B (en) | Method and device for processing data in memory of BIOS | |
CN103870209B (en) | Working mode switching method, memory controller and memory storage device | |
CN110618828A (en) | Data updating method and device | |
JP5754287B2 (en) | IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip | |
JP2008310596A (en) | Portable electronic equipment and control method for potable electronic equipment | |
US9632805B2 (en) | Data storage device and error correction 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171212 |
|
RJ01 | Rejection of invention patent application after publication |