CN108255540A - A kind of Nand flash elements and its loading control method and device - Google Patents
A kind of Nand flash elements and its loading control method and device Download PDFInfo
- Publication number
- CN108255540A CN108255540A CN201711445827.3A CN201711445827A CN108255540A CN 108255540 A CN108255540 A CN 108255540A CN 201711445827 A CN201711445827 A CN 201711445827A CN 108255540 A CN108255540 A CN 108255540A
- Authority
- CN
- China
- Prior art keywords
- nand flash
- module
- control
- unit
- information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- 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
-
- 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/0629—Configuration or reconfiguration of storage systems
-
- 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/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
An embodiment of the present invention provides a kind of Nand flash elements and its control method and device are loaded into, which includes a packaging body, and Nand flash kernels and internal controller are packaged in packaging body, and internal controller includes basic load-on module.Wherein, basic load-on module is used to receive the data information of host computer transmission and control information;Internal controller is used to carry out read operation, write operation, erasing operation, ECC check management, bad block management, address of cache management and wear leveling management to Nand flash kernels.The Nand flash elements of the present embodiment can realize the management to entire element by internal controller, master controller is eliminated the reliance on, therefore can solve the problems, such as that Nand flash elements lead to master controller heavy load because needing to rely on when master controller is managed it.
Description
Technical field
The present invention relates to memory techniques field, more particularly to a kind of Nand flash elements and its be loaded into control method and
Device.
Background technology
Nand flash are one kind of flash memory, internal to use non-linear macroelement pattern, are solid-state large-capacity
The realization of memory provides cheap effective solution.Nand flash have the advantages that capacity is larger, and rewriting speed is fast, are applicable in
In the storage of mass data, thus be in the industry cycle more and more widely used, as embedded product include digital camera,
The USB flash disk etc. of MP3 walkmans memory card, compact.
The data of Nand flash are stored in a manner of bit in memory cell, in general, in each cell
A bit can only be stored;These cell are linked to be bit line as unit of 8 or 16, formed so-called byte (x8)/
Word (x16), here it is the bit wides of NAND Device.These bit line recomposition Page, according to manufacturer or model not
Together, every page of bit line numbers are also different;Multiple page form a Block, such as 32 page.Specific a piece of Nand
How many upper Block of flash optionally determine.
Nand flash need its function of controller management, such as ECC check, bad block management, address of cache, wear leveling
Deng, however general Nand flash are not provided with corresponding internal controller in its packaging body, it is therefore, above-mentioned to its work(
The management of energy all relies on corresponding master controller and goes to realize, so as to increase the burden of corresponding master controller.
Invention content
In view of this, the present invention provides a kind of Nand flash elements and its loading control method and device, to solve
The problem of Nand flash elements lead to master controller heavy load because needing to rely on when master controller is managed it.
To solve the above-mentioned problems, the invention discloses a kind of Nand flash elements, including a packaging body, the envelope
Dress is packaged with Nand flash kernels and internal controller in vivo, and the internal controller includes basic load-on module, wherein:
The internal controller is used to carry out read operation, write operation, erasing operation, ECC to the Nand flash kernels
Verify management, bad block management, address of cache management and wear leveling management;
The basis load-on module is used to receive the data information of host computer transmission and control information.
Optionally, the basic load-on module includes mode controlling unit, the first loading unit and second is loaded into unit,
In:
The mode controlling unit is used for the Working mould according to the control information of the host computer control basic load-on module
Formula, the operating mode include normal mode of operation and Debug operating modes;
The first loading unit is used to, when the basic load-on module is in the normal mode of operation, product be consolidated
Part is loaded into the RAM of the internal controller, and the product firmware is controlled to run;
The second loading unit is used for when the basic load-on module is in the Debug operating modes, from upper
Machine receives configuration information and low lattice control program, and according to the configuration information control low lattice control program operation.
Optionally, the internal control further includes configurations module, low lattice module and product firmware module, wherein:
The configurations module is used to store the basic information and configuration information of the Nand flash kernels;
The low lattice module is used to carry out low-level formatting behaviour to the Nand flash kernels according to the control information
Make;
The product firmware module is used for according to the data information and the control information in the Nand flash
Core carries out read operation, write operation, erasing operation, ECC check management, bad block management, address of cache management and wear leveling management.
Optionally, the configuration information includes page size, block size, number of blocks, bad block test mode and ECC check information
In it is part or all of.
Optionally, the low lattice module includes block administrative unit, storage control unit and firmware download unit, wherein:
Described piece of administrative unit is based on being detected the Nand flash elements, the configuration information is carried out
It calculates, bad block inspection and generation mapping table is carried out to the Nand flash kernels;
The storage control unit is used to the configuration information and the mapping table being saved in the Nand flash
In core;
The firmware download unit is used to receive the product firmware of host computer transmission, and the product firmware is saved in institute
It states in Nand flash kernels.
Optionally, the product firmware module include instruction process unit, firmware updating unit, mapping table updating unit and
Exception processing unit, wherein:
Described instruction processing unit is used to handle the control instruction that the host computer is sent, and return to number to the host computer
According to or implementing result;
The firmware updating unit is used to be updated product firmware;
The mapping table updating unit is used to be updated the mapping table of Nand flash elements;
The exception processing unit is used for power-off exception, read-write error or ECC error to the Nand flash elements
It is handled.
In addition, additionally providing a kind of loading control method, the inside applied to Nand flash elements as described above is controlled
Device processed, the loading control method include step:
When the Nand flash elements power on, the basic load-on module of the internal controller is controlled to perform and is received
The basic information and control information that position machine is sent;
The operating mode of the basic load-on module is judged according to the control information, the operating mode includes unskilled labor
Operation mode and Debug operating modes;
If the operating mode is the normal mode of operation, the basic load-on module is controlled to be used for from described
It is loaded in Nand flash elements in product firmware to the RAM of the internal controller and runs the product firmware;
If the operating mode is the Debug operating modes, the basic load-on module is controlled from described upper
Machine receives configuration information and low lattice control program, and controls program according to the configuration information operation low lattice.
A kind of loading control device is additionally provided, applied to the internal controller of Nand flash elements as described above,
It is characterized in that, the loading control device includes:
First control module, for when the Nand flash elements power on, controlling the basis of the internal controller
Load-on module performs basic information and the control information for receiving that host computer is sent;
Mode deciding module, it is described for judging the operating mode of the basic load-on module according to the control information
Operating mode includes normal mode of operation and Debug operating modes;
Second control module if being the normal mode of operation for the operating mode, controls the basis to add
Carrying module will be in the RAM of product firmware loads to the internal controller and described in operation from the Nand flash elements
Product firmware;
Third control module if being the Debug operating modes for the operating mode, controls the basis to add
It carries module and receives configuration information and low lattice control program from the host computer, and the low lattice control is run according to the configuration information
Processing procedure sequence.
It can be seen from the above technical proposal that the present invention provides a kind of Nand flash elements and its it is loaded into control method
And device, the element include a packaging body, are packaged with Nand flash kernels and internal controller, internal control in packaging body
Device includes basic load-on module.Wherein, basic load-on module is used to receive the data information of host computer transmission and controls information simultaneously
It loads in product firmware to the RAM of internal controller and runs;Internal controller is used to carry out reading behaviour to Nand flash kernels
Work, write operation, erasing operation, ECC check management, bad block management, address of cache management and wear leveling management.The present embodiment
Nand flash elements can realize the management to entire element by internal controller, eliminate the reliance on master controller, therefore
Can solve Nand flash elements leads to master controller heavy load because needing to rely on when master controller is managed it
Problem.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of structure diagram of Nand flash elements provided in an embodiment of the present invention;
Fig. 2 is a kind of step flow chart of the loading control method of Nand flash elements provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of the loading control device of Nand flash elements provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of structure diagram of Nand flash elements provided in an embodiment of the present invention.
With reference to shown in Fig. 1, Nand flash elements provided in this embodiment include a packaging body 10, are set in the packaging body
It is equipped with Nand flash kernels 11 and an internal controller 12.The Nand flash kernels include multiple Block, each
Block is made of multiple Page, and each Page is then made of multiple Cell line, which further includes storage ECC check code
Storage region.
For controlling Nand flash kernels, which specifically includes basis and matches above-mentioned internal controller
Put module 121, basic load-on module 122, low lattice module 123 and product firmware module 124.
Wherein, above-mentioned configurations module is used to store the basic information and configuration information of the Nand flash kernels, such as
Page size, block size containing how many block, search the mode of bad block, ECC etc.;Basic load-on module is sent out for receiving host computer
The data information and control information sent, loads in product firmware to the RAM of internal controller and runs the product firmware;Low lattice mould
Block is used to carry out low-level formatting operation, product firmware to Nand flash kernels according to from the control information that host computer receives
Data information and control information of the module then for being sent according to host computer carry out read operation to Nand flash kernels, write behaviour
Work, erasing operation, ECC check management, bad block management, address of cache management and wear leveling management etc..
It can be seen from the above technical proposal that present embodiments providing a kind of Nand flash elements, which includes one
A packaging body, Nand flash kernels and internal controller are packaged in packaging body, and internal controller includes basic load-on module.
Wherein, basic load-on module is used to receive the data information of host computer transmission and control information;Internal controller is used for Nand
Flash kernels carry out ECC check management, bad block management, address of cache management and wear leveling management.The Nand of the present embodiment
Flash elements can realize the management to entire element by internal controller, eliminate the reliance on master controller, therefore can solve
The problem of certainly Nand flash elements lead to master controller heavy load because needing to rely on when master controller is managed it.
Basic load-on module in the present embodiment specifically includes mode controlling unit, the first loading unit and second is loaded into list
Member.Mode controlling unit is used to control the operating mode of basic load-on module, operating mode according to the control information of host computer
Including normal mode of operation and Debug operating modes, i.e. the module can enter normal mode of operation according to the control of host computer
Or Debug operating modes.
So-called normal mode of operation refers to that the element loads corresponding product firmware after power, then runs product firmware
Support user reads and writes or erasing operation;And Debug operating modes refer to user is supported to pass through host computer reality after power
Card operation is now carried out out to the element, i.e., it is initialized, can worked normally.
First loading unit is used to, when the basic load-on module is in normal mode of operation, product firmware loads be arrived
In the RAM of internal controller, and run the product firmware;Second loading unit is used to be in Debug works when basic load-on module
During operation mode, configuration information and low lattice control program are received, and low lattice control program fortune is controlled according to configuration information from host computer
Row, to carry out low-level format operation to the Nand flash kernels of the element.
Low lattice module includes block administrative unit, storage control unit and firmware download unit.Block administrative unit for pair
Nand flash elements, which are detected, detects how many Nand flash kernel in the element, is additionally operable to carry out configuration information
It calculates, bad block inspection and the corresponding mapping table of generation is carried out to Nand flash kernels;Storage control unit is used to be configured
Information and mapping table are saved in Nand flash kernels, are specifically saved by managing distributed management soon
Qu Zhong;Firmware download unit is used to receive the product firmware of host computer transmission, and product firmware is saved in Nand flash
In core, equally the product firmware is saved in the directorial area of Nand flash kernels.
Product firmware module includes instruction process unit, firmware updating unit, mapping table updating unit and abnormality processing list
Member.Instruction process unit is used to handle the control instruction of host computer transmission, and to host computer returned data or implementing result, is used for
Its instruction sent of host computer is told to be effectively executed, so that host computer can perform corresponding behaviour according to accordingly result
Make;Firmware updating unit is used to be updated product firmware;Mapping table updating unit is used to reflect Nand flash elements
Firing table is updated, it is ensured that address of cache is correct;Exception processing unit is for the power-off of Nand flash elements exception, read-write
Mistake or ECC error are handled.
Embodiment two
Fig. 2 is a kind of step flow chart of the loading control method of Nand flash elements provided in an embodiment of the present invention.
The Nand flash elements provided in this embodiment for being loaded into control method and being applied to provided in a upper embodiment
Internal controller is used to implement and corresponding firmware loading control is carried out to Nand flash elements.
With reference to shown in Fig. 2, the loading control method of Nand flash elements provided in this embodiment specifically includes following step
Suddenly:
S101:Receive basic information and the control information that host computer is sent.
When Nand flash elements power on, the basic load-on module of internal controller is controlled to receive the base that host computer is sent
Plinth information and control information.
S102:Judge whether operating mode is normal mode of operation.
Specially the operating mode of basic load-on module is judged, since the operating mode of the module includes unskilled labor
Operation mode and Debug operating modes, therefore be specially to judge that the module is specially normal mode of operation or Debug work here
Pattern, and being performed for task in next step is determined according to judging result.
S103:The basic load-on module of control loads product firmware to the RAM of internal controller from Nand flash elements
In.
I.e. when the operating mode of basic load-on module is normal mode of operation, the basis load-on module is controlled to consolidate product
Part loads product firmware to the RAM of internal controller from Nand flash elements, and runs the product firmware, so as to make this yuan
Part works normally.
S104:The basic load-on module of control receives configuration information and low lattice control program from host computer.
I.e. when the operating mode of basic load-on module is Debug operating modes, the module is controlled to match from host computer reception
Confidence ceases and low lattice control program, and run the low lattice according to the configuration information and control program, with to the Nand flash elements
Nand flash kernels carry out low-level formatting operation, by carrying out low-level formatting operation to it, make it into a kind of energy
Enough states by normal use.
It can be seen from the above technical proposal that present embodiments providing a kind of loading control method, this method is applied to
The internal controller of Nand flash elements can make internal control carry out normal firmware loading to the element and control, and nothing
The master controller outside piece is needed to control it, so as to reduce the burden of master controller.
Embodiment three
Fig. 3 is a kind of structure diagram of the loading control device of Nand flash elements provided in an embodiment of the present invention.
The control device provided in this embodiment that is loaded into is applied to the interior of the Nand flash elements provided in embodiment one
Portion's controller is used to implement and corresponding firmware loading control is carried out to Nand flash elements.
With reference to shown in Fig. 2, the loading control device of Nand flash elements provided in this embodiment specifically includes the first control
Molding block 20, mode deciding module 30, the second control module 40 and third control module 50.
First control module be used for control internal control basic load-on module receive host computer send basic information and
Control information.
When Nand flash elements power on, the basic load-on module of internal controller is controlled to receive the base that host computer is sent
Plinth information and control information.
Mode deciding module is used to judge whether operating mode is normal mode of operation.
Specially the operating mode of basic load-on module is judged, since the operating mode of the module includes unskilled labor
Operation mode and Debug operating modes, therefore be specially to judge that the module is specially normal mode of operation or Debug work here
Pattern, and being performed for task in next step is determined according to judging result.
Second control module is used to that basic load-on module to be controlled to load product firmware from Nand flash elements to inside
In the RAM of controller.
I.e. when the operating mode of basic load-on module is normal mode of operation, the basis load-on module is controlled from Nand
It is loaded in flash elements in product firmware to the RAM of internal controller, and runs the product firmware, so as to make the element normal
Work.
For controlling, basic load-on module receives configuration information to third control module from host computer and low lattice control program.
I.e. when the operating mode of basic load-on module is Debug operating modes, the module is controlled to match from host computer reception
Confidence ceases and low lattice control program, and run the low lattice according to the configuration information and control program, with to the Nand flash elements
Nand flash kernels carry out low-level formatting operation, by carrying out low-level formatting operation to it, make it into a kind of energy
Enough states by normal use.
It can be seen from the above technical proposal that present embodiments providing a kind of loading control device, which is applied to
The internal controller of Nand flash elements can make internal control carry out normal firmware loading to the element and control, and nothing
The master controller outside piece is needed to control it, so as to reduce the burden of master controller.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with
The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are performed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows
And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base
This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped
Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited
Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
Technical solution provided by the present invention is described in detail above, specific case used herein is to this hair
Bright principle and embodiment is expounded, the explanation of above example is only intended to help understand the present invention method and its
Core concept;Meanwhile for those of ordinary skill in the art, thought according to the present invention, in specific embodiment and application
There will be changes in range, in conclusion the content of the present specification should not be construed as limiting the invention.
Claims (8)
1. a kind of Nand flash elements, which is characterized in that including a packaging body, be packaged with Nand in the packaging body
Flash kernels and internal controller, the internal controller include basic load-on module, wherein:
The internal controller is used to carry out read operation, write operation, erasing operation, ECC check to the Nand flash kernels
Management, bad block management, address of cache management and wear leveling management;
The basis load-on module is used to receive the data information of host computer transmission and control information.
2. Nand flash elements as described in claim 1, which is characterized in that the basis load-on module includes scheme control
Unit, first are loaded into unit and second and are loaded into unit, wherein:
The mode controlling unit is used for the operating mode according to the control information of the host computer control basic load-on module, institute
It states operating mode and includes normal mode of operation and Debug operating modes;
The first loading unit is used to, when the basic load-on module is in the normal mode of operation, product firmware be added
It is downloaded in the RAM of the internal controller, and the product firmware is controlled to run;
The second loading unit is used to, when the basic load-on module is in the Debug operating modes, connect from host computer
Configuration information and low lattice control program are received, and according to the configuration information control low lattice control program operation.
3. Nand flash elements as claimed in claim 1 or 2, which is characterized in that the internal control further includes basis and matches
Module, low lattice module and product firmware module are put, wherein:
The configurations module is used to store the basic information and configuration information of the Nand flash kernels;
The low lattice module is used to carry out low-level formatting operation to the Nand flash kernels according to the control information;
The product firmware module be used for according to the data information and it is described control information to the Nand flash kernels into
Row read operation, write operation, erasing operation, ECC check management, bad block management, address of cache management and wear leveling management.
4. Nand flash elements as claimed in claim 3, which is characterized in that it is big that the configuration information includes page size, block
It is part or all of in small, number of blocks, bad block test mode and ECC check information.
5. Nand flash elements as claimed in claim 3, which is characterized in that the low lattice module include block administrative unit,
Storage control unit and firmware download unit, wherein:
Described piece of administrative unit is used to be detected the Nand flash elements, calculate the configuration information, is right
The Nand flash kernels carry out bad block inspection and generation mapping table;
The storage control unit is used to the configuration information and the mapping table being saved in the Nand flash kernels;
The firmware download unit is used to receive the product firmware of host computer transmission, and the product firmware is saved in described
In Nand flash kernels.
6. the Nand flash elements as described in right wants 3, which is characterized in that it is single that the product firmware module includes instruction processing
Member, firmware updating unit, mapping table updating unit and exception processing unit, wherein:
Described instruction processing unit is used to handling the control instruction that the host computer is sent, and to the host computer returned data or
Implementing result;
The firmware updating unit is used to be updated product firmware;
The mapping table updating unit is used to be updated the mapping table of Nand flash elements;
Power-off exception, read-write error or the ECC error that the exception processing unit is used for the Nand flash elements carry out
Processing.
7. a kind of loading control method, the inside applied to such as claim 1~6 any one of them Nand flash elements is controlled
Device processed, which is characterized in that the loading control method includes step:
When the Nand flash elements power on, the basic load-on module of the internal controller is controlled to perform and receives host computer
The basic information of transmission and control information;
The operating mode of the basic load-on module is judged according to the control information, the operating mode includes common Working mould
Formula and Debug operating modes;
If the operating mode is the normal mode of operation, the basic load-on module is controlled from the Nand flash
In the RAM of product firmware loads to the internal controller and the product firmware will be run in element;
If the operating mode is the Debug operating modes, the basic load-on module is controlled to be connect from the host computer
Configuration information and low lattice control program are received, and program is controlled according to the configuration information operation low lattice.
8. a kind of loading control device, the inside applied to such as Claims 1 to 5 any one of them Nand flash elements is controlled
Device processed, which is characterized in that the loading control device includes:
First control module, for when the Nand flash elements power on, controlling the basis loading of the internal controller
Module performs basic information and the control information for receiving that host computer is sent;
Mode deciding module, for judging the operating mode of the basic load-on module, the work according to the control information
Pattern includes normal mode of operation and Debug operating modes;
Second control module if being the normal mode of operation for the operating mode, controls the basis loading mould
Block in the RAM of product firmware loads to the internal controller and will run the product from the Nand flash elements
Firmware;
Third control module if being the Debug operating modes for the operating mode, controls the basis loading mould
Block receives configuration information and low lattice control program, and control journey according to the configuration information operation low lattice from the host computer
Sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711445827.3A CN108255540B (en) | 2017-12-27 | 2017-12-27 | Nand flash element and loading control method and device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711445827.3A CN108255540B (en) | 2017-12-27 | 2017-12-27 | Nand flash element and loading control method and device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108255540A true CN108255540A (en) | 2018-07-06 |
CN108255540B CN108255540B (en) | 2021-02-05 |
Family
ID=62724339
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711445827.3A Active CN108255540B (en) | 2017-12-27 | 2017-12-27 | Nand flash element and loading control method and device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255540B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113050878A (en) * | 2019-12-27 | 2021-06-29 | 北京兆易创新科技股份有限公司 | Method and device for dividing blocks by opening cards |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102169462A (en) * | 2011-04-27 | 2011-08-31 | 中国科学院光电技术研究所 | Data recording method and recording controller based on NAND Flash |
CN104461401A (en) * | 2014-12-25 | 2015-03-25 | 珠海煌荣集成电路科技有限公司 | Data reading and writing management method and device for SPI flash memory |
-
2017
- 2017-12-27 CN CN201711445827.3A patent/CN108255540B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102169462A (en) * | 2011-04-27 | 2011-08-31 | 中国科学院光电技术研究所 | Data recording method and recording controller based on NAND Flash |
CN104461401A (en) * | 2014-12-25 | 2015-03-25 | 珠海煌荣集成电路科技有限公司 | Data reading and writing management method and device for SPI flash memory |
Non-Patent Citations (1)
Title |
---|
董永帅: ""flash文件***及存储管理技术研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113050878A (en) * | 2019-12-27 | 2021-06-29 | 北京兆易创新科技股份有限公司 | Method and device for dividing blocks by opening cards |
Also Published As
Publication number | Publication date |
---|---|
CN108255540B (en) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104951334B (en) | FPGA biplate QSPI flash program loading method | |
KR101698949B1 (en) | Flash memory control apparatus utilizing buffer to temporarily storing valid data stored in storage plane, and control system and control method thereof | |
TWI423022B (en) | Memory management method, memory controller and memory storage apparatus | |
CN108345430A (en) | A kind of Nand flash elements and its progress control method and device | |
CN103823642A (en) | Method and system used for Flash balance storage | |
CN104699622A (en) | Data storage device and data erasing method thereof | |
KR20190043929A (en) | Nonvolatile memory device and operation method thereof | |
US9786373B2 (en) | EEPROM backup method and device | |
CN107045436A (en) | Access processing method and device | |
CN101667133B (en) | Method for updating firmware and chip updating firmware by using same | |
CN108255540A (en) | A kind of Nand flash elements and its loading control method and device | |
CN102622243A (en) | Method for executing solidified codes supporting various NAND flash memories | |
CN108345429A (en) | A kind of Nand flash elements | |
CN106683698A (en) | Memory device and method of operating the same | |
CN111694580B (en) | Method and device for upgrading and initializing storage device and electronic device | |
CN115242753B (en) | Network card MAC address burning method, system, electronic equipment and storage medium | |
CN106980513A (en) | A kind of switching method and device of dual boot file | |
CN108231124A (en) | A kind of Nand flash elements and its low lattice control method and device | |
CN108363549A (en) | A kind of Nand flash elements and its communication control method and device | |
CN111373368B (en) | Nonvolatile memory updating apparatus and method | |
CN114461441A (en) | Power-down retention data loading method and related equipment | |
CN102129416A (en) | Configuration storage system and method thereof for data communication command table | |
JP6040895B2 (en) | Microcomputer and non-volatile memory block management method | |
CN116880905B (en) | Data storage method and device, storage medium and electronic equipment | |
CN104657175A (en) | System and method for realizing boot loading and data reading and writing by utilizing configuration chip |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Room 101, Floor 1-5, Building 8, Yard 9, Fenghao East Road, Haidian District, Beijing 100094 Patentee after: Zhaoyi Innovation Technology Group Co.,Ltd. Address before: 100083 12 Floors, Block A, Tiangong Building, Science and Technology University, 30 College Road, Haidian District, Beijing Patentee before: GIGADEVICE SEMICONDUCTOR(BEIJING) Inc. |
|
CP03 | Change of name, title or address |