CN104572378A - Code debugging and diagnosis method and device of embedded controller - Google Patents

Code debugging and diagnosis method and device of embedded controller Download PDF

Info

Publication number
CN104572378A
CN104572378A CN201510044261.8A CN201510044261A CN104572378A CN 104572378 A CN104572378 A CN 104572378A CN 201510044261 A CN201510044261 A CN 201510044261A CN 104572378 A CN104572378 A CN 104572378A
Authority
CN
China
Prior art keywords
coding
sequential
signal
mistiming
original
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
CN201510044261.8A
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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information 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 Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201510044261.8A priority Critical patent/CN104572378A/en
Publication of CN104572378A publication Critical patent/CN104572378A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a code debugging and diagnosis method and device of an embedded controller and relates to embedded controller code monitoring technology. The code debugging and diagnosis method includes directly acquiring and recording sequence and timing of various signals generated during operation of original EC (embedded controller) codes when the original EC codes are diagnosed by a terminal; checking accuracy of the original EC codes according to the recorded sequence and timing of the signals; directly adjusting the inaccurate parts of the original EC codes to obtain the accurate EC codes. By adopting the method of an adjustable power sequence application interface tool program to quickly judge and acquire the accurate EC codes, the signals can be measured without costing too much time.

Description

A kind of method of embedded controller coding debug and diagnosis and device
Technical field
The present invention relates to embedded controller coding detection techniques, particularly a kind of power supply sequential PowerSequence built-in type controller (EC:Embedded Controller) is encoded the method for debug and diagnosis and device.
Background technology
At computer product, as the stage that notebook computer Notebook researches and develops, Power Sequence is a very important ring, can determine that operating system whether can normal boot-strap, but often make Hardware Engineer constantly spend the plenty of time to measure to adjust Power Sequence in the starting stage of research and development, just need again to measure one time again, until really entirely true whenever upgrading an embedded controller coding EC coding.Visible, adjust Power Sequence by the mistiming timing directly measuring signal and expend time in.
Summary of the invention
The object of the present invention is to provide method and the device of the coding debug of a kind of embedded controller and diagnosis, the starting stage in research and development can be solved, adjust the time-consuming problem of Power Sequence by the timing directly measuring signal.
According to an aspect of the present invention, provide the method for the coding debug of a kind of embedded controller and diagnosis, comprising:
When terminal is diagnosed original EC coding, directly obtain and record the sequential and the mistiming that produce each signal when original EC coding runs;
According to sequential and the mistiming of each signal described in recorded, the correctness of described original EC coding is checked;
Directly adjusting for finding original EC incorrect part of encoding, obtaining correct EC coding;
Wherein, described EC is embedded controller.
Preferably, described terminal is carried out diagnosis to original EC coding and is referred to, utilizes the power supply used in cycle time program preset to diagnose the original EC coding entering desktop operating system or enter disc operating system (DOS).
Preferably, for the situation entering desktop operating system, the described sequential according to each signal described in recorded and mistiming, the step that the correctness of described original EC coding checks is comprised:
The sequential of each signal described in recorded and mistiming and preset computer processing unit specifications are compared, judges the sequential and/or the mistiming that whether there is mistake in each signal described.
Preferably, described adjusts for the part finding the not true property that original EC encodes, and the step obtaining correct EC coding comprises:
If there is sequential and/or the mistiming of mistake in each signal described, then by arranging sequential and/or the mistiming of signal to be adjusted and reference signal, the sequential and/or mistiming that there is mistake in each signal described is modified;
After the power supply used in cycle time program preset utilizes the sequential of each signal amended and mistiming to run, obtain the cell call of correct EC coding;
The cell call that described correct EC encodes is integrated in original EC coding, obtains correct EC coding.
Preferably, the situation of operating system cannot be entered for terminal, described the original EC step diagnosed of encoding also to be comprised: utilize start Portable disk obtain and record sequential and the mistiming of each signal produced when original EC is coded in terminal operating, and operating system delay machine time place signal location.
Preferably, also comprise: according to sequential and the mistiming of each recorded signal, and operating system delay machine time place signal location, fault diagnosis is carried out to mainboard.
Preferably, also comprise: utilize described correct EC to encode and generate correct power supply sequential.
According to a further aspect in the invention, provide the device of the coding debug of a kind of embedded controller and diagnosis, comprising:
Acquisition module, for when terminal is diagnosed original EC coding, directly obtains and records the sequential and the mistiming that produce each signal when original EC coding runs;
Checking module, for according to the sequential of each signal described in recorded and mistiming, checks the correctness of described original EC coding;
Adjusting module, for directly adjusting for finding original EC incorrect part of encoding, obtains correct EC coding.
Preferably, described adjusting module comprises further:
Amendment submodule, if for there is wrong sequential and/or mistiming in each signal described, then by arranging sequential and/or the mistiming of signal to be adjusted and reference signal, modifies to the sequential and/or mistiming that there is mistake in each signal described;
Running submodule, after the power supply used in cycle time program for presetting utilizes the sequential of each signal amended and mistiming to run, obtaining the cell call of correct EC coding;
Integron module, the cell call for being encoded by described correct EC is integrated in original EC coding, obtains correct EC coding.
Preferably, also comprise:
Diagnostic module, for according to the sequential of each recorded signal and mistiming, and operating system delay machine time place signal location, fault diagnosis is carried out to mainboard.
Compared with prior art, beneficial effect of the present invention is: can by providing a kind of method of power supply used in cycle time interface tool program of adjustable, by judging to obtain correct EC coding rapidly, and no longer needing to spend more time measurement signal, accelerating research and development speed.
Accompanying drawing explanation
Fig. 1 is the embedded controller coding debug that provides of the embodiment of the present invention and the Method And Principle figure of diagnosis;
Fig. 2 is the embedded controller coding debug that provides of the embodiment of the present invention and the structure drawing of device of diagnosis;
Fig. 3 is the embedded controller coding debug that provides of the embodiment of the present invention and the sequential of diagnosis and mistiming adjustment interface schematic diagram.
Embodiment
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is the embedded controller coding debug that provides of the embodiment of the present invention and the Method And Principle figure of diagnosis, and as shown in Figure 1, concrete step is as follows:
Step S1: when starting up of terminal runs, and when diagnosing original EC coding, automatic acquisition also records the sequential and the mistiming that produce each signal when original EC coding runs.
In step sl, described terminal is carried out diagnosis to original EC coding and is referred to, utilizes the power supply used in cycle time program preset to diagnose the original EC coding entering desktop operating system or enter disc operating system (DOS).
Further, when diagnosing EC coding, do not need to be measured by the signal of outside just directly to be obtained by power supply used in cycle time program and record the sequential and the time that produce each signal when original EC encodes and runs.
Step S2: according to sequential and the mistiming of each signal described in recorded, checks the correctness of described original EC coding.
In step s 2, for the situation entering desktop operating system, the described sequential according to each signal described in recorded and mistiming, the step that the correctness of described original EC coding checks is comprised:
The sequential of each signal described in recorded and mistiming and preset computer processing unit specifications are compared, judges the sequential and/or the mistiming that whether there is mistake in each signal described.
Step S3: directly adjust for finding original EC incorrect part of encoding, obtains correct EC coding.
In step s3, if there is sequential and/or the mistiming of mistake in each signal described, then by arranging sequential and/or the mistiming of signal to be adjusted and reference signal, the sequential and/or mistiming that there is mistake in each signal described is modified;
After application interface implementing procedure in the power supply used in cycle time program preset utilizes the sequential of each signal amended and mistiming to run, obtain the cell call of correct EC coding;
The cell call that described correct EC encodes is integrated in original EC coding, obtains correct EC coding.
Further, the situation of operating system cannot be entered for terminal, described the original EC step diagnosed of encoding also to be comprised: utilize start Portable disk obtain and record sequential and the mistiming of each signal produced when original EC is coded in terminal operating, and operating system delay machine time place signal location.
Further, also comprise: according to sequential and the mistiming of each recorded signal, and operating system delay machine time place signal location, fault diagnosis is carried out to mainboard.
Further, also comprise: utilize described correct EC to encode and generate correct power supply sequential.
Fig. 2 is the embedded controller coding debug that provides of the embodiment of the present invention and the structure drawing of device of diagnosis, as shown in Figure 2, comprising: acquisition module, checking module, adjusting module and diagnostic module.
Described acquisition module is used for, when terminal is diagnosed original EC coding, directly obtaining and recording the sequential and the mistiming that produce each signal when original EC coding runs.
Described checking module is used for sequential according to each signal described in recorded and mistiming, checks the correctness of described original EC coding.
Described adjusting module is used for directly adjusting for finding original EC incorrect part of encoding, and obtains correct EC coding.Wherein, if the amendment submodule of described adjusting module is used for the sequential and/or the mistiming that there is mistake in each signal described, then by arranging sequential and/or the mistiming of signal to be adjusted and reference signal, the sequential and/or mistiming that there is mistake in each signal described is modified.After the operation submodule of the described adjusting module application interface implementing procedure be used in the power supply used in cycle time program preset utilizes the sequential of each signal amended and mistiming to run, obtain the cell call of correct EC coding.The integron module of described adjusting module is used for the cell call that described correct EC encodes to be integrated in original EC coding, obtains correct EC coding.
Cannot enter operating system for terminal, the stage namely cannot started shooting, described diagnostic module was used for according to the sequential of each recorded signal and mistiming, and operating system delay machine time place signal location, fault diagnosis is carried out to mainboard.
Fig. 3 is the embedded controller coding debug that provides of the embodiment of the present invention and the sequential of diagnosis and mistiming adjustment interface schematic diagram, as shown in Figure 3, concrete implementation method is: the application tool program interface of desktop operating system version of window has many adjustable controller chassis hurdles, controller chassis hurdle can be used for the pin title Pin Name setting embedded controller chip EC Chip signal to be adjusted, the pin title PinName of reference signal, and namely sequential shifts to an earlier date (+)/delay (-), need the mistiming be set up, above-mentioned setting value can be stored to archives, as .csv, .txt file or extended formatting file, setting value is directly loaded in controller chassis hurdle from archives when subsequent operation, and need not reset.Wherein, when modifying to EC coding, EC slip-stick artist is according to the sequential defined in central processing unit specifications (CPU SPEC:Central Processing UnitSpecification), set correct sequential and mistiming are inserted the corresponding controller chassis hurdle belonging to Pin Name to be adjusted, and the reference signal that selection will set in the controller chassis hurdle of the Pin Name of reference signal, so that application tool program is according to above-mentioned setting value written-out program code, as .bin file, and be integrated directly in main EC coding, correct Power Sequence is produced after compiling, complete the renewal of EC coding.
Except under operating system (OS:Operating System) compared with except the interface version of hommization, in also uncertain capable of starting up development, the Power Sequence application tool program of disc operating system (DOS) (DOS:Disk Operating System) version can be used, that is, a kind of recordable USB (universal serial bus) (USB:Universal Serial Bus) application tool program.In the stage that terminal cannot be started shooting, start Portable disk is utilized to perform, after operating system delays machine, also automatically daily record log file can be produced in start Portable disk, the sequential of each EC signal that record terminal is operationally accessed and mistiming, and operating system delay machine time place signal position.By log file, Hardware Engineer directly can go to judge that EC encodes the sequential of the incorrect signal produced and mistiming, and do not need to spend the plenty of time go to measure signal just know sequential, mistiming and operating system delay machine time place signal position, thus by judging that fast the original EC of amendment encodes.
In addition, the Power Sequence application tool program of DOS version, also be a kind of diagnostic card Debug Card with USB interface, the daily record log file that the terminal that Hardware Engineer utilizes Portable disk to obtain records in start-up phase detects power supply sequential and the situation of mistiming.
In sum, the present invention has following technique effect:
(1) the present invention can by providing a kind of method of power supply used in cycle time interface tool program of adjustable, by judging sequential and mistiming and adjusting, obtain correct EC coding rapidly, and no longer need to spend more time measurement signal, alleviate workload and the research and development time of hard ware measure.
(2) the present invention can by providing a kind of implementing procedure utilizing start Portable disk access USB interface, and under DOS situation, the power supply sequential of quick obtaining current generation and mistiming, so that research staff can revise EC coding after judging fast.
Although above to invention has been detailed description, the present invention is not limited thereto, those skilled in the art of the present technique can carry out various amendment according to principle of the present invention.Therefore, all amendments done according to the principle of the invention, all should be understood to fall into protection scope of the present invention.

Claims (10)

1. a method for embedded controller coding debug and diagnosis, is characterized in that, comprising:
When terminal is diagnosed original EC coding, directly obtain and record the sequential and the mistiming that produce each signal when original EC coding runs;
According to sequential and the mistiming of each signal described in recorded, the correctness of described original EC coding is checked;
Directly adjusting for finding original EC incorrect part of encoding, obtaining correct EC coding;
Wherein, described EC is embedded controller.
2. method according to claim 1, is characterized in that, described terminal is carried out diagnosis to original EC coding and referred to, utilizes the power supply used in cycle time program preset to diagnose the original EC coding entering desktop operating system or enter disc operating system (DOS).
3. method according to claim 2, is characterized in that, for the situation entering desktop operating system, the described sequential according to each signal described in recorded and mistiming, comprises the step that the correctness of described original EC coding checks:
The sequential of each signal described in recorded and mistiming and preset computer processing unit specifications are compared, judges the sequential and/or the mistiming that whether there is mistake in each signal described.
4. method according to claim 3, is characterized in that, described adjusts for the part finding the not true property that original EC encodes, and the step obtaining correct EC coding comprises:
If there is sequential and/or the mistiming of mistake in each signal described, then by arranging sequential and/or the mistiming of signal to be adjusted and reference signal, the sequential and/or mistiming that there is mistake in each signal described is modified;
After the power supply used in cycle time program preset utilizes the sequential of each signal amended and mistiming to run, obtain the secondary formula coding of correct EC coding;
The secondary formula coding of being encoded by described correct EC is integrated in original EC coding, obtains correct EC coding.
5. method according to claim 2, it is characterized in that, the situation of operating system cannot be entered for terminal, described the original EC of the disk step diagnosed of encoding also to be comprised: utilize start Portable disk obtain and record sequential and the mistiming of each signal produced when original EC is coded in terminal operating, and operating system delay machine time place signal location.
6. method according to claim 5, is characterized in that, also comprises: according to sequential and the mistiming of each recorded signal, and operating system delay machine time place signal location, fault diagnosis is carried out to mainboard.
7. method according to claim 1, is characterized in that, also comprises: utilize described correct EC to encode and generate correct power supply sequential.
8. a device for embedded controller coding debug and diagnosis, is characterized in that, comprising:
Acquisition module, for when terminal is diagnosed original EC coding, directly obtains and records the sequential and the mistiming that produce each signal when original EC coding runs;
Checking module, for according to the sequential of each signal described in recorded and mistiming, checks the correctness of described original EC coding;
Adjusting module, for directly adjusting for finding original EC incorrect part of encoding, obtains correct EC coding.
9. device according to claim 8, is characterized in that, described adjusting module comprises further:
Amendment submodule, if for there is wrong sequential and/or mistiming in each signal described, then by arranging sequential and/or the mistiming of signal to be adjusted and reference signal, modifies to the sequential and/or mistiming that there is mistake in each signal described;
Running submodule, after the power supply used in cycle time program for presetting utilizes the sequential of each signal amended and mistiming to run, obtaining the secondary formula coding of correct EC coding;
Integron module, is integrated in original EC coding for the secondary formula coding of being encoded by described correct EC, obtains correct EC coding.
10. device according to claim 8, is characterized in that, also comprises:
Diagnostic module, for according to the sequential of each recorded signal and mistiming, and operating system delay machine time place signal location, fault diagnosis is carried out to mainboard.
CN201510044261.8A 2015-01-28 2015-01-28 Code debugging and diagnosis method and device of embedded controller Pending CN104572378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510044261.8A CN104572378A (en) 2015-01-28 2015-01-28 Code debugging and diagnosis method and device of embedded controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510044261.8A CN104572378A (en) 2015-01-28 2015-01-28 Code debugging and diagnosis method and device of embedded controller

Publications (1)

Publication Number Publication Date
CN104572378A true CN104572378A (en) 2015-04-29

Family

ID=53088512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510044261.8A Pending CN104572378A (en) 2015-01-28 2015-01-28 Code debugging and diagnosis method and device of embedded controller

Country Status (1)

Country Link
CN (1) CN104572378A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050268168A1 (en) * 2004-04-27 2005-12-01 Yuzo Ishihara Debugging circuit and a method of controlling the debugging circuit
CN1752942A (en) * 2004-09-23 2006-03-29 联想(北京)有限公司 Monitoring diagnosis device of computer main board failure
CN101800530A (en) * 2009-12-29 2010-08-11 福建星网锐捷网络有限公司 Power supply electrifying control method,device and equipment
CN102768633A (en) * 2012-06-29 2012-11-07 浪潮电子信息产业股份有限公司 Method for testing start and stop of server mainboard based on time series monitoring
CN102915097A (en) * 2011-08-03 2013-02-06 中兴通讯股份有限公司 Method and device for controlling electrifying sequence
JP2014212408A (en) * 2013-04-18 2014-11-13 船井電機株式会社 Power sequence control circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050268168A1 (en) * 2004-04-27 2005-12-01 Yuzo Ishihara Debugging circuit and a method of controlling the debugging circuit
CN1752942A (en) * 2004-09-23 2006-03-29 联想(北京)有限公司 Monitoring diagnosis device of computer main board failure
CN101800530A (en) * 2009-12-29 2010-08-11 福建星网锐捷网络有限公司 Power supply electrifying control method,device and equipment
CN102915097A (en) * 2011-08-03 2013-02-06 中兴通讯股份有限公司 Method and device for controlling electrifying sequence
CN102768633A (en) * 2012-06-29 2012-11-07 浪潮电子信息产业股份有限公司 Method for testing start and stop of server mainboard based on time series monitoring
JP2014212408A (en) * 2013-04-18 2014-11-13 船井電機株式会社 Power sequence control circuit

Similar Documents

Publication Publication Date Title
US20140236914A1 (en) Controller, information processing apparatus, and recording medium
CN111475364A (en) Method and system for testing system-on-chip
RU2653336C1 (en) Method of diagnostics of power supply failure in a wireless communication device
TW201337756A (en) Method and system for updating CPLD
CN103853648A (en) Embedded software performance evaluating hardware auxiliary test device and method
CN110580220B (en) Method for measuring code segment execution time and terminal equipment
CN104699605A (en) Measuring method and device for code coverage rate of driving program
CN104123212B (en) The system detection method of USB chips
CN104102563A (en) Method and device for finding MCA (machine check architecture) errors of server system
WO2007086150A1 (en) Memory destruction detection method and device
CN104572378A (en) Code debugging and diagnosis method and device of embedded controller
TW201214456A (en) Solid-state disk with automated testing capability and automated testing method of solid-state disk
CN116701140A (en) Device, method and system for detecting performance of memory chip and memory medium
CN109522263B (en) I2C link monitoring system
US20170082687A1 (en) De-bugging environment with smart card
CN107885518B (en) Method and device for recording abnormal log of vehicle-mounted system upgrading
Dzhagaryan et al. An Environment for Automated Measuring of Energy Consumed by Android Mobile Devices.
CN109863410B (en) Method and system for measuring power-on reset time
CN110519001B (en) Clock synchronization method and device and ammeter communication module
CN110096888B (en) Method and system for accelerating verification and analyzing SMM potential safety hazard
CN110609243B (en) Method and system for testing CPU power supply efficiency and related components
TW201448521A (en) Test method for network module, test device and test system thereof
CN117236277B (en) Method and device for checking register and electronic equipment
CN104714872A (en) Performance test method for vehicle-mounted USB equipment
CN111310172B (en) Method and control unit for verifying processor execution traces by disassembling

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429