CN101510180A - Software processing method automatically compatible with multiple model FLASH - Google Patents
Software processing method automatically compatible with multiple model FLASH Download PDFInfo
- Publication number
- CN101510180A CN101510180A CNA2009103011914A CN200910301191A CN101510180A CN 101510180 A CN101510180 A CN 101510180A CN A2009103011914 A CNA2009103011914 A CN A2009103011914A CN 200910301191 A CN200910301191 A CN 200910301191A CN 101510180 A CN101510180 A CN 101510180A
- Authority
- CN
- China
- Prior art keywords
- flash
- read
- type
- software
- model
- 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
- Stored Programmes (AREA)
Abstract
The invention relates to the field of embedded software, in particular to a method for processing software automatically compatible with various types of FLASH. The invention discloses a method for processing the software automatically compatible with various types of FLASH. The key points of the technical proposal are as follows: the method for processing the software automatically compatible with various types of FLASH comprises the following steps: a. when the system is initialized, the characteristic IDs of the FLASH are read so as to identify the category and the type of the FLASH; b. the corresponding initialization program is called to initialize the corresponding FLASH according to the identified category and type of the FLASH; and c. the corresponding read-write drive program is called to execute the read-write operation according to the identified category and type of the FLASH. The invention has the following beneficial effects: the adoption of one edition of software can realize the compatibility to various types of FLASH; the maintenance is simple; and the error occurrence is not easy; and the invention is applicable to the development of embedded software.
Description
Technical field
The present invention relates to field of embedded software, relate in particular to a kind of software processing method of automatic compatible with multiple model FLASH.
Background technology
Embedded product in the market is ubiquitous, and the memory device of embedded product all is to adopt FLASH (flash memory) basically, is used to store corresponding program and data.And the FLASH of appearance in the market is of a great variety, and the driver that different production firms provides is also different.In the prior art, when embedded product uses the FLASH of fixed type, may be owing to its corresponding driver is changed in the update of FLASH, the software that regenerates a version is safeguarded, will cause same embedded product to need a plurality of different software versions to safeguard that maintenance is also made mistakes greatly easily like this.
Summary of the invention
Technical matters to be solved by this invention is: at deficiency of the prior art, propose the software processing method of the multiple model FLASH of a kind of automatic compatible processing.
The technical scheme that the present invention solves the problems of the technologies described above employing is: a kind of software processing method of automatic compatible with multiple model FLASH may further comprise the steps:
A. during system initialization, read the characteristic ID of FLASH, type and the model of identification FLASH;
B. according to type and the model of the FLASH that discerns, call the FLASH of corresponding initialize routine initialization correspondence;
C. according to type and the model of the FLASH that discerns, call corresponding read-write driver and carry out read-write motion.
The invention has the beneficial effects as follows: only adopt a software version to get final product the FLASH of compatible multiple model, safeguard simply, be difficult for makeing mistakes.
Description of drawings
Fig. 1 is a method flow diagram of the present invention;
Fig. 2 is the initialization flow process to multiple model FLASH compatibility;
Fig. 3 is the read-write flow process to multiple model FLASH compatibility.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
As shown in Figure 1, the software processing method among the present invention adopts following steps to implement: during a. system initialization, read the characteristic ID of FLASH, type and the model of identification FLASH; B. according to type and the model of the FLASH that discerns, call the FLASH of corresponding initialize routine initialization correspondence; C. according to type and the model of the FLASH that discerns, call corresponding read-write driver and carry out read-write motion.
Embodiment:
At first when system initialization, read the characteristic ID of FLASH, type and the model of identification FLASH as shown in Figure 2, judge whether to be FLASH1 according to its type and model, if, then call the FLASH1 initialize routine it is carried out initialization, if not, then judge whether to be FLASH2, if then call the initialize routine of FLASH2 it is carried out initialization, if not then continuing to judge whether to be other models FLASH.When application program need be read and write FLASH, as shown in Figure 3, FLASH type and model according to identification judge whether to be FLASH1, if, the read-write driver that then calls FLASH1 carries out read-write operation, if not then judging whether to be FLASH2, carry out read-write operation if then call the read-write driving of FLASH2, if not then continuing to judge whether to be other types FLASH.
Claims (1)
- The software processing method of [claim 1] a kind of automatic compatible with multiple model FLASH is characterized in that: may further comprise the steps:A. during system initialization, read the characteristic ID of FLASH, type and the model of identification FLASH;B. according to type and the model of the FLASH that discerns, call the FLASH of corresponding initialize routine initialization correspondence;C. according to type and the model of the FLASH that discerns, call corresponding read-write driver and carry out read-write motion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2009103011914A CN101510180A (en) | 2009-03-27 | 2009-03-27 | Software processing method automatically compatible with multiple model FLASH |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2009103011914A CN101510180A (en) | 2009-03-27 | 2009-03-27 | Software processing method automatically compatible with multiple model FLASH |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101510180A true CN101510180A (en) | 2009-08-19 |
Family
ID=41002583
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2009103011914A Pending CN101510180A (en) | 2009-03-27 | 2009-03-27 | Software processing method automatically compatible with multiple model FLASH |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101510180A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662913A (en) * | 2012-03-29 | 2012-09-12 | 佛山华芯微特科技有限公司 | Method and MCU (microcontroller unit) chip for improving storage performance of MCU |
CN103164364A (en) * | 2011-12-16 | 2013-06-19 | 希姆通信息技术(上海)有限公司 | Flash chip compatible method |
CN107729067A (en) * | 2017-09-11 | 2018-02-23 | 北京东土科技股份有限公司 | A kind of register method and device of FLASH chip driving |
CN107729083A (en) * | 2014-04-30 | 2018-02-23 | 华为技术有限公司 | The method and embedded device of a kind of load driver program |
-
2009
- 2009-03-27 CN CNA2009103011914A patent/CN101510180A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164364A (en) * | 2011-12-16 | 2013-06-19 | 希姆通信息技术(上海)有限公司 | Flash chip compatible method |
CN102662913A (en) * | 2012-03-29 | 2012-09-12 | 佛山华芯微特科技有限公司 | Method and MCU (microcontroller unit) chip for improving storage performance of MCU |
CN107729083A (en) * | 2014-04-30 | 2018-02-23 | 华为技术有限公司 | The method and embedded device of a kind of load driver program |
CN107729083B (en) * | 2014-04-30 | 2021-02-12 | 华为技术有限公司 | Method for loading driver and embedded device |
CN107729067A (en) * | 2017-09-11 | 2018-02-23 | 北京东土科技股份有限公司 | A kind of register method and device of FLASH chip driving |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101510180A (en) | Software processing method automatically compatible with multiple model FLASH | |
CN103092647A (en) | Online upgrade method of embedded system | |
CN103677885B (en) | A kind of method of ARM FLASH simple program programming | |
CN103049404B (en) | Method and system for obtaining android mobile phone model | |
CN101901154A (en) | Method for realizing upgrade and maintenance of equipment programs based on USB Host and U disc | |
WO2007034481A3 (en) | A nand flash memory controller exporting a nand interface | |
CN100472440C (en) | A method for hardware drive program of intelligent loading mobile phone | |
WO2006138522A3 (en) | Interrupt-responsive non-volatile memory system and method | |
CN102566941A (en) | Method for recognizing serial advanced technology attachment (SATA) hard disk through serial attached SCSI (SAS) hard disk expander | |
CN1885922A (en) | Method for carrying out TV set software upgrade and its device | |
CN103176815A (en) | Sewing machine control method of carrying out software updating by utilizing external memory | |
CN101938595A (en) | Flash storage-based remote control self-learning method | |
CN105045529A (en) | Operation and maintenance management system and method for computer disk array cards | |
CN2921952Y (en) | Mobile terminal capable of intelligently loading hardware | |
CN104750430B (en) | A kind of access method of NAND Flash interface and device | |
CN103345413A (en) | Method and device for updating codes and electronic equipment | |
CN103809938A (en) | Python function operation information automatic recording method and system | |
CN203054471U (en) | Adaptive tabouret identification system | |
CN102566937A (en) | Flash memory device and operation method thereof | |
CN107729067B (en) | Registration method and device for FLASH chip drive | |
CN101867737A (en) | Software processing method capable of being compatible with various models of FLASH based on set-top box | |
CN101201741A (en) | Circuit capable of on-line system programming and method for on-line system programming | |
CN103747113A (en) | Method for automatically recognizing MII (Media Independent Interface) address of PHY (Physical Layer) chip of Ethernet controller | |
CN105589819B (en) | A method of based on IIC interface operation eeprom chip | |
CN204189165U (en) | A kind of smart machine and embedded device carry out the device of data transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20090819 |