CN100501683C - Automatic identification method for flash memory type of product - Google Patents

Automatic identification method for flash memory type of product Download PDF

Info

Publication number
CN100501683C
CN100501683C CN 200610028753 CN200610028753A CN100501683C CN 100501683 C CN100501683 C CN 100501683C CN 200610028753 CN200610028753 CN 200610028753 CN 200610028753 A CN200610028753 A CN 200610028753A CN 100501683 C CN100501683 C CN 100501683C
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
flash memory
flash
code
device
die
Prior art date
Application number
CN 200610028753
Other languages
Chinese (zh)
Other versions
CN101101564A (en )
Inventor
刘家良
Original Assignee
上海晨兴电子科技有限公司
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
Grant date

Links

Abstract

一种对产品中所使用的闪存型号的自动识别方法,首先创建一个闪存相关信息表,该表格中的每一个记录都含有闪存设备型号;该型号闪存设备的硬件信息;该型号闪存的检测设备ID函数集;再根据闪存的说明书完善该型号闪存的读、擦除、编程,检测设备ID等操作的具体实现函数;然后,根据闪存信息表中的闪存检测设备ID函数,读取设备ID,再与表中提供的ID号进行比较识别。 A flash memory for an automated method of identifying types of products used, first create a flash memory-related information table, each record in this table contains a flash memory device model; hardware model information of the flash memory device; detecting apparatus of the flash memory model function set ID; then according to the specification complete reading of the flash memory type flash memory, the specific operation of the erasing, programming, device ID detection function implemented; then, according to the flash memory in the flash memory information table ID function detection apparatus, reading apparatus ID, then compared with the ID number identification provided in the table. 本发明的积极进步效果在于:在需要多种闪存型号同时使用时,通过对闪存自动识别,只需一个软件即可兼容多种型号的闪存,可以加快产品的开发进度,方便项目的维护。 The positive effect of the present invention is to progress: When you need to use a variety of flash memory model, by automatically identifying flash, just a piece of software can be compatible with many types of flash memory, can speed the development process of products, easy maintenance projects.

Description

对产品中所使用的闪存型号的自动识别方法 Method of automatic recognition models in the flash memory used in the

技术领域 FIELD

本发明涉及一种对多个型号闪存的自动识别方法,特别是一种对闪存设备号相同而使用不同两种型号的闪存的识别方法。 The present invention relates to an automatic identification method for a plurality of models of the flash memory, particularly a flash identification method using the same of two different types of flash device number.

背景技术 Background technique

当前在研发各种产品时,经常会受到物料供货方面的限制,特别是移动终端产品使用的闪存供货存在着比较大的问题,经常在一种产品中需要用到多种型号的闪存,而同一种产品使用多个型号的闪存都对于开发和以后的维护都会带来很多的麻烦,因此,实现闪存的自动识别是很有意义的一个工作,可以减少产品开发和维护方面的很多工作。 It is currently in the development of a variety of products, often limited by supply side of the material, especially the mobile terminal product using flash memory supplier of there big problem, often need to use a product in a variety of types of flash memory, the use of multiple models of the same product flash memory have brought a lot of trouble for the development and future maintenance will, therefore, achieve automatic identification of flash memory is a significant work, a lot of work can reduce development and maintenance of the product.

为此,美国AMD (Advanced Micro Devices)公司推出的通过在闪存的每个存储单元中存储2位信息、将记录密度提高1倍的MirrorBit闪存具有高度可靠性,极具成本效益,而且AMD的MirrorBit 闪存可与现有的Floating Gate (浮动栅)闪存管脚兼容,但是两种不同类型的相同容量闪存的设备号却是相同的,而其读写操作方面则需要根据不同的型号闪存釆用不同的方法。 To this end, U.S. AMD (Advanced Micro Devices) introduced by storing in the flash memory of each memory cell 2 information, the recording density is increased by 1 MirrorBit Flash memory with high reliability, cost effective, and the AMD MirrorBit Flash Flash pin compatible with existing floating gate (floating gate), but two different types of the same capacity flash device number is the same, and its read and write operations according to different aspects of the model of the flash preclude the use of different Methods. 发明内容 SUMMARY

本发明的目的就是要解决实际产品中碰到的上述问题,提出一种自动识别产品中所使用的闪存型号的方法,特别是设备号相同情况下的不同闪存识别的方法。 Object of the present invention is to solve the above problems encountered in the actual product, a method for automatically identifying a flash memory used in the models, in particular different methods of identifying a flash memory device in the case of the same number.

为实现上述目的,本发明提出了一种自动识别闪存的方法,其技术方案为: To achieve the above object, the present invention proposes a method for automatically identifying a flash memory, which is a technical scheme:

首先在系统的内存中创建一个闪存相关信息表,该表格中的每一个记录都包括:闪存设备型号;该型号闪存设备的硬件信息;该型号闪存的检测设备ID函数:其中,闪存设备的硬件信息包括:该型号闪存的die (晶片)的信息;die的数目;闪存的制造商ID;闪存设备码;闪存扩展设备码h扩展设备码2; First created in memory system, a flash memory-related information table, each record of the table comprises: a flash memory device model; hardware information of the type flash memory device; the type flash memory testing equipment ID Function: Hardware wherein the flash memory device information includes: information of the type flash memory die (wafer); number of die; flash manufacturer ID; flash device code; h a flash memory device code spreading code spreading apparatus 2;

再根据闪存的说明书完善该型号闪存的read(读),erase (擦除), program (编程),检测设备ID等操作的具体实现函数; The flash memory further improve this part of the specification flash read (read), ERASE (erase), the specific implementation of the Program function operation (programming), the detection device ID;

然后执行信息表中的闪存检测设备ID函数去读取闪存的制造商ID、闪存设备码、闪存扩展设备码l、扩展设备码2,再分别与该记录中的闪存的制造商ID、闪存设备码、闪存扩展设备码l、扩展设备码2分别进行比较,进而识别。 Then flash execution information table ID detection apparatus functions to read the flash memory manufacturer ID, a flash device code, L code flash expansion device, code spreading device 2, respectively, and then record the flash memory manufacturer ID, a flash memory device code, L code flash expansion device, the expansion apparatus 2 codes are compared, and thus identified.

本发明的积极进步效果在于:在需要多种闪存型号同时使用时, 通过闪存自动识别,只需一个软件即可兼容多种型号的闪存,可以加快项目的开发进度,方便项目的维护。 The positive effect of the present invention is to progress: When you need to use a variety of flash models, automatic identification through a flash, just a piece of software can be compatible with many types of flash memory, can speed up the development progress of the project, easy maintenance projects.

附图说明 BRIEF DESCRIPTION

5图1为本发明一实施例的示意图。 5 FIG. 1 illustrates one embodiment of the present invention. 具体实施方式 Detailed ways

首先,在系统的内存中建立一个闪存信息表,把以前用过的、要用到的和可能用到的每个闪存的信息作为相应的一个记录加入到此表中,每个记录都包括闪存设备型号,该型号闪存设备的硬件信息和 First, create a table in the flash memory information system, the previously used, and to use the information for each flash memory may be used as a corresponding record is added to this table, each record including flash memory hardware information device model, the model and flash memory devices

该型号闪存的检测设备ID函数地址。 The model detection apparatus ID of the flash memory address function. 其中闪存设备的硬件信息包括该型号闪存的die (晶片)的信息、die的数目、闪存的制造商ID、 闪存设备码、闪存扩展设备码l、扩展设备码2; Wherein the hardware information includes information of the flash memory device of flash type die (wafer), the die number, manufacturer ID flash, code flash memory device, flash memory device code L spreading, spreading codes 2 apparatus;

目前闪存分为AMD和Intel两个系列,相应的其操作命令也分为两个系列,因此,须再根据闪存的说明书完善该型号闪存的read、 erase、 program、检测设备ID等各种操作的相应实现函数。 Currently AMD and Intel flash memory is divided into two series, the corresponding operation command which is also divided into two series, and therefore, the operations must then improve various models of flash memory read, erase, program, device ID detection according to the specification of a flash memory implement appropriate function.

然后,运行闪存自动识别程序,就是执行步骤1000、启动程序100,执行步骤1001从闪存信息表的第一个闪存型号开始,执行步骤1002、 1003、 1004先根据die的信息获取die的地址,如果该闪存有两个die,再读取第二个die的地址;然后执行步骤1005,调用表中该型号闪存的检测设备ID函数去读取设备ID号:该函数是先将闪存的die置为读模式,然后根据die的地址读取该型号闪存的制造商ID、 闪存设备码、闪存扩展设备码1、闪存扩展设备码2,获取die的数目,再将闪存的die置为读模式,执行步骤1006、 1007、 1008,如果读取到的闪存的制造商ID、闪存设备码、闪存扩展设备码l、闪存扩展设备码2和die的数目都与信息表中该记录的硬件设备信息相符,则表明所用的闪存就是该型号。 Then, run the flash automatically recognizes the program is executed step 1000, start the program 100, the steps from the beginning of 1001 the first flash type flash memory information table, step 1002, 1003, 1004 to get the address of the information die die, if the die has two flash memory, and then read the address of the second die; then the step 1005, the table of the call model detection apparatus flash function to read the ID device ID: this function is first set to the flash memory die read mode, and then reads the manufacturer ID type flash, code flash memory device, flash memory device spreading codes 1, 2, the number of acquired device code spreading die flash memory die of the address, then the flash memory die is set to a read mode, performing step 1006, 1007, 1008, the flash memory if the read manufacturer ID, a flash device code, L code, the flash expansion device code number 2, and expansion devices are flash memory die with a hardware device that records information in the table matches, it indicates that the flash memory is used in the model. 否则就跳回执行步骤1002,重新按照以上步骤,对闪存信息表的下一个型号进行读取比较,直到找到闪存的型号或者搜索完整个闪存信息表为止。 Otherwise it jumps back to step 1002, again in accordance with the above steps, the next type flash memory information table read compare until you find the flash of a flash memory model or search the complete information table so far. 在执行步骤1003中,若找到闪存的型号,就采用该型号相应的闪存操作函数作为当前的闪存操作的处理函数;若未找到,则表明该型号的闪存未加入到闪存信息表中,执行步骤1008,需要进行添加此闪存相关信息,或者该闪存的焊接有问题,导致读写错误。 In step 1003, if the model of the flash memory is found, using this model as a function of the respective current flash operation handler flashing operation; if not found, it indicates that the model is not added to the flash flash information table, step 1008, flash memory is required to add this information, or the flash welding problems, leading to read and write errors.

由于AMD系列中的Mirrorbit与Floating gate闪存其管脚相同, 且其性价比要高,故大部分产品都要从floating gate闪存切换到Mirrorbit闪存,但是两者的读写操作采用了不同的方法,因此需要对这两种闪存进行自动识别,而相同容量的Mirrorbit与Floating gate闪存其制造商ID、闪存设备码、闪存扩展设备码l、闪存扩展设备码2 和die的数目都相同,因此,采用读取自动选择地址获取的不同的某个状态位来区分两种闪存,区分之后就可采用相应操作方法对flash 进行操作。 Since AMD series with Floating gate Flash Mirrorbit same as the pin, and its cost is higher, and therefore most of the products to be switched from the floating gate the flash memory to the Mirrorbit, but both read and write operations using different methods, so need for automatic recognition of these two flash memory, and the same capacity Mirrorbit Floating gate Flash its manufacturer ID, a flash device code, L code, device code number 2 and the flash memory expansion die flash expansion devices are the same, therefore, the use of the read taken automatically selecting a different address acquisition status bits to distinguish between the two flash memory, with the corresponding operating method can operate after the flash distinguished.

采用了自动识别方法后,对于同一个研发项目中使用不同型号的闪存将带来很大的好处,降低了产品维护的难度,也加快了项目的研发进程。 With an automatic identification method, for use different types of flash memory with an R & D project will bring great benefits, reducing the difficulty of product maintenance, but also speed up the development process of the project.

Claims (2)

1、一种对产品中所使用的闪存型号的自动识别方法,其步骤包括:S1. 首先在系统的内存中创建一个闪存相关信息表,该表格中的每一个记录都包括:闪存设备型号;该型号闪存设备的硬件信息;该型号闪存的检测设备ID函数;其中,闪存设备的硬件信息包括:该型号闪存的die信息;die的数目;闪存的制造商ID;闪存设备码;闪存扩展设备码1;扩展设备码2;S2. 再根据闪存的说明书完善该型号闪存的实现读/擦除/编程功能的闪存操作函数和检测设备ID函数;S3. 然后执行表中的闪存检测设备ID函数去读取闪存的制造商ID、闪存设备码、闪存扩展设备码1、扩展设备码2,再分别与记录中的闪存的制造商ID、闪存设备码、闪存扩展设备码1、扩展设备码2分别进行比较,进而识别:从闪存信息表的第一个闪存型号开始,先根据die的信息获取die的地址,如果该闪存 1. A method for automatic identification of the product type flash memory is used, comprising the steps of: Sl first create a flash memory-related information in a system table, each record of the table comprises: a flash memory device model; hardware information of the type flash memory device; the type flash detection equipment ID function; wherein the hardware information of the flash memory device comprising: die information type flash memory; number of die; flash manufacturer ID; flash device code; flash expansion device code 1; code spreading apparatus 2; S2 again achieve complete reading of the flash memory model / erase / flash operation detecting device functions and programming function according to the function ID flash instructions;. S3 is then executed in the flash memory table ID detection apparatus function. to read the flash memory manufacturer ID, code flash memory device, flash memory device spreading code 1, code 2 expansion device, and then are recorded in the manufacturer ID of the flash, code flash memory device, flash memory device spreading code 1, code spreading apparatus 2 were compared, and further identified: a flash type from the first flash memory information table, to acquire the address information based on die of die, if the flash memory 两个die,再读取第二个die的地址;然后调用表中该型号闪存的检测设备ID函数去读取该闪存设备ID号,该函数是先将闪存的die置为读模式,然后根据die的地址读取该型号闪存的制造商ID、闪存设备码、闪存扩展设备码1、闪存扩展设备码2,获取die的数目,再将闪存的die置为读模式;如果读取到的闪存的制造商ID、闪存设备码、闪存扩展设备码1、闪存扩展设备码2和die的数目都与表中该记录的硬件设备信息相符,则表明所用的闪存就是该型号;否则就重新按照以上步骤,对闪存表的下一个型号进行读取比较,直到找到闪存的型号或者搜索完整个表为止;若找到闪存型号,就采用该型号相应的闪存操作函数作为当前的闪存操作的处理函数;若未找到,则表明该型号闪存未加入到闪存中,需要进行添加此闪存相关信息,或者该闪存的焊接有问题,导致读写 Two die, and then reads the address of the second die; then call detecting apparatus ID in the function table type flash memory of the flash memory device to read the ID number, which is the first function of a flash memory die is set to read mode, and then in accordance with reads the address type die manufacturer ID flash, code flash memory device, flash memory device spreading codes 1, 2, the number of acquired device code spreading die flash, then the flash memory die set read mode; if flash read manufacturer ID, a flash device code, the flash expansion device code 1, the number of the flash expansion device code 2 and the die are information matches the table of the recording hardware, it indicates that the flash memory used is the model; otherwise again according to the above step, a model for the next flash is read compare table until it finds the flash memory until the complete model, or search table; find if the flash type, on the use of the model as a function of the respective current flash operation handler flashing operation; if is not found, it indicates that the model is not added to the flash memory flash, flash is required to add this information, or the welding flash memory problems, leading to read and write 误。 Wrong.
2、 根据权利要求1所述的对产品中所使用的闪存型号的自动识别方法, 其特征在于,相同容量的Mirrorbit与Floating gate闪存,其制造商ID、闪存设备码、闪存扩展设备码1、闪存扩展设备2和die的数目相同,还应采取读取自动选择地址获取的不同的某个状态位来区分两种闪存,区分之后采用相应操作方法对闪存进行操作。 2. The automatic identification method for a flash memory used in the models according to claim 1, characterized in that, with the same capacity Mirrorbit Floating gate Flash memory, which the manufacturer ID, the code flash memory device, flash memory device spreading code 1, flash memory expansion devices and the same number of die 2, the reading should be taken automatically selecting a different address acquisition status bits to distinguish between the two flash memory, the flash memory operates after distinction with the corresponding operating method.
CN 200610028753 2006-07-07 2006-07-07 Automatic identification method for flash memory type of product CN100501683C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610028753 CN100501683C (en) 2006-07-07 2006-07-07 Automatic identification method for flash memory type of product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610028753 CN100501683C (en) 2006-07-07 2006-07-07 Automatic identification method for flash memory type of product

Publications (2)

Publication Number Publication Date
CN101101564A true CN101101564A (en) 2008-01-09
CN100501683C true CN100501683C (en) 2009-06-17

Family

ID=39035844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610028753 CN100501683C (en) 2006-07-07 2006-07-07 Automatic identification method for flash memory type of product

Country Status (1)

Country Link
CN (1) CN100501683C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662878A (en) * 2012-02-27 2012-09-12 深圳市硅格半导体有限公司 Identifying-driving method and device for software layer of storage device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533663B (en) 2008-03-11 2014-07-16 深圳市朗科科技股份有限公司 Method for improving flash memory medium data access speed
CN101430936B (en) 2008-10-23 2011-09-07 深圳市硅格半导体有限公司 Method for acquiring physical parameters of flash memory
CN103902461A (en) * 2012-12-27 2014-07-02 中兴通讯股份有限公司 Method and device for compatibility of different Nand flash memories

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5583950A (en) 1992-09-16 1996-12-10 Mikos, Ltd. Method and apparatus for flash correlation
US6223308B1 (en) 1995-07-31 2001-04-24 Lexar Media, Inc. Identification and verification of a sector within a block of mass STO rage flash memory
CN1335953A (en) 1999-10-12 2002-02-13 索尼计算机娱乐公司 Entertainment device, information processor, and portable recorder
CN1442794A (en) 2001-08-21 2003-09-17 O2米克罗公司 Flash madium read fetch unit system capable of repositioning

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5583950A (en) 1992-09-16 1996-12-10 Mikos, Ltd. Method and apparatus for flash correlation
US6223308B1 (en) 1995-07-31 2001-04-24 Lexar Media, Inc. Identification and verification of a sector within a block of mass STO rage flash memory
CN1335953A (en) 1999-10-12 2002-02-13 索尼计算机娱乐公司 Entertainment device, information processor, and portable recorder
CN1442794A (en) 2001-08-21 2003-09-17 O2米克罗公司 Flash madium read fetch unit system capable of repositioning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662878A (en) * 2012-02-27 2012-09-12 深圳市硅格半导体有限公司 Identifying-driving method and device for software layer of storage device
CN102662878B (en) * 2012-02-27 2015-01-21 深圳市硅格半导体有限公司 Identifying-driving method and device for software layer of storage device

Also Published As

Publication number Publication date Type
CN101101564A (en) 2008-01-09 application

Similar Documents

Publication Publication Date Title
US5825726A (en) Multi-session disc and a high-speed access method thereto
US20050108491A1 (en) Method for testing flash memory power loss recovery
US20080052448A1 (en) Flash memory interface device
US20040103241A1 (en) Method and apparatus for effectively enabling an out of sequence write process within a non-volatile memory system
US8612650B1 (en) Virtual extension of buffer to reduce buffer overflow during tracing
US6826116B2 (en) Semiconductor memory device including page latch circuit
US20010022744A1 (en) Semiconductor memory device having a page latch circuit and a test method thereof
US4423508A (en) Logic tracing apparatus
US6484270B1 (en) Electric device with flash memory built-in
US7171536B2 (en) Unusable block management within a non-volatile memory system
JP2003086000A (en) Semiconductor memory and its test method
US5819108A (en) Programming of software into programmable memory within a peripheral device
US7272758B2 (en) Defective memory block identification in a memory device
CN1351350A (en) Method for partitioning memory block and identifying R/W information in flash memory
JP2003186758A (en) Nonvolatile semiconductor memory
US20030014687A1 (en) Nonvolatile memory unit comprising a control circuit and a plurality of partially defective flash memory devices
US20090265505A1 (en) Data writing method, and flash storage system and controller using the same
US20080016267A1 (en) Memory controller, flash memory system having memory controller, and method for controlling flash memory
US7463520B2 (en) Memory device with variable trim settings
US20100241914A1 (en) Controller having flash memory testing functions, and storage system and testing method thereof
CN101135973A (en) System and method for automatic installation of device driver
CN102231852A (en) Method and device for programming serial number of set-top box
JP2008040537A (en) Gui test support system and application program for test support
CN1397891A (en) In-line upgrade system for in-situ programmable gate array program and its implementation method
US20060224821A1 (en) System for parallel updating flash memory and method for the same

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
C56 Change in the name or address of the patentee

Owner name: SHANGHAI CHENXING SIMCOM ELECTRONIC TECHNOLOGY CO.

Free format text: FORMER NAME: SHANGHAI CHENXING ELECTRONIC TECHNOLOGY CO., LTD.