A kind of system detecting method and device based on NAND Flash
Technical field
The present invention relates to detection technique field, particularly relate to a kind of system detecting method and device based on NAND Flash.
Background technology
NAND Flash(and NOT-AND flash) be the one of flash memory, the non-linear macroelement pattern of its inner employing, for the realization of solid-state large-capacity internal memory provides cheap effective solution.It is large that NAND Flash storer has capacity, rewriting speed is fast, low cost and other advantages, be applicable to the storage operation of mass data, thereby in the industry cycle obtained more and more widely application, the fields such as USB flash disk, solid state hard disc and Digital Television as small and exquisite in the storage card of digital camera, volume.In the system that uses NAND Flash as program code and data carrier, conventionally the program code in NAND Flash and data need to be recalled to operation and operation in dynamic random access memory.Need to detect the system that uses NAND Flash, such as, whether the chip of NAND Flash and circuit be working properly, whether OK of the software code of storing in NAND Flash or data, whether each functional module work in system is normal etc., in prior art, before production in enormous quantities, for whether OK of the software code of checking batch production and data, often need to carry out SMT after first programming a slice NAND Flash and mount checking, spend the cost of components and parts and time.
Summary of the invention
The object of the invention is to overcome the deficiency of prior art, a kind of system detecting method and device based on NAND Flash is provided, by designing one for connecting the signaling interface that stores the program code of system testing and the 2nd NAND Flash of data, can be in the case of not affecting and destroying the priginal soft code and data of a NAND Flash loading, carry out detailed Function detection for system, both reach the object that can reduce costs, reached again the feature of energy Rapid Detection system failure point.
The technical solution adopted for the present invention to solve the technical problems is: a kind of system detecting method based on NAND Flash, be preset one and can be used for connecting the signaling interface that stores the program code of system testing and the 2nd NAND Flash of data, the method comprises the steps:
A. by described signaling interface access the 2nd NAND Flash system detection module;
B. shield a NAND Flash by selector switch;
C. host CPU reads test program code and the test data in the 2nd NAND Flash system detection module;
D. host CPU judges the above-mentioned OK that whether reads, and judged result is yes, continues next step, and judged result is no, points out NAND FLASH interface or the circuit of host CPU to be out of order;
E. test program code and test data enter the operation of DDR module;
F. host CPU judges whether OK of above-mentioned test run, and judged result is yes, continues next step, and judged result is no, points out the ddr interface of DDR module or main CPU system to be out of order;
G. the each functional module in initialization system;
H. host CPU judges the whether OK of initialization of each functional module, and judged result is yes, continues next step, and judged result is no, and the circuit of the communication between prompt facility module and host CPU or functional module is out of order;
I. host CPU checks respectively the detailed functions of each module;
J. host CPU judges respectively the whether OK of detailed functions of each functional module, and judged result is yes, and systems inspection completes, and judged result is no, and prompt facility module is out of order.
Based on a system detecting device of NAND Flash, comprising:
Main CPU system, its role is to be responsible for reading program code and the data in NAND Flash, is allowed to condition at operation and operation in DDR module, completes the initialization that whole system comprises Graphics Processing module, user instruction receiver module and sound processing module; And by with the operation task of all demands of interactive action completing user of user instruction receiving processing module;
DDR module, as the interim dynamic storing carrier of all computings of system, is connected with main CPU system, is both responsible for the operation of software code and data, is responsible for showing again the storage of data and voice data interactive operation and computing;
Graphics Processing module, is connected with the output of main CPU system, is used for the demonstration output of main CPU system to process, and shows corresponding picture signal;
Acoustic processing module, is connected with the output of main CPU system, is used for the audio frequency output of main CPU system to process, and exports corresponding voice signal;
User instruction receiver module, is connected with the input of main CPU system, is used for to main CPU system input user instruction signal;
The one NAND Flash, is connected with main CPU system, is that the one NAND Flash is directly mounted on system board for storing the original program code of native system and data;
The 2nd NAND Flash signaling interface, is arranged on system board, and the 2nd NAND Flash signaling interface is connected with main CPU system;
The 2nd NAND Flash system detection module, is used for program code and the data of memory system testing, and the 2nd NAND Flash system detection module is connected with main CPU system by the 2nd NAND Flash signaling interface.
Further, also comprise an either-or switch, the input of this either-or switch is connected with the chip selection signal pin of main CPU system, and the output of this either-or switch is connected with the chip selection signal pin of the 2nd NAND Flash system detection module with the chip selection signal pin of a NAND Flash respectively; The control end of this either-or switch is connected with the 2nd NAND Flash signaling interface.
A kind of system detecting device based on NAND Flash of the present invention is to be made up of main CPU system, a NAND Flash, the 2nd NAND Flash signaling interface, the 2nd NAND Flash system detection module, DDR module, Graphics Processing module, acoustic processing module and user instruction receiver module; Main CPU system is the center arithmetic element of native system, it is responsible for reading program code and data in NAND Flash, be allowed to condition at operation and operation in DDR module, complete the initialization that whole system comprises Graphics Processing module, user instruction receiver module and sound processing module, then, by with the operation task of all demands of interactive action completing user of user instruction receiving processing module; DDR module is the interim dynamic storing carrier of all computings of native system, is both responsible for the operation of software code and data, is responsible for showing again the storage of data and voice data interactive operation and computing; Graphics Processing module, acoustic processing module and user instruction receiver module are the doors of native system man-machine interaction, user can be by the interaction of the realization of user instruction receiver module and system, and see required image information by Graphics Processing module, hear required acoustic information by acoustic processing module; The one NAND Flash, for storing the original program code of native system and data, is to be directly mounted on system board; The 2nd NAND Flash detection system comprises the 2nd NAND Flash signaling interface and the 2nd NAND Flash system detection module, in application, can on system board, reserve the 2nd NAND Flash signaling interface, carry out system while detecting in detail at needs, then by the plug into system detection module examinations of the 2nd NAND Flash of the 2nd NAND Flash signaling interface.The 2nd NAND Flash system detection module is independent of a NAND Flash system, is to carry out interactive operation by the 2nd NAND Flash signaling interface and main CPU system; The 2nd NAND Flash system detection module also comprises a NAND Flash chip, it can load the testing software code and the data that need, and it can not affect and destroy priginal soft code and the data of a NAND Flash loading completely with the interactive operation of main CPU system.The present invention is the chip selection signal pin #CE(CHIPENABLE that utilizes NAND Flash in actual applications) realize the blocked operation between a NAND Flash system and the 2nd NAND Flash system.In the time that needs are applied the 2nd NAND Flash system detection module, by the switch of alternative, by #CE signal access the 2nd NAND Flash system detection module of main CPU system, realize and detect operation.In the time that needs move priginal soft code and data, also can, by the switch of alternative, by #CE signal access the one NAND Flash system of main CPU system, carry out software contrastive test.
A kind of system detecting method based on NAND Flash of the present invention, first be the system that the 2nd NAND Flash system detection module access is needed to test, by the switch of alternative, a NANDFlash in shielding harness, by #CE signal access the 2nd NAND Flash system detection module of the chip selection signal pin of main CPU system, can prepare to start to detect operation;
Then, the host CPU in system starts to read test program code and the test data in the 2nd NAND Flash, is allowed to condition in DDR module and moves; This step can verify main CPU system and DDR module whether working properly, whether interface circuit that simultaneously can check system NAND Flash working properly.
Then, start the functional module in initialization system, comprise Graphics Processing module, acoustic processing module and user instruction receiver module; In initialized process, can check that whether the communication between each module and host CPU is normal; Whether the hardware circuit of each module is working properly etc.
Finally, be the detailed functions that checks respectively each module; Whether function that can the each module of detailed inspection is working properly.
The invention has the beneficial effects as follows, owing to having adopted main CPU system, a NAND Flash, the 2nd NAND Flash signaling interface, the 2nd NAND Flash system detection module, DDR module, Graphics Processing module, acoustic processing module and user instruction receiver module to form the system detecting device based on NAND Flash; This pick-up unit is to realize system detection by designing a signaling interface that stores the program code of system testing and the 2nd NAND Flash of data for connecting, can be in the case of not affecting and destroying the priginal soft code and data of a NANDFlash loading, carry out detailed Function detection for system, both reach the object that can reduce costs, reached again the feature of energy Rapid Detection system failure point.
Compared with prior art, there is following beneficial effect:
The one,, can judge that whether the chip of the NAND Flash in system and circuit be working properly;
The 2nd,, can judge whether OK of the priginal soft code stored in a NAND Flash or data;
The 3rd,, in the case of not changing the compare test of carrying out new, old software code and data the old software code of a NAND Flash storage and data, find problem point fast;
The 4th,, whether each functional module work in can check system is normal;
The 5th,, can not need to carry out the process that chip SMT mounts, just can easily verify whether OK of the software code of batch production and data.
Below in conjunction with drawings and Examples, the present invention is described in further detail; But a kind of system detecting method and device based on NAND Flash of the present invention is not limited to embodiment.
Brief description of the drawings
Fig. 1 is the theory diagram of device of the present invention;
Fig. 2 is the distribution schematic diagram of the signal pins of the NAND FLASH chip of device of the present invention;
Fig. 3 is the connection diagram of the 2nd NAND Flash signaling interface of device of the present invention;
Fig. 4 (A) is the process flow diagram one of method of the present invention;
Fig. 4 (B) is the flowchart 2 of method of the present invention.
Embodiment
Embodiment, referring to shown in Fig. 1 to Fig. 3, a kind of system detecting device based on NAND Flash of the present invention, comprising:
Main CPU system 1, its role is to be responsible for reading program code and the data in NAND Flash, is allowed to condition at operation and operation in DDR module 2, completes the initialization that whole system comprises Graphics Processing module 3, user instruction receiver module 4 and sound processing module 5; And by with the operation task of all demands of interactive action completing user of user instruction receiving processing module 4;
DDR module 2, as the interim dynamic storing carrier of all computings of system, is connected with main CPU system 1, is both responsible for the operation of software code and data, is responsible for showing again the storage of data and voice data interactive operation and computing;
Graphics Processing module 3, is connected with the output of main CPU system 1, is used for the demonstration output of main CPU system 1 to process, and shows corresponding picture signal;
Acoustic processing module 5, is connected with the output of main CPU system 1, is used for the audio frequency output of main CPU system 1 to process, and exports corresponding voice signal;
User instruction receiver module 4, is connected with the input of main CPU system 1, is used for inputting user instruction signal to main CPU system 1;
The one NAND Flash6, is connected with main CPU system 1, is that the one NAND Flash6 is directly mounted on system board for storing the original program code of native system and data; The one NAND Flash6 is a NAND Flash chip;
The 2nd NAND Flash signaling interface 7, is arranged on system board, and the 2nd NAND Flash signaling interface 7 is connected with main CPU system 1;
The 2nd NAND Flash system detection module 8, is used for program code and the data of memory system testing, and the 2nd NAND Flash system detection module 8 is connected with main CPU system 1 by the 2nd NAND Flash signaling interface 7.
Further, also comprise an either-or switch 9, the input of this either-or switch 9 is connected with the chip selection signal pin of main CPU system 1, and the output of this either-or switch 9 is connected with the chip selection signal pin of the 2nd NAND Flash system detection module 8 with the chip selection signal pin of a NAND Flash6 respectively; The control end of this either-or switch 9 is connected with the 2nd NAND Flash signaling interface 7.
A kind of system detecting device based on NAND Flash of the present invention is to be made up of main CPU system 1, a NAND Flash6, the 2nd NAND Flash signaling interface 7, the 2nd NAND Flash system detection module 8, DDR module 2, Graphics Processing module 3, acoustic processing module 5 and user instruction receiver module 4; Main CPU system 1 is the center arithmetic element of native system, it is responsible for reading program code and data in NAND Flash, be allowed to condition at operation and operation in DDR module 2, complete the initialization that whole system comprises Graphics Processing module 3, user instruction receiver module 4 and sound processing module 5, then, by with the operation task of all demands of interactive action completing user of user instruction receiving processing module 4; DDR module 2 is interim dynamic storing carriers of all computings of native system, is both responsible for the operation of software code and data, is responsible for showing again the storage of data and voice data interactive operation and computing; Graphics Processing module 3, acoustic processing module 5 and user instruction receiver module 4 are doors of native system man-machine interaction, user can be by the interaction of 4 realizations of user instruction receiver module and system, and see required image information by Graphics Processing module 3, hear required acoustic information by acoustic processing module 5; The one NAND Flash6, for storing the original program code of native system and data, is to be directly mounted on system board; The 2nd NAND Flash detection system comprises the 2nd NAND Flash signaling interface 7 and the 2nd NAND Flash system detection module 8, in application, can on system board, reserve the 2nd NAND Flash signaling interface 7, carry out system while detecting in detail at needs, then by plug into system detection module 8 examinations of the 2nd NAND Flash of the 2nd NAND Flash signaling interface 7.The 2nd NAND Flash system detection module 8 is independent of a NAND Flash system 6, is to carry out interactive operation by the 2nd NAND Flash signaling interface 7 with main CPU system 1; The 2nd NAND Flash system detection module 8 also comprises a NAND Flash chip, it can load the testing software code and the data that need, and it can not affect and destroy priginal soft code and the data of a NAND Flash6 loading completely with the interactive operation of main CPU system 1.The present invention is the chip selection signal pin #CE(CHIP ENABLE that utilizes NAND Flash in actual applications) realize the blocked operation between a NAND Flash system and the 2nd NAND Flash system.In the time that needs are applied the 2nd NAND Flash system detection module, by the switch of alternative, by #CE signal access the 2nd NAND Flash system detection module 8 of main CPU system 1, realize and detect operation.In the time that needs move priginal soft code and data, also can, by the switch of alternative, by #CE signal access the one NAND Flash system 6 of main CPU system, carry out software contrastive test.
A kind of system detecting device based on NAND Flash of the present invention, the 2nd NAND Flash signaling interface 7 is that as shown in Figure 2, the signal of NAND FLASH chip has 8 data-signal pin IO0 ~ IO7 according to the Design of Signal of NAND FLASH chip pin; Power supply signal pin Vcc; Earth signal pin Vss; Order locking signal enables pin CLE(COMMAND LATCH ENABLE); Address locking signal enables pin ALE(ADDRESS LATCH ENABLE); Chip selection signal pin #CE(CHIP ENABLE); Read signal enables pin #RE(READ ENABLE); Write signal enables pin #WE(WRITE ENABLE); Write protect signal pin #WP(WRITE PROTECT) and prepare OK/ busy signal output pin R/#B(READY/BUSY OUTPUT).Except chip selection signal pin #CE signal, all the other signals are all directly connected to the NAND FLASH interface of main CPU system, in parallel with the signal pins of a NAND FLASH.The chip selection signal pin #CE of main CPU system, by the selector switch of an alternative, is connected to the #CE1 pin of a NAND FLASH and the CE2# pin of the 2nd NAND FLASH.The present invention is exactly the chip selection signal pin #CE(CHIP ENABLE that utilizes NAND FLASH in actual applications) realize the blocked operation between a NAND FLASH system and the 2nd NAND FLASH system.In the time that needs are applied the 2nd NAND FLASH system detection module, by the switch of alternative, by #CE signal access the 2nd NAND FLASH system detection module of main CPU system, realize and detect operation.In the time that needs move priginal soft code and data, also can, by the switch of alternative, by #CE signal access the one NAND FLASH system of main CPU system, carry out software contrastive test.
The 2nd NAND FLASH system detection module of the present invention can, in the case of not affecting and destroying the priginal soft code and data of a NAND FLASH loading, carry out detailed Function detection for system, to reach the effect of Rapid Detection system failure point.
Shown in Fig. 4 (A), Fig. 4 (B), a kind of system detecting method based on NAND Flash of the present invention, be preset one and can be used for connecting the signaling interface that stores the program code of system testing and the 2nd NAND Flash of data, the method comprises the steps:
A. by described signaling interface access the 2nd NAND Flash system detection module;
B. shield a NAND Flash by selector switch;
C. host CPU reads test program code and the test data in the 2nd NAND Flash system detection module;
D. host CPU judges the above-mentioned OK that whether reads, and judged result is yes, continues next step, and judged result is no, points out NAND FLASH interface or the circuit of host CPU to be out of order;
E. test program code and test data enter the operation of DDR module;
F. host CPU judges whether OK of above-mentioned test run, and judged result is yes, continues next step, and judged result is no, points out the ddr interface of DDR module or main CPU system to be out of order;
G. the each functional module in initialization system;
H. host CPU judges the whether OK of initialization of each functional module, and judged result is yes, continues next step, and judged result is no, and the circuit of the communication between prompt facility module and host CPU or functional module is out of order;
I. host CPU checks respectively the detailed functions of each module;
J. host CPU judges respectively the whether OK of detailed functions of each functional module, and judged result is yes, and systems inspection completes, and judged result is no, and prompt facility module is out of order.
A kind of system detecting method based on NAND Flash of the present invention, first be the system that the 2nd NAND Flash system detection module access is needed to test, by the switch of alternative, a NAND Flash in shielding harness, by #CE signal access the 2nd NAND Flash system detection module of the chip selection signal pin of main CPU system, can prepare to start to detect operation;
Then, the host CPU in system starts to read test program code and the test data in the 2nd NAND Flash, is allowed to condition in DDR module and moves; This step can verify main CPU system and DDR module whether working properly, whether interface circuit that simultaneously can check system NAND Flash working properly.
Then, start the functional module in initialization system, comprise Graphics Processing module, acoustic processing module and user instruction receiver module; In initialized process, can check that whether the communication between each module and host CPU is normal; Whether the hardware circuit of each module is working properly etc.
Finally, be the detailed functions that checks respectively each module; Whether function that can the each module of detailed inspection is working properly.
Above-described embodiment is only used for further illustrating a kind of system detecting method and device based on NAND Flash of the present invention; but the present invention is not limited to embodiment; any simple modification, equivalent variations and modification that every foundation technical spirit of the present invention is done above embodiment, all fall in the protection domain of technical solution of the present invention.