CN101211291A - Method for testing memory in embedded system - Google Patents

Method for testing memory in embedded system Download PDF

Info

Publication number
CN101211291A
CN101211291A CNA2006100227311A CN200610022731A CN101211291A CN 101211291 A CN101211291 A CN 101211291A CN A2006100227311 A CNA2006100227311 A CN A2006100227311A CN 200610022731 A CN200610022731 A CN 200610022731A CN 101211291 A CN101211291 A CN 101211291A
Authority
CN
China
Prior art keywords
test
memory
processor
testing
embedded system
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
Application number
CNA2006100227311A
Other languages
Chinese (zh)
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.)
MAIPU (SICHUAN) COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
MAIPU (SICHUAN) COMMUNICATION TECHNOLOGY Co Ltd
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 MAIPU (SICHUAN) COMMUNICATION TECHNOLOGY Co Ltd filed Critical MAIPU (SICHUAN) COMMUNICATION TECHNOLOGY Co Ltd
Priority to CNA2006100227311A priority Critical patent/CN101211291A/en
Publication of CN101211291A publication Critical patent/CN101211291A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a memory testing technology in embedded system technology equipment test and aims to solve the technical problems that: a method for controlling memory testing by software and roundly testing the memory is provided so as to lower the test cost. The invention has the technical proposal of the method for testing the memory in the embedded system. The method has the steps as follow: (1) a memory testing mark is arranged in a parameter register; (2) when a processor runs a basic hardware initializing program in a ROM, whether the memory testing mart is existed is judged; the step (3) is entered if the memory testing mart is existed, and the processor jumps into the memory to run a system initializing program if not; (3) the processor runs the memory testing program in the ROM to roundly test the memory; (4) the test is completed, and the testing result is preserved; (5) an application program starts up in the memory, and the testing result is output to a user interface. The invention has the advantages that the hardware is not required to provide any information, and the hardware design and cost are simplified.

Description

A kind of in embedded system the method for test memory
Technical field
The present invention relates to the memory test technology in the test of embedded system frock.
Background technology
Because in the test of embedded system frock, memory test is a requisite test event, by detecting internal memory, the fault of the solder failure of internal memory or internal memory itself in the discovering device, the qualification rate of raising product export.The method of relatively passing through is at present, by testing apparatus the internal memory of embedded system is tested, owing to increased hardware tools, what bring is exactly that unnecessary hardware tools is bought and handling cost.
Summary of the invention
Technical matters to be solved by this invention is for reducing testing cost, to provide a kind of method that can internally deposit into the software control memory test of capable full test.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, a kind of in embedded system the method for test memory, may further comprise the steps:
A, the memory test sign is set in parameter register;
When b, processor move the basic hardware initialize routine in ROM, judged whether the memory test sign; If enter step c; If not, processor jumps to operational system initialize routine in the internal memory;
C, processor running memory test procedure in ROM internally deposits into capable full test;
D, test finish, and preserve test result;
E, application program output to user interface at internal storage starting with test result.
The invention has the beneficial effects as follows, utilize processor in ROM, to move in the basic hardware initialize routine, judge whether internally to deposit into capable full test by software approach.The present invention uses software approach to enter the memory test pattern, does not need hardware that any information is provided, and has simplified hardware design and hardware cost.
Description of drawings
Fig. 1 is a control flow chart of the present invention.
Embodiment
The startup boot sequence that embedded system is general: system powers on, and processor executes the basic hardware initialize routine in ROM after, jumps in the internal memory and moves, after loading application programs and initialization application program finish, and the system start-up success.When embedded system is moved the basic hardware initialize routine in ROM, be the best opportunity that internally deposits into row test, can internally deposit into capable full test this moment, in case otherwise processor enter in the internal memory behind the working procedure, just can not internally deposit into capable full test.
Among the present invention, the laggard access customer of system start-up interface, if need internally deposit into the row test, then import the memory test order, finish the memory test sign is set in the parameter register of processor, after promptly test command was carried out, system carried out the value record of memory test to a sign in parameter register, as with v0 as the memory test sign, preserve v0 to parameter register a0;
Software systems are restarted, and processor jumps to operation basic hardware initialize routine among the ROM, and the value of preserving parameter register a0 is in register s0, processor executes hardware initialization in ROM after, whether the value of judging register s0 is v0, if v0 then internally deposits into capable full test;
After test finishes, test result r0 is kept among the parameter register a0, processor jumps to operational system initialize routine in the internal memory, at this moment, takes out test result r0 from parameter register a0, is kept at certain location adrs0 in the internal memory.Loading application programs, after application initialization was finished, the ad-hoc location adrs0 from internal memory took out test result r0, outputs to user interface.
If the value of register s0 is not for v0, then is not test pattern, internally do not deposit into the row test, zero clearing parameter register a0 jumps to operational system initialize routine in the internal memory.
As shown in Figure 1, the idiographic flow of operation is as follows:
(1) memory test sign v0 is write among the processor parameter register a0, and processor is jumped to the entry address of the correspondence of ROM;
(2) processor is before ROM operation basic hardware initialize routine, and the value of preserving parameter register a0 is to processor register s0.Move the basic hardware initialize routine then;
(3) processor basic hardware initialization;
(4) whether the value of judging parameter register s0 is memory test sign v0, if then carry out
Otherwise processor jumps to internal memory executive system initialize routine (5);
(5) internally deposit into capable full test;
(6) test result is kept at a0 in the parameter register; Jump to internal memory operational system initialize routine, test result is write on the assigned address adrs0 of internal memory;
(7) application program is at internal storage starting;
(8) output test result.

Claims (4)

1. the method for a test memory in embedded system is characterized in that, may further comprise the steps:
A, the memory test sign is set in parameter register;
When b, processor move the basic hardware initialize routine in ROM, judged whether the memory test sign; If enter step c; If not, processor jumps to operational system initialize routine in the internal memory;
C, processor running memory test procedure in ROM internally deposits into capable full test;
D, test finish, and preserve test result;
E, application program output to user interface at internal storage starting with test result.
2. a kind of according to claim 1 in embedded system the method for test memory, it is characterized in that, described step a specifically: system enters user interface, and user's input test order is finished and write the test sign in parameter register.
As described in the claim 2 a kind of in embedded system the method for test memory, it is characterized in that further comprising the steps of among the described step a: after user's input test order, restart software systems, processor jumps to ROM operation basic hardware initialize routine.
As described in the claim 1,2 or 3 a kind of in embedded system the method for test memory, it is characterized in that the described preservation test result of steps d specifically may further comprise the steps:
D1, processor are saved in its parameter register with test result;
D2, processor jump to internal memory operational system initialize routine;
The test result that d3, processor are preserved parameter register is saved in certain location in the internal memory.
CNA2006100227311A 2006-12-31 2006-12-31 Method for testing memory in embedded system Pending CN101211291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006100227311A CN101211291A (en) 2006-12-31 2006-12-31 Method for testing memory in embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006100227311A CN101211291A (en) 2006-12-31 2006-12-31 Method for testing memory in embedded system

Publications (1)

Publication Number Publication Date
CN101211291A true CN101211291A (en) 2008-07-02

Family

ID=39611333

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006100227311A Pending CN101211291A (en) 2006-12-31 2006-12-31 Method for testing memory in embedded system

Country Status (1)

Country Link
CN (1) CN101211291A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630267B (en) * 2009-08-24 2012-09-05 中兴通讯股份有限公司 Embedded system and control method thereof
CN102999409A (en) * 2012-12-20 2013-03-27 迈普通信技术股份有限公司 Memory test method and embedded equipment
CN104239211A (en) * 2014-09-26 2014-12-24 广东欧珀移动通信有限公司 Method and device for enabling mobile terminal to rapidly enter test mode
CN104268075A (en) * 2014-09-22 2015-01-07 广东欧珀移动通信有限公司 Test mode entry method and device and mobile terminal
CN104615519A (en) * 2015-03-10 2015-05-13 浪潮集团有限公司 Method for detecting loss of memory capacity of server under LINUX system
CN105652115A (en) * 2015-12-25 2016-06-08 广州视源电子科技股份有限公司 Mainboard testing method, mainboard testing system, mainboard program installing method and mainboard program installing system
CN110399257A (en) * 2019-07-04 2019-11-01 上海创功通讯技术有限公司 Detection method, electronic equipment and the computer readable storage medium of memory
WO2020108494A1 (en) * 2018-11-26 2020-06-04 中兴通讯股份有限公司 Physical memory detection method and apparatus, device, and readable storage medium
WO2022151707A1 (en) * 2021-01-12 2022-07-21 长鑫存储技术有限公司 Memory testing method and apparatus, readable storage medium, and electronic device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630267B (en) * 2009-08-24 2012-09-05 中兴通讯股份有限公司 Embedded system and control method thereof
CN102999409A (en) * 2012-12-20 2013-03-27 迈普通信技术股份有限公司 Memory test method and embedded equipment
CN102999409B (en) * 2012-12-20 2016-08-24 迈普通信技术股份有限公司 A kind of internal storage testing method and embedded device
CN104268075A (en) * 2014-09-22 2015-01-07 广东欧珀移动通信有限公司 Test mode entry method and device and mobile terminal
CN104268075B (en) * 2014-09-22 2017-08-18 广东欧珀移动通信有限公司 A kind of method, device and mobile terminal of entrance test pattern
CN104239211A (en) * 2014-09-26 2014-12-24 广东欧珀移动通信有限公司 Method and device for enabling mobile terminal to rapidly enter test mode
CN104239211B (en) * 2014-09-26 2018-07-06 广东欧珀移动通信有限公司 A kind of mobile terminal rapidly enters the method and its device of test pattern
CN104615519A (en) * 2015-03-10 2015-05-13 浪潮集团有限公司 Method for detecting loss of memory capacity of server under LINUX system
CN105652115A (en) * 2015-12-25 2016-06-08 广州视源电子科技股份有限公司 Mainboard testing method, mainboard testing system, mainboard program installing method and mainboard program installing system
WO2020108494A1 (en) * 2018-11-26 2020-06-04 中兴通讯股份有限公司 Physical memory detection method and apparatus, device, and readable storage medium
CN110399257A (en) * 2019-07-04 2019-11-01 上海创功通讯技术有限公司 Detection method, electronic equipment and the computer readable storage medium of memory
WO2022151707A1 (en) * 2021-01-12 2022-07-21 长鑫存储技术有限公司 Memory testing method and apparatus, readable storage medium, and electronic device

Similar Documents

Publication Publication Date Title
CN101211291A (en) Method for testing memory in embedded system
CN101645119B (en) Method and system for automatically analyzing malicious codes based on virtual hardware environment
CN103150188B (en) The compatible video card fast initializing method of the x86 of non-x 86 instruction set computer
US20090172664A1 (en) Adding a profiling agent to a virtual machine to permit performance and memory consumption analysis within unit tests
CN102637144B (en) System fault processing method and device
CN106155883B (en) A kind of virtual machine method for testing reliability and device
CN111756575A (en) Performance analysis method and device of storage server and electronic equipment
CN101477471A (en) Embedded system firmware on-line upgrading system
CN102567049A (en) Upgrade method of embedded operating system
CN107168734A (en) A kind of embedded system upgrading backup method
JP2014123381A (en) Method of adjusting control device, and adjusting unit
CN106855926A (en) Malicious code detecting method, system and a kind of mobile terminal under Android system
CN100514298C (en) System for software transplantation between isomerization hardware systems
CN107066361A (en) The method and apparatus that a kind of utilization BMC disables corrupted internal memory
CN105468390A (en) BOOT online upgrade apparatus and method
CN101021812A (en) Interpreter language debugging method and device
CN102467446A (en) Processor chip emulator capable of setting program pointer value
CN107632913B (en) Storage equipment and interface testing method based on domestic operating system
CN106294089A (en) The method and apparatus assisting the access monitoring to monitored memory headroom
CN101178660A (en) Memory data automatic update method
CN101706752B (en) Method and device for in-situ software error positioning
CN103560934A (en) Power line modem production testing method and device
CN109375953A (en) A kind of os starting method and device
CN101295278B (en) Method and device for locating course of overwritten code segment
CN102567251A (en) Control method and control device for BIOS (basic input/output system)

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: 20080702