1. Field of the Invention
The invention relates to a method and a system for looking up debug codes of a Basic Input/Output System (BIOS), more particularly to a method and a system cooperating with a host electronic system and capable of acquiring and displaying the debug codes information for a BIOS.
2. General Background
Most contemporary electronic system, such as motherboards, interface cards, etc., are provided with BIOSs for power-on self tests (POST) and access of default set-up data upon initialization.
Due to the trend of computers toward multitasking operations, the operations associated with BIOS have grown in complexity. In the development stages of a computer system, even before an operating system is loaded, different factors, such as failure of some components, errors in BIOS codes, etc., may result in boot-up failure and hinder development progress.
At this moment, due to the size limitation of BIOS codes, and because debug application software can not be executed since the operating system has not yet been loaded, the cause of failure can only be exhaustively sought with the aid of hardware-error detecting equipment. Therefore, as a solution to these problems, it has been proposed heretofore that when a certain stage of operation has proceeded through the control of the BIOS codes, a debug code corresponding to the operating stage should be sent out. In this way, a system developer can provide a peripheral device to be coupled to the system-under-test for debugging in order to intercept and display the debug codes in real time.
A debug code received by the peripheral device is shown as long as a succeeding debug code has not yet been received. Hence, if a debug code is continuously shown by the peripheral device after a computer system is turned on and prior to loading of an operating system, a clue will be provided to the system developer as to the possible cause of system or peripheral failure so that appropriate steps can be taken to speed up the debugging procedure and thus the progress of system development. At present, this sort of simple debugging mechanism is widely used in the development of electronic systems, such as computers, motherboards, etc.
A conventional method as shown in
What is needed is a method and a system for precisely and conveniently acquiring and displaying the information about the debug codes of a BIOS.
A method in accordance with a preferred embodiment of the present invention includes the steps of: initializing a host electronic system and sending out a debug code corresponding to the initialization of the host electronic system to a debug card; displaying the debug code on an LED-display screen of the debug card; transmitting the debug code displayed on the LED-display screen to an application software; and choosing the BIOS file corresponding to the debug code displayed, then acquiring and displaying the information via the application software.
A system in accordance with a preferred embodiment of the present invention includes: a host electronic system with a BIOS for sending out a debug code during the initialization; a debug card connected electrically to the host electronic system for receiving and displaying the debug code sent out by the host electronic system; and an application software for acquiring and displaying the debug code information correspond to the debug code displayed on the debug card.
Other advantages and novel features will become more apparent from the following detailed description when taken in conjunction with the accompanying drawing, in which:
A system of looking up debug codes of a BIOS is adapted for use in a host electronic system, such as a motherboard, an interface card, etc. In the following description, the host electronic system is a computer motherboard for illustrative purposes. The system is used to look up debug codes of a BIOS that are output by the host electronic system in sequence during initialization of the host electronic system.
The system includes a motherboard, a debug card, a computer system, and an application software which runs on the computer system. The debug card is connected electrically to the motherboard so as to receive the debug codes sequentially from the motherboard. In practice, the debug card has an LED-display screen to display the received debug codes. During the initialization of the motherboard, each program is associated with a corresponding debug code. When the motherboard is initialized, the BIOS in the motherboard is loaded to execute operation of power-on self tests (POST) and access default set-up data, etc. Before each operation is executed, the BIOS sends out the associated debug code to the debug card. When a debug code is continually shown by the LED-display screen and not changed after the motherboard is turned on and prior to loading of an operating system, something is wrong in the initialization of the motherboard. Then the debug code continually shown is transmitted to the application software. An initializing interface window of the application software includes a code-input frame and an information-display frame. The debug code is transmitted from the debug card into the code-input frame of the initializing interface window. In practice, if the debug card has COM ports, the COM ports of the debug card are connected to the COM port of the computer running the application software via a COM cable. In this way, the debug code is transmitted from the COM port of the debug card to the COM port of the computer via the COM cable, and then the application software reads the debug code and inputs it into the code-input frame of the initializing interface window. If the debug card has no COM port, the debug code is manually input into the code-input frame of the application software. Next, the BIOS file corresponding to the debug code in the code-input frame of the application software is chosen, the detailed information about the debug code is displayed in the information-display frame of the initializing interface window. For example, if the debug code displayed in the code-input frame is “00”, the information “the motherboard has not tested normally” is displayed in the information-display frame.
For a more detailed description of the operating relationship among the aforesaid components, reference is made to
At step 21, start up the computer system and initialize the application software, thus the application software is running in the computer system.
At step 22, connect a COM port of the debug card to a COM port of the computer system via a COM cable.
At step 23, initialize the motherboard and execute the BIOS programs which are on the motherboard, and the debug card is connected electrically to the motherboard.
At step 24, the BIOS writes a debug code to port 80 of the motherboard.
At step 25, the debug card reads the debug code in the port 80 and displays it on the LED-display screen of the debug card.
At step 26, the BIOS determines if the testing is successful or not.
At step 27, if the testing is not successful, then the motherboard has not been initialized normally, and the debug code is continuously shown on the LED-display screen, the debug code displayed on the LED-display screen is transmitted to the code-input frame of the initializing interface window via the COM cable.
At step 28, a BIOS file corresponding to the motherboard is read, and then the information for the corresponding debug code is acquired and displayed.
At step 29, the BIOS determines if all testing is finished, if all testing is not finished, it returns to step S24 to continue the testing, if testing is finished then the process ends.
Refer to
It is believed that the present embodiment and its advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the invention or sacrificing all of its material advantages, the example hereinbefore described merely being a preferred or exemplary embodiment.
Number | Date | Country | Kind |
---|---|---|---|
200510035135.2 | Jun 2005 | CN | national |