CN101237653A - A realization method for compatible Nor Flash erasing on mobile phone - Google Patents
A realization method for compatible Nor Flash erasing on mobile phone Download PDFInfo
- Publication number
- CN101237653A CN101237653A CNA2008100342431A CN200810034243A CN101237653A CN 101237653 A CN101237653 A CN 101237653A CN A2008100342431 A CNA2008100342431 A CN A2008100342431A CN 200810034243 A CN200810034243 A CN 200810034243A CN 101237653 A CN101237653 A CN 101237653A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- flash
- information
- download
- compatible
- 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
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the mobile communication terminal Flash erasion and writing technical field, in particular to a realization method for Nor type Flash erasion and writing compatibility on a handset. The steps are as follows: Step A, a download port of a handset and a download port of a PC are connected to form a hardware connection of a download platform, and the download platform makes an initialization setting before the download according to the configuration of a Nor type Flash in the handset; Step B, the PC end of the download platform is provided with different series of instruct sets, the download platform reads a value of a special register address on the Nor type Flash in the handset, thereby determining to download a certain instruct set to the handset; Step C, the download platform reads the value of the special register address on the handset to obtain equipment number information of the Nor type Flash, and configures the related Flash information according to manufacturer information and equipment information; Step D, the related erasion and writing operation is executed. The method of the invention can be realized in mobile terminals of different platforms, can improve the production efficiency, and decreases the latter software maintenance affairs at the same time.
Description
Technical field
The present invention relates to the erasable technical field of Flash of mobile communication terminal, particularly a kind of compatible Nor Flash erasing on mobile phone implementation method.
Background technology
Along with the development of mobile communication, cell-phone function is become stronger day by day, and product is also more and more diversified simultaneously, the difference of function and properties of product variation.Concerning the core devices Flash of mobile phone, inevitable also will have very big otherness.Because electronic device is of a great variety, it is very fast to update in addition, and all kinds of Flash manufacturer requires also to be not quite similar to its read-write.Prior art is to the write operation of Nor type Flash, and each Flash needs the corresponding file that writes, and its concrete operating process as shown in Figure 1.As the Flash of Intel instruction set series, need the file that writes of Intel form; The Flash of AMD instruction set series needs the file that writes of AMD form; Belong to the Flash of Intel series or AMD series, because the difference of its capacity, each writes file and still will need provide separately according to the configuration of the concrete Flash of each money.Like this development and production phase are all brought to a certain degree puzzlement,, reduce the miscellaneous affairs in the software development, press for the download work that a kind of instrument can be finished different all Flash of cell phone platform for enhancing productivity.Except needing to improve on the software, hardware designs need be considered the configuration of compatible current most Flash equally, as the compatibility in Flash core voltage and the encapsulation etc.
Summary of the invention
The object of the present invention is to provide a kind of compatible Nor Flash erasing on mobile phone implementation method, mainly solve the defective of above-mentioned prior art, this method all can realize in the portable terminal of different platform, and can enhance productivity, and reduces later stage software maintenance affairs simultaneously.
For achieving the above object, technical scheme of the present invention is:
A kind of compatible Nor Flash erasing on mobile phone implementation method is characterized in that it comprises the steps:
Steps A is connected the download port of mobile phone with the hardware that the download port of PC is connected to form download platform, this download platform is done initialization setting before downloading according to the configuring condition of Nor type Flash in the mobile phone;
Step B, the PC end of this download platform has the instruction set of different series, and this download platform reads the interior Nor type Flash of mobile phone and goes up the value of particular register address, and determines according to this certain instruction set is downloaded to mobile phone;
Step C, the value that reads particular register address on the mobile phone of this download platform to be obtaining the device number information of Nor type Flash, and according to manufacturer's information and the relevant Flash information of facility information configuration;
Step D carries out relevant erasable operation.
Described compatible Nor Flash erasing on mobile phone implementation method is characterized in that described step C further comprises:
Step C1 judges whether the device number information of Nor type Flash exists in the register address; If, execution in step C2 then; If not, execution in step C3 then;
Step C2 reads the value of this register address, obtains the device number information of Nor type Flash, and execution in step C4;
Step C3 reads the value of other register address, and according to the device number information of the information acquisition Nor type Flash in these register addresss;
Step C4 is according to manufacturer's information and the relevant Flash information of facility information configuration.
Described compatible Nor Flash erasing on mobile phone implementation method is characterized in that mobile phone is connected by the hardware that serial ports is connected to form download platform with PC in the described steps A.
Described compatible Nor Flash erasing on mobile phone implementation method, it is characterized in that downloading according to difference in signal, master clock frequency, mobile phone serial ports, mobile phone serial ports baud rate and the mobile phone of Nor type Flash chip in the mobile phone in the described steps A information such as address configuration of blocks, this download platform is done the initialization setting.
Described compatible Nor Flash erasing on mobile phone implementation method is characterized in that using in the described steps A USB to change the equipment of serial ports.
Described compatible Nor Flash erasing on mobile phone implementation method, the device number information that it is characterized in that this Nor type Flash are back 8 formation of getting three register addresss respectively.
Described compatible Nor Flash erasing on mobile phone implementation method is characterized in that the relevant Flash information of configuration comprises among the described step C4: Bank, Sector, CS, PageMode.
By said structure, the present invention mainly has following advantage:
The inventive method all can realize in the portable terminal of different platform, belong to moving communicating field.Present stage is divided into high-end, middle-end and low side in the location of mobile phone on the market and since towards customers' difference, the feature of all kinds mobile phone also is not quite similar, thus needed Flash device is widely different in the mobile phone.For Nor type Flash, all can there be the manufacturing process of oneself in different manufacturers, use different instruction set, and this brings challenges just for the download work of Flash.The how download work of most Nor type Flash on the compatible mobile phone is exactly the problem to be solved in the present invention.By reading manufacturer's information and device number information, be used for distinguishing different manufacturers, different types of Nor type Flash, according to the difference of these information, set Bank size, the Sector size of this Flash, mode of Write etc., thereby realize the compatibility of most Nor type Flash.If the Flash commonly used of intra-company has 4 classes, can improve 4 times production efficiency by this method, reduce later stage software maintenance affairs simultaneously.
Description of drawings
Fig. 1 is the flow chart of existing Nor Flash erasing on mobile phone implementation method.
Fig. 2 is the flow chart of the inventive method.
Embodiment
See also Fig. 2, the invention discloses a kind of compatible Nor Flash erasing on mobile phone implementation method, it comprises the steps:
Steps A is connected the download port of mobile phone with the hardware that the download port of PC is connected to form download platform, this download platform is done initialization setting before downloading according to the configuring condition of Nor type Flash in the mobile phone.
The present invention mainly is a situation about downloading by serial ports, no matter what pins are download interface have, by the mode that serial ports is downloaded, reception/transmission pin, the downloading mode that all must comprise serial ports on the mobile phone hardware circuit design are selected pin, power supply and ground signalling pin.Mobile phone is connected by the hardware that serial ports is connected to form download platform with PC in the steps A, it does the initialization setting according to the different information such as address configuration of downloading block in signal, master clock frequency, mobile phone serial ports, mobile phone serial ports baud rate and the mobile phone of Nor type Flash chip in the mobile phone to this download platform.On production line, for improving down efficient, change the equipment of serial ports by USB at Flash, every PC can realize downloading simultaneously 8 mobile phones (different USB changes the equipment of serial ports, supports that the mobile phone quantity of downloading simultaneously is also different).
Step B, the PC end of this download platform has the instruction set of different series, and this download platform reads the interior Nor type Flash of mobile phone and goes up the value of particular register address, and determines according to this certain instruction set is downloaded to mobile phone; Trading company of factory information generally is stored in the position of 0xXX00, and the manufacturer of different Flash is different to deserved manufacturer information.
Step C, the value that reads particular register address on the mobile phone of this download platform to be obtaining the device number information of Nor type Flash, and according to manufacturer's information and the relevant Flash information of facility information configuration;
Step D carries out relevant erasable operation.
Described step C further comprises:
Step C1 judges whether the device number information of Nor type Flash exists in the register address; If, execution in step C2 then; If not, execution in step C3 then;
Step C2 reads the value of this register address, obtains the device number information of Nor type Flash, and execution in step C4;
Step C3 reads the value of other register address, and according to the device number information of the information acquisition Nor type Flash in these register addresss;
Step C4 according to manufacturer's information and the relevant Flash information of facility information configuration, comprises Bank, Sector, CS, PageMode.
Concrete as: device number information is according to the Flash of different series, and address stored is also different, mainly is stored in 0xXX01,0xXX0E and 0xXX0F place.Flash for compatible all will make differentiation according to these trading company of factory information and device number information.Trading company of factory information spinner will be distinguished the instruction set type of Flash, as: AMD series, Intel series of instructions collection etc.If device number information only is stored in the 0xXX01 place, it is taken out gets final product; Be stored in 3 addresses, get back 8 of 0xXX01, back 8 of 0xXX0E, back 8 of 0xXX0F respectively, form 24 bit data, this 24 bit data just can distinguish most of Flash types commonly used basically.A Flash with AMD series is an example, the data of its 0xXX01 are 0x227E, the data of 0xXX0E are 0x2263, the data of 0xXX0F are 0x2260, its device number information is 0x7E6360 so, just can carry out detailed configuration to certain a concrete Flash according to this unique device number information, comprises the amount of capacity of Flash, the size of each Sector, Boot flag bit etc.
Being preferred embodiment of the present invention only in sum, is not to be used for limiting practical range of the present invention.Be that all equivalences of doing according to the content of the present patent application claim change and modification, all should be technology category of the present invention.
Claims (7)
1, a kind of compatible Nor Flash erasing on mobile phone implementation method is characterized in that it comprises the steps:
Steps A is connected the download port of mobile phone with the hardware that the download port of PC is connected to form download platform, this download platform is done initialization setting before downloading according to the configuring condition of Nor type Flash in the mobile phone;
Step B, the PC end of this download platform has the instruction set of different series, and this download platform reads the interior Nor type Flash of mobile phone and goes up the value of particular register address, and determines according to this certain instruction set is downloaded to mobile phone;
Step C, the value that reads particular register address on the mobile phone of this download platform to be obtaining the device number information of Nor type Flash, and according to manufacturer's information and the relevant Flash information of facility information configuration;
Step D carries out relevant erasable operation.
2, compatible Nor Flash erasing on mobile phone implementation method according to claim 1 is characterized in that described step C further comprises:
Step C1 judges whether the device number information of Nor type Flash exists in the register address; If, execution in step C2 then; If not, execution in step C3 then;
Step C2 reads the value of this register address, obtains the device number information of Nor type Flash, and execution in step C4;
Step C3 reads the value of other register address, and according to the device number information of the information acquisition Nor type Flash in these register addresss;
Step C4 is according to manufacturer's information and the relevant Flash information of facility information configuration.
3, compatible Nor Flash erasing on mobile phone implementation method according to claim 1 and 2 is characterized in that mobile phone is connected by the hardware that serial ports is connected to form download platform with PC in the described steps A.
4, compatible Nor Flash erasing on mobile phone implementation method according to claim 3, it is characterized in that downloading according to difference in signal, master clock frequency, mobile phone serial ports, mobile phone serial ports baud rate and the mobile phone of Nor type Flash chip in the mobile phone in the described steps A information such as address configuration of blocks, this download platform is done the initialization setting.
5, compatible Nor Flash erasing on mobile phone implementation method according to claim 1 and 2 is characterized in that using in the described steps A USB to change the equipment of serial ports.
6, compatible Nor Flash erasing on mobile phone implementation method according to claim 2, the device number information that it is characterized in that this Nor type Flash are back 8 formation of getting three register addresss respectively.
7, compatible Nor Flash erasing on mobile phone implementation method according to claim 2 is characterized in that the relevant Flash information of configuration comprises among the described step C4: Bank, Sector, CS, PageMode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100342431A CN101237653A (en) | 2008-03-05 | 2008-03-05 | A realization method for compatible Nor Flash erasing on mobile phone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100342431A CN101237653A (en) | 2008-03-05 | 2008-03-05 | A realization method for compatible Nor Flash erasing on mobile phone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101237653A true CN101237653A (en) | 2008-08-06 |
Family
ID=39920951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008100342431A Pending CN101237653A (en) | 2008-03-05 | 2008-03-05 | A realization method for compatible Nor Flash erasing on mobile phone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101237653A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951434A (en) * | 2010-08-31 | 2011-01-19 | 上海闻泰电子科技有限公司 | Method for protecting disposable data of mobile phone |
-
2008
- 2008-03-05 CN CNA2008100342431A patent/CN101237653A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951434A (en) * | 2010-08-31 | 2011-01-19 | 上海闻泰电子科技有限公司 | Method for protecting disposable data of mobile phone |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101695088B (en) | Module identification method and terminal | |
CN101552834B (en) | Portable radio frequency read/write component for mobile phone | |
CN101330684B (en) | Method for controlling effective communication distance based on radio frequency SIM card | |
CN201035568Y (en) | USB equipment logical numbering and physical numbering mapping device | |
CN102664043B (en) | Device and method for test of smart SD card realizing mobile payment | |
CN104636306B (en) | A kind of SCM Based RFFE host device interfaces transplantation device and method | |
CN101719958B (en) | Method for STK service processing and mobile terminal | |
CN103067909B (en) | Realize method and the device of pintle hook lock | |
CN102081542A (en) | Calibration data recovery method | |
CN101384037B (en) | Establishing method for special data channel between mobile application and intelligent card | |
CN201210753Y (en) | Data line for connecting peripheral device by double mode mobile terminal | |
CN101237653A (en) | A realization method for compatible Nor Flash erasing on mobile phone | |
CN101047917A (en) | Method and device for multi-card mobile phone dialing on network | |
CN104915706A (en) | External device of mobile terminal | |
CN202351915U (en) | Mobile payment SD (Secure Digital) card based on SWP (Single Wire Protocol) | |
CN104717767A (en) | Communication chip integrated with SIM card | |
CN201425750Y (en) | Micro SD card | |
CN101330303A (en) | Method for automatically adjusting effective communication distance of radio frequency SIM card through short message | |
CN110910105A (en) | Portable operation terminal of virtual coin based on block chain | |
CN103902298B (en) | Method to set up and the device of status information write with a brush dipped in Chinese ink by a kind of instruction set firmware | |
CN102752753B (en) | A kind of method and mobile radio terminal of control ZigBee-network | |
CN101908028A (en) | Method and system for realizing input/output (IO) expansion through standard secure digital (SD) memory interface | |
CN101640946B (en) | Method for external connection of storage card for mobile phone | |
CN101330710A (en) | Test system for SIM card popularization application | |
CN201629786U (en) | Intelligent one-card mobile phone with RFID function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20080806 |