The application relates to the technical field of
bus diagnosis, and discloses an ESPI and LPC
bus diagnosis method and device. The method is as follows: the STRAP pin level of a master control
chip is configured through a jump cap
short circuit state, so that the master control
chip enters an LPC
bus working mode or an ESPI bus working mode; a target mainboard is connected; an I / O write operation initiated by the target mainboard in a POST self-checking stage is listened to; when a frame
start signal is detected, a start field of a bus frame is analyzed and determined as an I / O write operation type; an address field in the bus frame of the I / O write operation type is analyzed and matched with a target listening address; when the address is matched successfully, a POST Code
diagnosis code is acquired from the bus frame. The application realizes a
dynamic switching mechanism of the LPC and ESPI double bus protocols through hardware jump cap configuration of the STRAP pin, solves the technical problem that a diagnosis card only supports a single bus protocol in the prior art, and enables a single diagnosis card device to be compatible with all X86 platform mainboards.