Movatterモバイル変換


[0]ホーム

URL:


CN101206577B - Flash memory device and updating method and program searching method thereof - Google Patents

Flash memory device and updating method and program searching method thereof
Download PDF

Info

Publication number
CN101206577B
CN101206577BCN200610170090ACN200610170090ACN101206577BCN 101206577 BCN101206577 BCN 101206577BCN 200610170090 ACN200610170090 ACN 200610170090ACN 200610170090 ACN200610170090 ACN 200610170090ACN 101206577 BCN101206577 BCN 101206577B
Authority
CN
China
Prior art keywords
flash memory
memory device
program
unit
program code
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.)
Active
Application number
CN200610170090A
Other languages
Chinese (zh)
Other versions
CN101206577A (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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
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 Realtek Semiconductor CorpfiledCriticalRealtek Semiconductor Corp
Priority to CN200610170090ApriorityCriticalpatent/CN101206577B/en
Publication of CN101206577ApublicationCriticalpatent/CN101206577A/en
Application grantedgrantedCritical
Publication of CN101206577BpublicationCriticalpatent/CN101206577B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明披露了一种闪速存储器装置及其更新方法与程序搜寻方法,闪速存储器装置包含一只读存储器单元、一闪速存储器单元及一控制单元,只读存储器单元用来储存一第一程序代码,闪速存储器单元用来储存一第二程序代码及一数字数据,而控制单元耦接于只读存储器单元及闪速存储器单元,用来依据第一程序代码及第二程序代码,以控制该闪速存储器装置的操作。藉此,以达到缩短闪速存储器装置升级时间及降低制造成本的目的。

Figure 200610170090

The present invention discloses a flash memory device and an update method and a program search method thereof. The flash memory device comprises a read-only memory unit, a flash memory unit and a control unit. The read-only memory unit is used to store a first program code, the flash memory unit is used to store a second program code and a digital data, and the control unit is coupled to the read-only memory unit and the flash memory unit, and is used to control the operation of the flash memory device according to the first program code and the second program code. Thus, the purpose of shortening the upgrade time of the flash memory device and reducing the manufacturing cost is achieved.

Figure 200610170090

Description

Flash memory device and update method thereof and program frisking method
Technical field
The present invention relates to a kind of flash memory device and update system thereof, renewal and program frisking method, particularly relate to and a kind of program being stored in the flashing storage unit, with the flash memory device of convenient refresh routine.
Background technology
Flash memory is present very general a kind of data storage medium, usually use as universal serial bus (Universal Serial Bus, USB) interface or other common interface and other electronic installation (as personal computer) are linked up, common flash memory comprises carry-on dish, the SD card, CompactFlash card and SmartMedia card or the like, because flash memory is preserved the reliability of data, security and convenience, at present more and more extensive in the application of electronic product, similarly be mobile phone, digital camera, digital camera and MP3 walkman are all often with the medium of flash memory as data storing.
All contain mostly in the flash memory device on the existing practice microprocessor unit (MicroControl Unit, MCU), and the program of its execution be stored in the ROM (read-only memory) (Read-OnlyMemory, ROM).This practice is fairly simple, but has some shortcomings.At first, because flash memory products is constantly weeded out the old and bring forth the new,, just need continuous ROMPaq to support new flash memory products at the difference of different vendor's different model; Secondly, in order to satisfy client's demand, need constantly to add new function, also need frequent update routine, the existing practice is that program is left in the ROM (read-only memory), and each the renewal just need remodify hardware, and need to test again the time that often needs the several months could volume production, constantly cause the increase of production cost, also cause waste of time.
For satisfying above-mentioned reducing cost and the demand of convenient ROMPaq of proposing.The inventor is based on going in for the study for many years and many practical experience, inquires into special topic through research and design in many ways, satisfies in the present invention to propose a kind of flash memory device and update system thereof, method with as aforementioned expectation one implementation and foundation.
Summary of the invention
Because above-mentioned problem, purpose of the present invention is for providing a kind of flash memory device and update system thereof, renewal and program frisking method, particularly a kind of program is stored in the flashing storage unit, with the flash memory device of convenient refresh routine.
Therefore, for achieving the above object, according to flash memory device of the present invention, it comprises a ROM unit, a flashing storage unit, a control module and a random access memory unit, ROM unit is in order to store one first program code, and flashing storage unit comprises one second program code and a numerical data.And control module is coupled to this ROM unit and this flashing storage unit, is used for controlling the operation of this flash memory device according to this first program code and this second program code.Described random access memory unit is coupled between this flashing storage unit and this control module, be used for keeping in the some of this second program code, wherein, described random access memory unit is divided into a plurality of memory block to store the different running program of second program code.
As mentioned above, because of complying with flash memory device of the present invention and update method and program frisking method, it is divided into two parts with the program of carrying out, some leaves in the ROM unit, and what dispatch from the factory afterwards just need not revise, and some then leaves in the flashing storage unit in addition, can upgrade at any time, this practice can put before not influencing properties of product, effectively promoted the convenience of program updates, and also can shorten the time and the cost of system upgrade.
Further understand and understanding for making technical characterictic of the present invention and the effect that realized had, hereinafter in conjunction with the accompanying drawings to the preferred embodiment explanation as after.
Description of drawings
Fig. 1 shows the program code storage position configuration figure of the flash memory device of one embodiment of the invention;
Fig. 2 shows the synoptic diagram according to the flash memory device of one embodiment of the invention;
Fig. 3 shows the process flow diagram according to the program frisking method of the flash memory device of one embodiment of the invention;
The internal random that Fig. 4 shows one embodiment of the invention stores the synoptic diagram of the interior storage space configuration of internal storage location;
Fig. 5 shows the synoptic diagram according to the update system of the flash memory device of one embodiment of the invention; And
Fig. 6 shows the flow chart of steps of the update method of flash memory device of the present invention.
The reference numeral explanation
10: flash memory device;
11: ROM unit;
111: refresh routine;
112: searching procedure;
12: flashing storage unit;
121: running program;
122: first kind running program;
123: the second generic operation programs;
124: the three generic operation programs;
125: the four generic operation programs;
13: microprocessing unit;
14: cache element;
15: the internal random access memory cell;
151: the first storage blocks;
152: the second storage blocks;
153: the three storage blocks;
16: the flash memory control module;
S31~S36: steps flow chart;
50: main frame;
S61~S66: steps flow chart.
Embodiment
Hereinafter with reference to relevant drawings, flash memory device and update system, renewal and program frisking method according to preferred embodiment of the present invention are described, wherein identical assembly will be illustrated with identical reference marks.Please note, the present invention for convenience of description, in following embodiment mentioned flash memory device be the most general with present use, with universal serial bus (universal serial bus, USB) flash disc that is connected with computer system as transmission interface (Flash disk) is an example, but those skilled in the art should understand, the present invention is not as limit, and other is any with the device of flash memory as storing mode, all has it to be suitable for.
See also Fig. 1, Fig. 1 shows the program code storage position configuration figure according to theflash memory device 10 of one embodiment of the invention, shown person is in order to controlflash memory device 10, the position configuration of program code when storing that its microprocessor unit is performed in Fig. 1.The storage area of thisflash memory device 10 mainly comprises a ROM unit 11 and a flashing storage unit 12, ROM unit 11 is in order to store the base program in the said procedure code, for example a searching procedure 112 and a refresh routine 111, it also can include the Basic Authentication program of universal serial bus.Storage area in the flashing storage unit 12 then is divided into a block and a program area block, this block is in order to the main storage area asflash memory device 10, store general data, this program area block is then in order to storeother running program 121 in the said procedure code, wherein, runningprogram 121 comprises in order to operate the various program codes of thisflash memory device 10, searching procedure 112 comprises the program code in order to the searching procedure block, and 111 of refresh routines comprise in order to upgrade the program code of runningprogram 121.
See also Fig. 2, Fig. 2 shows the synoptic diagram according to theflash memory device 10 of one embodiment of the invention, its comprise a ROM unit 11, a flashing storage unit 12, amicroprocessing unit 13, a cache element (cache) 14, an internal random access memory cell (internal randomaccess memory, IRAM) 15, an and flash memory control module 16.ROM unit 11 is in order to store base programs such as aforesaid searching procedure 112 and refresh routine 111, flashing storage unit 12 is in order to storeother running program 121 and general data, flashmemory control module 16 is in order to the accessing operation of control to flashing storage unit 12,microprocessing unit 13 is when receiving an external command, from ROM unit 11, cache element 14, internal randomaccess memory cell 15, or flashing storage unit 12 is searched and program code of corresponding this outside instruction of execution, to carry out the operation offlash memory device 10.
In order in the middle of the process of searching execution following formula program code, to reduce as far as possible flashing storage unit 12 is carried out accessing operation, with shorten overall operation time of palpus, the buffering the whenflash memory device 10 of present embodiment utilizes cache element 14 and internal randomaccess memory cell 15 as program code read.Wherein, the program code thatmicroprocessor unit 13 is desired to take out in flashing storage unit 12 can take out via cache element 14, therefore can remain with the program code of before being kept in the cache element 14, then ifmicroprocessor unit 13 desires to take out the program code that had before read again in flashing storage unit 12, it can directly read this program code in cache element 14, and need not expend the time of access flash memory unit 12 once more.Can be as for 15 of internal random access memory cells according to information such as the manufacturer of flashing storage unit 12 and models, in flashing storage unit 12, read and program code that temporary expection can often be used in advance, so then whenmicroprocessor unit 13 desires are taken out these common programs codes, can directly in cache element 14, this program code be read, and need not expend time of access internal randomaccess memory cell 15 once more.
See also Fig. 3, show the process flow diagram according to the program frisking method of the flash memory device of one embodiment of the invention, its step is as the back:
Step S31: receive an external command;
Step S32: search the base program whether ROM unit has corresponding this outside instruction, if, then finish to search, if not, execution in step S33 then;
Step S33: search internal random and store the running program whether internal storage location has corresponding this outside instruction, if, then finish to search, if not, execution in step S34 then;
Step S34: search the running program whether cache element has corresponding this outside instruction, if, then finish to search, if not, execution in step S35 then; And
Step S35: search flashing storage unit, find out the running program of corresponding this outside instruction.
Step S36: carry out this program code that is searched.
See also Fig. 4, Fig. 4 shows according to one embodiment of the invention, internal random stores the synoptic diagram of the interior storage space configuration ofinternal storage location 15, wherein, store the size ofinternal storage location 15 and promote the readwrite performance that internal random storesinternal storage location 15 as far as possible in order to reduce internal random as much as possible, so therunning program 121 that will be stored in the flashing storage unit 12 is divided into four classes, and the different blocks that also it is placed in flashing storage unit 12 stores: first kind running program 122 all need be used for all operations of the flashing storage unit of all kinds, and reads and write shared running program; The second generic operation program 123 reads and writes shared running program for the flashing storage unit of a certain particular types; Employed running program when the 3rd generic operation program 124 is the flashing storage unit read operation of a certain particular types; Employed running program when the 4th generic operation program 125 is the flashing storage unit write operation of a certain particular types.Accordingly, also internal random is storedinternal storage location 15 and be divided into three storage blocks, wherein, first stores block 151 deposits first kind running program 122, second stores block 152 deposits the second generic operation program, 123, the three storage blocks, 153 storage the 3rd generic operation program 124 or the 4th generic operation programs 125.
See also Fig. 5, Fig. 5 shows the synoptic diagram according to the update system of the flash memory device of one embodiment of the invention, and it comprises aflash memory device 10 and a main frame 50 (a for example personal computer).Flashmemory device 10 comprisesmicroprocessing unit 13, flashing storage unit 12 and ROM unit 11, and flashing storage unit 12 is in order to store arunning program 121, and ROM unit 11 is in order to store a refresh routine 111.Main frame 50 loads the driver that upgrades usefulness, in order to transmit refresh routine order and new running program to microprocessingunit 13, andmicroprocessing unit 13 is according to refresh routine 111, replace runningprogram 121 originally to write this new running program, wherein, above-mentioned main frame 50 also comprises the manufacturer's parameter that transmits a flashing storage unit 12, a model parameter and an operating parameter are to microprocessingunit 13, makemicroprocessing unit 13 according to manufacturer's parameter, model parameter and operating parameter are with operation flashing storage unit 12, main frame 50 andmicroprocessing unit 13 after new running program writes flashing storage unit 12, the correctness of this running program of verification.
See also Fig. 6, Fig. 6 shows the flow chart of steps of the update method of flash memory device of the present invention, and its step is as back:
Step S61: load the driver that upgrades usefulness;
Step S62: the manufacturer and the model number (ID) that obtain flash memory;
Step S63:, the model and the operating parameter of correspondence is sent to flash memory device according to above-mentioned ID;
Step S64: transmit the refresh routine order to flash memory device; And
Step S65: read corresponding refresh routine according to mentioned order, so that the running program in the flashing storage unit is upgraded;
Step S66: result's correctness is upgraded in checking.
The above only is an illustrative, but not is restricted.Anyly do not break away from spirit of the present invention and category, and, all should be contained in the application's the claim its equivalent modifications of carrying out or change.

Claims (8)

1. flash memory device, it includes:
One ROM unit is used for storing one first program code;
One flashing storage unit is used for storing one second program code and a numerical data;
One control module is coupled to this ROM unit and this flashing storage unit, is used for controlling the operation of this flash memory device according to this first program code and this second program code; And
One random access memory unit, be coupled between this flashing storage unit and this control module, be used for keeping in the some of this second program code, wherein, described random access memory unit is divided into a plurality of memory block to store the different running program of second program code.
2. flash memory device as claimed in claim 1, wherein this first program code includes a searching procedure, is used for searching this second program code in this flash memory.
3. flash memory device as claimed in claim 1, wherein this first program code includes a refresh routine, is used for upgrading this second program code in this flash memory.
4. flash memory device as claimed in claim 1, wherein this control module is a microprocessor unit.
5. flash memory device as claimed in claim 1, it also includes a flash memory control module, is coupled to this flashing storage unit, is used for controlling the accessing operation of this flashing storage unit.
6. flash memory device as claimed in claim 1, it also includes a cache element, is coupled between this flashing storage unit and this control module, is used for keeping in the some of this second program code.
7. the program frisking method of a flash memory device comprises at least:
(a) receive an external command;
(b) search a ROM unit, judge whether this ROM unit has a base program that should external command, if, then finish to search, if not, execution in step (c) then;
(c) search a random access memory unit, judge whether this random access memory unit has this running program that should external command, if, then finish to search, if not, execution in step (d) then; And
(d) search a flashing storage unit, find out a running program that should external command,
Wherein, described random access memory unit is divided into a plurality of memory block to be stored in the different running program of storing in the flashing storage unit.
8. the program frisking method of flash memory device as claimed in claim 7, wherein also be included in step (c) before, search a cache element, judge whether this cache element has this running program that should external command, if then finish to search.
CN200610170090A2006-12-182006-12-18Flash memory device and updating method and program searching method thereofActiveCN101206577B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN200610170090ACN101206577B (en)2006-12-182006-12-18Flash memory device and updating method and program searching method thereof

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN200610170090ACN101206577B (en)2006-12-182006-12-18Flash memory device and updating method and program searching method thereof

Publications (2)

Publication NumberPublication Date
CN101206577A CN101206577A (en)2008-06-25
CN101206577Btrue CN101206577B (en)2010-05-19

Family

ID=39566812

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN200610170090AActiveCN101206577B (en)2006-12-182006-12-18Flash memory device and updating method and program searching method thereof

Country Status (1)

CountryLink
CN (1)CN101206577B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101968723A (en)*2010-10-272011-02-09四川和芯微电子股份有限公司Storage control system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1498367A (en)*2002-01-312004-05-19���µ�����ҵ��ʽ���� Information processing device, memory management device, memory management method, and information processing method
US20060248291A1 (en)*2005-04-292006-11-02Chia-Jung HsuMemory disposition methods and systems

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1498367A (en)*2002-01-312004-05-19���µ�����ҵ��ʽ���� Information processing device, memory management device, memory management method, and information processing method
US20060248291A1 (en)*2005-04-292006-11-02Chia-Jung HsuMemory disposition methods and systems

Also Published As

Publication numberPublication date
CN101206577A (en)2008-06-25

Similar Documents

PublicationPublication DateTitle
EP3516511B1 (en)Update migration system and method
CN104750616A (en)Data storage device and flash memory control method
CN103154900A (en)Embedded program update method, embedded program update program, electronic apparatus, network system
CN101432690A (en)Bios configuration update technique
CN102968373B (en)A kind of maintaining method of test macro and device
CN109683967A (en)Firmware supports method, apparatus, mobile terminal and readable storage medium storing program for executing
WO2016078263A1 (en)Upgrading control device and terminal, terminal upgrading method and system, and storage medium
CN102163155A (en)Upgrade controlling device and method for upgrading memory device
CN100458697C (en)User program guiding method and system
KR20100088210A (en)Apparatus and method for downloadin contents using movinand in portable terminal
CN101166229A (en)A TV software update method
US20100115004A1 (en)Backup system that stores boot data file of embedded system in different strorage sections and method thereof
US20050038955A1 (en)Flash ROM content updating method and system
AU774735B2 (en)A method and apparatus for reducing ram size while maintaining fast data access
CN101000580A (en)NAND flash information extraction method and NAND flash automatic identification method
CN106909351A (en)A kind of implementation method of the EXT file system based on UEFI firmwares
US8131917B2 (en)Storing a driver for controlling a memory
TWI221255B (en)Device information management system of application device and method thereof
CN102024051B (en)Data updating method for distributed memory database
CN101430685A (en)Downloading method and system
CN100477005C (en) Flash storage devices that support partitioning
CN101206577B (en)Flash memory device and updating method and program searching method thereof
CN109669628B (en)Data storage management method and device based on flash equipment
US20080147966A1 (en)Flash memory device, update method and program search method thereof
CN105975300A (en)System upgrading method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp