Voltage regulator chip debugging method, device, equipment and medium
Through the method of connecting the voltage regulator chip to the adapter board and the preset bus, the connection and debugging of the target voltage regulator chip is automatically completed, solving the problem of cumbersome and inefficient debugging operations in the existing technology, and achieving more efficient and Stable debugging process.
Patent Information
- Application Number
- CN202411499278.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-10-25
AI Technical Summary
In the prior art, debugging and troubleshooting of voltage regulator chips are cumbersome and inefficient.
Provide a voltage regulator chip debugging method, through the voltage regulator chip debugging adapter board, using the controller and the pin, connecting the voltage regulator chip debugging tool and the substrate management controller through the preset bus to achieve the target voltage regulator. Automatic connection and debugging of the chip.
The debugging process of voltage regulator chips is simplified, debugging efficiency is improved, the adjustment requirement for the motherboard chassis environment is reduced, and the stability of debugging is enhanced, without the need to use a multimeter and oscilloscope for measurement.
Smart Images

Figure CN119415334A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a method, device, equipment and medium for debugging a voltage regulator chip. Background Art
[0002] In servers, data centers, and high-performance computing systems, the efficiency and reliability of power management are critical. As a key component, the performance and stability of the voltage regulator chip (VR) directly affect the operation of the server. During the actual debugging and testing process, the VR chip may face a variety of situations, including firmware version burning, parameter adjustment, and output voltage abnormality.
[0003] At present, there are two main debugging methods. One is to connect to the VR debugging tool through the Inter-Integrated Circuit (I2C) connector on the board to achieve firmware burning and troubleshooting. Although this method is low-cost and suitable for mass production, it has problems such as physical damage, cumbersome operation, difficult wiring, and complex design. Another way is to remotely burn the VR firmware version through the BMC management interface, but there are currently few application scenarios, the technology is not mature, and additional development and debugging are required. In addition, for the troubleshooting of VR chip output voltage failures, multimeters and oscilloscopes are usually used for measurement, but they need to be carried out according to the power-on timing and chip specifications. For pin functions that are unclear, they also need to be compared with the normal board measurement results, which is cumbersome and inefficient.
[0004] In view of the above problems, how to solve the cumbersome and inefficient debugging and troubleshooting of current VR chips is an urgent problem to be solved by technicians in this field. Summary of the invention
[0005] The purpose of the present invention is to provide a voltage regulator chip debugging method, device, equipment and medium to solve the problem that the current VR chip debugging and troubleshooting operations are cumbersome and inefficient.
[0006] In order to solve the above technical problems, the present invention provides a voltage regulator chip debugging method, which is applied to a voltage regulator chip debugging adapter board; the voltage regulator chip debugging adapter board includes a controller and a pin header; the controller is connected to the pin header through a first preset bus, and the pin header is connected to a voltage regulator chip debugging tool through the first preset bus; the controller is connected to a baseboard management controller of a mainboard through a second preset bus; wherein the mainboard is provided with an external second preset bus interface; the method includes:
[0007] Determining a target voltage regulator chip to be debugged in the mainboard, and generating a connection request for the target voltage regulator chip;
[0008] Sending a connection request to the baseboard management controller through a second preset bus, so that the baseboard management controller obtains data information of the target voltage regulator chip according to the connection request, and sends the data information to the controller through the second preset bus;
[0009] The data information is sent to the voltage regulator chip debugging tool via the first preset bus, so that the voltage regulator chip debugging tool can communicate and debug the target voltage regulator chip according to the data information.
[0010] On the one hand, sending a connection request to the baseboard management controller through a second preset bus includes:
[0011] Based on a preset communication protocol, a connection request is sent to the baseboard management controller through a second preset bus; wherein the format of the preset communication protocol is a frame header, a function code, a command bit, an address bit, a data bit, a check bit and a frame tail;
[0012] Correspondingly, the baseboard management controller sends data information to the controller via the second preset bus, including:
[0013] The baseboard management controller sends data information to the controller through a second preset bus based on a preset communication protocol.
[0014] On the other hand, the voltage regulator chip debugging adapter board also includes: a button and a DIP switch;
[0015] The button and the DIP switch are both connected to the controller;
[0016] Correspondingly, the step of determining a target voltage regulator chip to be debugged in the mainboard and generating a connection request to the target voltage regulator chip includes:
[0017] Setting the target preset bus number based on the DIP switch;
[0018] Determine whether the DIP switch is set correctly;
[0019] If it is confirmed that the setting of the DIP switch is incorrect, returning to the step of setting the target preset bus number based on the DIP switch;
[0020] If it is confirmed that the setting of the DIP switch is correct, the corresponding target voltage regulator chip in the mainboard is determined according to the set target preset bus number, and a connection request for the target voltage regulator chip is generated;
[0021] Correspondingly, sending the connection request to the baseboard management controller through the second preset bus includes:
[0022] Controlling the button to enable, and notifying the baseboard management controller to stop printing debugging information;
[0023] Initiate data transmission to the baseboard management controller and send a connection request to the baseboard management controller.
[0024] On the other hand, the voltage regulator chip debugging adapter board further includes: an indicator light;
[0025] The indicator light is connected to the controller;
[0026] Correspondingly, the determining whether the DIP switch is set correctly includes:
[0027] Determine whether the lighting condition of the indicator light corresponds to the set target preset bus number;
[0028] If yes, confirm that the DIP switch is set correctly;
[0029] If not, it is confirmed that the DIP switch setting is incorrect.
[0030] On the other hand, after the baseboard management controller sends data information to the controller through the second preset bus based on the preset communication protocol, it also includes:
[0031] Judging whether the data information is correct according to the data of the data bit and the data of the check bit in the data information;
[0032] If the data information is confirmed to be correct, the step of sending the data information to the voltage regulator chip debugging tool via the first preset bus is entered;
[0033] If it is confirmed that the data information is incorrect, a request for re-acquiring the data information is sent to the baseboard management controller.
[0034] On the other hand, after sending the data information to the voltage regulator chip debugging tool through the first preset bus, the method further includes:
[0035] Monitoring the debugging result sent by the voltage regulator chip debugging tool through the first preset bus;
[0036] When a debugging result indicating an output voltage fault is received, the indicator light is controlled to output prompt information indicating an output voltage fault.
[0037] On the other hand, the voltage regulator chip debugging adapter board further includes: a controller firmware burning connector; the controller firmware burning connector is connected to a preset interface of the controller;
[0038] Correspondingly, the method further includes:
[0039] The controller is burned with a preset firmware via the controller firmware burning connector.
[0040] In order to solve the above technical problems, the present invention also provides a voltage regulator chip debugging device, which is applied to a voltage regulator chip debugging adapter board; the voltage regulator chip debugging adapter board includes a controller and a pin header; the controller is connected to the pin header through a first preset bus, and the pin header is connected to a voltage regulator chip debugging tool through the first preset bus; the controller is connected to a baseboard management controller of a mainboard through a second preset bus; wherein the mainboard is provided with an external second preset bus interface; the device includes:
[0041] A determination module, used for determining a target voltage regulator chip to be debugged in the mainboard, and generating a connection request for the target voltage regulator chip;
[0042] a first sending module, configured to send a connection request to the baseboard management controller through a second preset bus, so that the baseboard management controller obtains data information of the target voltage regulator chip according to the connection request, and sends the data information to the controller through the second preset bus;
[0043] The second sending module is used to send data information to the voltage regulator chip debugging tool through the first preset bus, so that the voltage regulator chip debugging tool can communicate and debug the target voltage regulator chip according to the data information.
[0044] In order to solve the above technical problems, the present invention also provides a voltage regulator chip debugging device, comprising:
[0045] Memory for storing computer programs;
[0046] The processor is used to implement the steps of the above-mentioned voltage regulator chip debugging method when executing the computer program.
[0047] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above voltage regulator chip debugging method are implemented.
[0048] The voltage regulator chip debugging method provided by the present invention is applied to a voltage regulator chip debugging adapter board; the voltage regulator chip debugging adapter board includes a controller and a pin header; the controller is connected to the pin header through a first preset bus, and the pin header is connected to a voltage regulator chip debugging tool through the first preset bus; the controller is connected to a baseboard management controller of a mainboard through a second preset bus; wherein the mainboard is provided with an external second preset bus interface; the method specifically determines a target voltage regulator chip to be debugged in the mainboard, and generates a connection request for the target voltage regulator chip; sends the connection request to the baseboard management controller through the second preset bus, so that the baseboard management controller obtains data information of the target voltage regulator chip according to the connection request, and sends the data information to the controller through the second preset bus; sends the data information to the voltage regulator chip debugging tool through the first preset bus, so that the voltage regulator chip debugging tool communicates and debugs the target voltage regulator chip according to the data information.
[0049] The beneficial effect of the present invention is that it provides a voltage regulator chip debugging adapter board for burning voltage regulator chip firmware and troubleshooting voltage regulator chip output voltage faults. The voltage regulator chip debugging adapter board is connected to the voltage regulator chip debugging tool via a first preset bus, and is connected to the baseboard management controller of the mainboard via a second preset bus. Since the mainboard is provided with an external second preset bus interface, when connecting the voltage regulator chip debugging adapter board and the baseboard management controller, there is no need to adjust the chassis environment where the mainboard is located, and the operation is simple; the debugging process of the voltage regulator chip is completely dominated by the voltage regulator chip debugging adapter board, and there is no need to remotely burn the voltage regulator chip firmware version, and the stability is high. At the same time, when troubleshooting the output voltage fault, there is no need to use a multimeter and an oscilloscope for measurement, which greatly improves the debugging efficiency.
[0050] On the other hand, the present invention specifically sets a preset communication protocol through the controller and the baseboard management controller, which can ensure that the connection request and data information are transmitted in an orderly manner during the transmission process to avoid data loss or error. By setting a dial switch and a button in the voltage regulator chip debugging adapter board, the target voltage regulator chip to be debugged can be conveniently selected, and the data transmission to the baseboard management controller is started at the same time, and the connection request is sent to the baseboard management controller, which ensures the accurate execution of the debugging of the target voltage regulator chip.
[0051] In addition, the present invention also provides a voltage regulator chip debugging device, equipment and medium, with the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 A schematic diagram of a voltage regulator chip debugging architecture provided by an embodiment of the present invention;
[0054] Figure 2 A flowchart of a voltage regulator chip debugging method provided by an embodiment of the present invention;
[0055] Figure 3 A topological diagram of a voltage regulator chip debugging adapter board provided in an embodiment of the present invention;
[0056] Figure 4 A schematic diagram of a voltage regulator chip debugging device provided by an embodiment of the present invention;
[0057] Figure 5 A schematic diagram of a voltage regulator chip debugging device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] The core of the present invention is to provide a voltage regulator chip debugging method, device, equipment and medium to solve the problem that the current VR chip debugging and troubleshooting operations are cumbersome and inefficient.
[0060] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0061] In servers, data centers and high-performance computing systems, effective power management is the key to ensuring stable system operation. As a core component, the performance and reliability of VR chips directly affect the operating status of the server. However, in the actual debugging and testing process, VR chips may face a variety of problems, such as firmware version burning, parameter adjustment, and abnormal output voltage.
[0062] Currently, there are two main debugging methods to deal with these problems. One is to design an I2C connector on the board to access the VR debugging tool. This method is low-cost, suitable for mass production, and can quickly burn various VR firmware versions for testing during the debugging phase. It eliminates the conversion process, reduces communication delays, improves response speed, and can locate problems more quickly. Another way is to remotely burn the VR firmware version through the BMC management interface. This method does not require on-site operation, saves time, and is especially suitable for scenarios where frequent firmware updates are required. For troubleshooting VR chip output voltage failures, multimeters and oscilloscopes are usually used for measurement.
[0063] However, the first solution of designing an I2C connector on the board may be damaged due to physical operation, collision or other unexpected reasons, resulting in inoperability. Physical contact is required for each debugging, which may increase maintenance costs and time, and wiring is difficult in some compact or hard-to-reach spaces. In addition, when designing integrated circuits, it is necessary to reserve appropriate space for the I2C interface and ensure reasonable wiring, which may increase the complexity of the design. Some boards will remove the connector after mass production to save costs, which is not conducive to troubleshooting. At the same time, the second solution for burning VR firmware has the problem that there are currently few application scenarios, the technology maturity is not high, and development and debugging are required. For the troubleshooting of VR chip output voltage failure, it is necessary to measure according to the power-on timing and chip specification book. For pin functions that are unclear, it is necessary to compare with the normal board measurement results for judgment. The operation is cumbersome and only suitable for specific situations. Therefore, in order to solve the above problems, the present invention provides a voltage regulator chip debugging method.
[0064] It should be noted that the method provided by the present invention is applied to a voltage regulator chip debugging adapter board. Figure 1 Schematic diagram of a voltage regulator chip debugging architecture provided by an embodiment of the present invention. Figure 1 As shown, the voltage regulator chip debugging adapter board includes a controller and a pin header. The controller is connected to the pin header through a first preset bus, and the pin header is connected to the voltage regulator chip debugging tool through the first preset bus. In this embodiment, there is no restriction on the first preset bus, which depends on the specific implementation. It should be noted that since the voltage regulator chip debugging tool is generally designed based on the I2C bus, in order to ensure the normal communication link between the adapter board and the voltage regulator chip debugging tool, the first preset bus can be set to the I2C bus in the specific implementation. In addition, in the mainboard of the server, the voltage regulator chip is connected to the baseboard management controller through the I2C bus communication.
[0065] Furthermore, the controller in the voltage regulator chip debugging adapter board is connected to the baseboard management controller of the mainboard via a second preset bus. It should be noted that the mainboard is provided with a second preset bus interface for the outside, that is, the second preset bus interface is directly exposed to the outside of the server mainboard, and the interface can be directly wired without removing the chassis shell of the server. In this embodiment, there is no restriction on the second preset bus, for example, it can be a Universal Asynchronous Receiver / Transmitter (UART) bus or a Universal Serial Bus (USB), depending on the specific implementation situation. The voltage regulator chip debugging method is specifically described below.
[0066] Figure 2 The flowchart of a voltage regulator chip debugging method provided by an embodiment of the present invention. Figure 2 As shown, the method includes:
[0067] S10: Determine a target voltage regulator chip to be debugged in the mainboard, and generate a connection request to the target voltage regulator chip.
[0068] Specifically, in order to debug the voltage regulator chip, it is first necessary to determine the target voltage regulator chip to be debugged in the mainboard. It is understandable that there are generally multiple voltage regulator chips in the server mainboard, and each voltage regulator chip is connected to the baseboard management controller in the server mainboard through a corresponding I2C bus. After determining the target voltage regulator chip to be debugged, the controller of the adapter board generates a connection request for the target voltage regulator chip.
[0069] It should be noted that in this embodiment, there is no limitation on the method for determining the target voltage regulator chip. All voltage regulator chips may be selected in sequence according to a preset test sequence, or a certain voltage regulator chip may be designated as the target voltage regulator chip, depending on the specific implementation situation.
[0070] S11: Sending a connection request to a baseboard management controller via a second preset bus, so that the baseboard management controller acquires data information of a target voltage regulator chip according to the connection request, and sends the data information to the controller via the second preset bus.
[0071] Further, the controller sends a connection request to the baseboard management controller via the second preset bus. After receiving the connection request, the baseboard management controller determines the data information of the target voltage regulator chip that the controller needs according to the connection request, then obtains the data information of the target voltage regulator chip, and sends the data information to the controller via the second preset bus.
[0072] It should be noted that this embodiment does not limit the communication protocol between the controller and the baseboard management controller, and does not limit the specific content of the data information, which depends on the specific implementation situation.
[0073] S12: sending data information to the voltage regulator chip debugging tool via the first preset bus, so that the voltage regulator chip debugging tool can communicate and debug the target voltage regulator chip according to the data information.
[0074] Finally, after receiving the data information of the target voltage regulator chip, the controller converts it into the signal format of the first preset bus, and sends the data information to the voltage regulator chip debugging tool through the first preset bus, so that the voltage regulator chip debugging tool can communicate and debug the target voltage regulator chip according to the data information, thereby realizing the debugging of the target voltage regulator chip.
[0075] In the present embodiment, a voltage regulator chip debugging adapter board is provided for burning the voltage regulator chip firmware and troubleshooting the voltage regulator chip output voltage fault. The voltage regulator chip debugging adapter board is connected to the voltage regulator chip debugging tool via a first preset bus, and is connected to the baseboard management controller of the mainboard via a second preset bus. Since the mainboard is provided with an external second preset bus interface, when connecting the voltage regulator chip debugging adapter board and the baseboard management controller, there is no need to adjust the chassis environment where the mainboard is located, and the operation is simple; the debugging process of the voltage regulator chip is completely dominated by the voltage regulator chip debugging adapter board, and there is no need to remotely burn the voltage regulator chip firmware version, and the stability is relatively high. At the same time, when troubleshooting the output voltage fault, there is no need to use a multimeter and an oscilloscope for measurement, which greatly improves the debugging efficiency.
[0076] Based on the above embodiments, in some embodiments, sending a connection request to a baseboard management controller through a second preset bus includes:
[0077] S101: Based on a preset communication protocol, a connection request is sent to a baseboard management controller through a second preset bus; wherein the format of the preset communication protocol is a frame header, a function code, a command bit, an address bit, a data bit, a check bit and a frame tail.
[0078] Correspondingly, the baseboard management controller sends data information to the controller via the second preset bus, including:
[0079] S102: The baseboard management controller sends data information to the controller through a second preset bus based on a preset communication protocol.
[0080] In order to better transmit the connection request and data information, a preset communication protocol is set for the controller and the baseboard management controller in this embodiment, as follows:
[0081] Table 1 Format of the preset communication protocol between the controller and the baseboard management controller
[0082]
[0083] As shown in Table 1, the format of the preset communication protocol is a frame header, a function code, a command bit, an address bit, a data bit, a check bit, and a frame tail. During the connection request and data information transmission between the controller and the baseboard management controller, data interaction is performed based on the format of the preset communication protocol in Table 1. The following is a detailed description of each part of the preset communication protocol:
[0084] Function code: 0x00 represents request, 0x01 represents reply. Command bit: 0x00 represents I2C bus number 0, 0x01 represents I2C bus number 1, and so on; it should be noted that the I2C bus number here refers to the number of the I2C bus connected to the baseboard management controller and the voltage regulator chip, and each I2C bus corresponds to a different voltage regulator chip. Address bit: 0x01 represents the device at address 01, 0x02 represents the device at address 02, and so on. When the command bit is 0xFF, it means the request is over. Data bit: Define the number of data bits as N (N is a natural number), starting from 0x00. If there is no data, the bit will be 0xFF. Check bit: The inverse of the data bit, the check bit of 0x01 is 0xFE, and the check bit of 0x0A is 0XF5. If the data bit and the check bit do not meet the requirements, it means that the data is interfered and not received.
[0085] In this embodiment, by setting a preset communication protocol through the controller and the baseboard management controller, it is possible to ensure that the connection request and data information are transmitted in an orderly manner during the transmission process, thereby avoiding data loss or error.
[0086] Figure 3 The topology diagram of the voltage regulator chip debugging adapter board provided by the embodiment of the present invention. Figure 3 As shown, the voltage regulator chip debugging adapter board also includes: buttons and dip switches;
[0087] The buttons and DIP switches are connected to the controller;
[0088] Specifically, the button is a debug trigger button. After pressing it, the baseboard management controller of the mainboard and the controller of the adapter board start to communicate. The dip switch is used to manually adjust the I2C bus serial number to be communicated, that is, to manually adjust the voltage regulator chip to be communicated; after the controller obtains the I2C bus serial number, it obtains the address and communicates according to the serial number.
[0089] Correspondingly, determining a target voltage regulator chip to be debugged in the mainboard and generating a connection request to the target voltage regulator chip includes:
[0090] S111: Setting the target preset bus number based on the DIP switch;
[0091] S112: Determine whether the DIP switch is set correctly; if not, return to step S111; if yes, enter step S113;
[0092] S113: determining a corresponding target voltage regulator chip in the mainboard according to the set target preset bus serial number, and generating a connection request for the target voltage regulator chip;
[0093] Correspondingly, sending a connection request to the baseboard management controller via the second preset bus includes:
[0094] S114: enabling the control button and notifying the baseboard management controller to stop printing debugging information;
[0095] S115: Start data transmission to the baseboard management controller and send a connection request to the baseboard management controller.
[0096] In a specific implementation, when it is necessary to burn the voltage regulator chip firmware, or to troubleshoot the voltage regulator chip, the target preset bus number is first set based on the dip switch. It is understandable that the target preset bus number is actually the number of the I2C bus corresponding to the target voltage regulator chip, and the target voltage regulator chip is connected to the baseboard management controller through the I2C bus. When the target preset bus number is set, it is considered that the target voltage regulator chip needs to communicate and debug in the future. Further determine whether the dip switch is set correctly. In this embodiment, there is no restriction on the specific method of determining whether the dip switch is set correctly. For example, it can be determined based on a file containing the correspondence between the voltage regulator chip and the preset bus number, and it can also be determined by other methods, depending on the specific implementation situation.
[0097] If it is confirmed that the setting of the dip switch is incorrect, the process returns to the step of setting the target preset bus number based on the dip switch to reselect the correct target preset bus number. If it is confirmed that the setting of the dip switch is correct, the corresponding target voltage regulator chip in the mainboard is determined according to the set target preset bus number, and a connection request to the target voltage regulator chip is generated.
[0098] Furthermore, since the button is a trigger signal, the controller of the adapter board will not transmit a connection request to the baseboard management controller of the main board when it is not pressed. The serial port of the baseboard management controller of the main board is generally designed to continuously print debugging information so that timely analysis can be performed when problems occur. And because the protocol format of the controller and the baseboard management controller is different, the debugging information transmitted by the baseboard management controller of the main board to the controller of the adapter board will be intercepted. Therefore, after the control button is enabled, the controller will first notify the baseboard management controller of the main board to stop printing debugging information, and at the same time start data transmission to the baseboard management controller, and send a connection request to the baseboard management controller.
[0099] In this embodiment, by setting a dip switch and a button in the voltage regulator chip debugging adapter board, the target voltage regulator chip to be debugged can be conveniently selected, and data transmission to the baseboard management controller is started at the same time, and a connection request is sent to the baseboard management controller, thereby ensuring the accurate execution of the debugging of the target voltage regulator chip.
[0100] Based on the above embodiments, in some embodiments, the voltage regulator chip debugging adapter board further includes: an indicator light;
[0101] The indicator light is connected to the controller;
[0102] Correspondingly, judging whether the DIP switch is set correctly includes:
[0103] S116: Determine whether the lighting condition of the indicator light corresponds to the set target preset bus number; if so, confirm that the setting of the DIP switch is correct; if not, confirm that the setting of the DIP switch is incorrect.
[0104] In the specific implementation, in order to quickly confirm whether the preset bus number of the manually adjusted target is set correctly, such as Figure 3 As shown, the voltage regulator chip debugging adapter board also includes an indicator light, which is connected to the controller. It should be noted that the indicator light is controlled by the controller to display the target preset bus number it obtains.
[0105] Correspondingly, when judging whether the DIP switch is set correctly, it can be specifically judged whether the lighting of the indicator light corresponds to the set target preset bus number; if so, it is confirmed that the DIP switch is set correctly; if not, it is confirmed that the DIP switch is set incorrectly. The following is an example of the debugging process of the target voltage regulator chip:
[0106] The controller of the adapter board lights up the corresponding indicator light after obtaining the target preset bus number required by the current DIP switch; when the button is pressed, the controller of the adapter board receives a low-level signal and then sends a connection request for the target preset bus number to the baseboard management controller of the main board. For example, requesting I2C bus number 07:
[0107] 0xFF 0x00 0x07 0xFF;
[0108] Among them, the first end 0xFF represents the start; 0x00 represents the request; 0x07 represents the bus number 07; and the tail end 0xFF represents the end.
[0109] After receiving the connection request from the controller of the adapter board, the baseboard management controller of the mainboard will first stop printing the serial port information for debugging, and then send the devices and data under the I2C bus serial number to the controller of the adapter board in sequence according to the preset communication protocol. For example, the device with the I2C bus serial number 07 is transmitted, with 3 devices under it and the number of data bits is 2:
[0110] 0xFF 0x01 0x07 0x00 0x00 0xFF 0x0A 0xF5 0x01 0x02 0xFD 0x03 0xFC 0x020x03 0xFC 0x01 0xFE 0xFF;
[0111] Among them, the first end 0xFF represents the start; 0x01 represents the reply; 0x07 represents the bus number 07; 0x00 represents the address 00, 0x00 represents the data 1, 0xFF represents the data 1 check, 0x0A represents the data 2, 0xF5 represents the data 2 check; 0x01 represents the address 01, 0x02 represents the data 1, 0xFD represents the data 1 check, 0x03 represents the data 2 check, 0xFC represents the data 2 check; 0x02 represents the address 02, 0x03 represents the data 1, 0xFC represents the data 1 check, 0x01 represents the data 2, 0xFE represents the data 2 check; the tail end 0xFF represents the end.
[0112] Based on the above embodiments, in some embodiments, after the baseboard management controller sends data information to the controller through the second preset bus based on the preset communication protocol, the method further includes:
[0113] S121: Determine whether the data information is correct based on the data bits and the check bits in the data information; if the data information is correct, proceed to step S12; if the data information is incorrect,
[0114] S122: Sending a request for information representing the re-acquisition of data to a baseboard management controller.
[0115] In order to ensure accurate debugging of the target voltage regulator chip, it is necessary to ensure the accuracy of the data information of the target voltage regulator chip. Therefore, after the controller receives the data information sent by the baseboard management controller, the controller needs to determine whether the data information is correct based on the data of the data bit and the data of the check bit in the data information. It can be seen from the above embodiment that the check bit is inverted from the data bit, the 0x01 check bit is 0xFE, and the 0x0A check bit is 0XF5. If the data bit and the check bit do not meet the requirements, it means that the data is interfered and not received. Therefore, if it is confirmed that the data information is correct, the step of sending the data information to the voltage regulator chip debugging tool through the first preset bus is entered; if it is confirmed that the data information is incorrect, it is necessary to send a request to the baseboard management controller to represent the re-acquisition of the data information, so that the baseboard management controller can resend the data information of the target voltage regulator chip, thereby ensuring the accurate execution of the debugging of the target voltage regulator chip.
[0116] Based on the above embodiments, in some embodiments, after sending the data information to the voltage regulator chip debugging tool through the first preset bus, the method further includes:
[0117] S131: monitoring the debugging result sent by the voltage regulator chip debugging tool through the first preset bus;
[0118] S132: When a debugging result indicating an output voltage fault is received, the indicator light is controlled to output prompt information indicating an output voltage fault.
[0119] In order to make it easier for users to obtain the debugging results of the voltage regulator chip, in this embodiment, after sending data information to the voltage regulator chip debugging tool through the first preset bus, the voltage regulator chip debugging tool debugs the target voltage regulator chip according to the data information. During the debugging process, the controller continuously monitors the debugging results sent by the voltage regulator chip debugging tool through the first preset bus. In this embodiment, there is no restriction on the debugging results, for example, it may include debugging results indicating successful debugging, debugging results indicating the existence of voltage faults, and debugging results indicating debugging errors, depending on the specific implementation situation.
[0120] When a debugging result indicating an output voltage fault is received, the indicator light is controlled to output prompt information indicating an output voltage fault, so that the user can promptly obtain information indicating an output voltage fault of the current target voltage regulator chip and take maintenance measures.
[0121] For example, after determining that the target voltage regulator chip has an output voltage fault, check the power input and load conditions to ensure that the power input voltage of the target voltage regulator chip is within the specified range and that the connected load is within its rated load range; if the output voltage drops, try to increase the output capacitance to stabilize the output voltage; you can also adjust the target voltage regulator chip parameters, such as the undervoltage protection threshold and overcurrent protection threshold of the target voltage regulator chip according to specific application requirements, to optimize its performance and ensure the normal operation of the target voltage regulator chip.
[0122] On the basis of the above embodiments, in some embodiments, the voltage regulator chip debugging adapter board also includes: a controller firmware burning connector; the controller firmware burning connector is connected to a preset interface of the controller. In this embodiment, there is no limitation on the preset interface, for example, it can be a Joint Test Action Group (JTAG) interface. Correspondingly, in a specific implementation, the controller can be further burned with preset firmware through the controller firmware burning connector. It should be noted that by burning different controller firmware versions for debugging through the controller firmware burning connector, different models of baseboard management controller chips can be adapted, which greatly improves the practicality of the adapter board.
[0123] In the above embodiments, the voltage regulator chip debugging method is described in detail. The present invention also provides a corresponding embodiment of a voltage regulator chip debugging device.
[0124] Figure 4 A schematic diagram of a voltage regulator chip debugging device provided by an embodiment of the present invention. The device is applied to a voltage regulator chip debugging adapter board; the voltage regulator chip debugging adapter board includes a controller and a pin header; the controller is connected to the pin header through a first preset bus, and the pin header is connected to a voltage regulator chip debugging tool through the first preset bus; the controller is connected to a baseboard management controller of a mainboard through a second preset bus; wherein the mainboard is provided with an external second preset bus interface; such as Figure 4 As shown, the device comprises:
[0125] The determination module 10 is used to determine the target voltage regulator chip to be debugged in the mainboard and generate a connection request to the target voltage regulator chip.
[0126] The first sending module 11 is used to send a connection request to the baseboard management controller through the second preset bus, so that the baseboard management controller obtains data information of the target voltage regulator chip according to the connection request and sends the data information to the controller through the second preset bus.
[0127] The second sending module 12 is used to send data information to the voltage regulator chip debugging tool through the first preset bus, so that the voltage regulator chip debugging tool can communicate and debug the target voltage regulator chip according to the data information.
[0128] In some embodiments, the first sending module 11 includes:
[0129] A first sending submodule is used to send a connection request to the baseboard management controller through a second preset bus based on a preset communication protocol; wherein the format of the preset communication protocol is a frame header, a function code, a command bit, an address bit, a data bit, a check bit and a frame tail;
[0130] Correspondingly, the baseboard management controller sends data information to the controller through the second preset bus, specifically based on the preset communication protocol, and sends the data information to the controller through the second preset bus.
[0131] In some embodiments, the voltage regulator chip debugging adapter board further includes: a button and a dip switch;
[0132] The buttons and DIP switches are connected to the controller;
[0133] Correspondingly, the determination module 10 includes:
[0134] The setting submodule is used to set the target preset bus number based on the DIP switch;
[0135] The first judgment submodule is used to judge whether the setting of the dip switch is correct; if it is confirmed that the setting of the dip switch is incorrect, the setting submodule is triggered; if it is confirmed that the setting of the dip switch is correct, the first determination submodule is triggered;
[0136] A first determination submodule, used to determine a corresponding target voltage regulator chip in the mainboard according to a set target preset bus serial number, and generate a connection request to the target voltage regulator chip;
[0137] Correspondingly, the first sending module 11 includes:
[0138] The control submodule is used to control the key enable and notify the baseboard management controller to stop printing debugging information;
[0139] The starter module is used to start data transmission to the baseboard management controller and send a connection request to the baseboard management controller.
[0140] In some embodiments, the voltage regulator chip debugging adapter board further includes: an indicator light;
[0141] The indicator light is connected to the controller;
[0142] Correspondingly, the first judgment submodule includes:
[0143] The second judgment submodule is used to judge whether the lighting condition of the indicator light corresponds to the set target preset bus number; if so, it is confirmed that the setting of the dip switch is correct; if not, it is confirmed that the setting of the dip switch is incorrect.
[0144] In some embodiments, it also includes:
[0145] The third judgment submodule is used to judge whether the data information is correct according to the data of the data bit and the data of the check bit in the data information; if the data information is confirmed to be correct, the second sending module 12 is triggered; if the data information is confirmed to be incorrect, the second sending submodule is triggered;
[0146] The second sending submodule is used to send a request for representing the re-acquisition of data information to the baseboard management controller.
[0147] In some embodiments, it also includes:
[0148] A monitoring submodule, used for monitoring the debugging result sent by the voltage regulator chip debugging tool through the first preset bus;
[0149] The prompt submodule is used to control the indicator light to output prompt information indicating the output voltage fault when receiving the debugging result indicating the output voltage fault.
[0150] In some embodiments, the voltage regulator chip debugging adapter board further includes: a controller firmware burning connector; the controller firmware burning connector is connected to a preset interface of the controller;
[0151] Correspondingly, the device also includes:
[0152] The burning submodule is used to burn the preset firmware into the controller through the controller firmware burning connector.
[0153] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0154] Figure 5 A schematic diagram of a voltage regulator chip debugging device provided by an embodiment of the present invention. Figure 5 As shown, the voltage regulator chip debugging equipment includes:
[0155] A memory 20, used for storing computer programs;
[0156] The processor 21 is used to implement the steps of the voltage regulator chip debugging method mentioned in the above embodiment when executing the computer program.
[0157] The voltage regulator chip debugging device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0158] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0159] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the voltage regulator chip debugging method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to data related to the voltage regulator chip debugging method.
[0160] In some embodiments, the voltage regulator chip debugging device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0161] Those skilled in the art will understand that Figure 5The structure shown in the figure does not constitute a limitation on the voltage regulator chip debugging device, and may include more or less components than those shown in the figure.
[0162] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0163] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.
[0164] The above is a detailed introduction to a voltage regulator chip debugging method, device, equipment and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.
[0165] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A voltage regulator chip debugging method, characterized in that: Applicable to a voltage regulator chip debugging adapter board; the voltage regulator chip debugging adapter board comprises a controller and a pin header; the controller is connected to the pin header via a first preset bus, and the pin header is connected to a voltage regulator chip debugging tool via the first preset bus; The controller is connected to the baseboard management controller of the mainboard via a second preset bus; wherein the mainboard is provided with an external second preset bus interface; the method comprises: Determining a target voltage regulator chip to be debugged in the mainboard, and generating a connection request for the target voltage regulator chip; Sending a connection request to the baseboard management controller through a second preset bus, so that the baseboard management controller obtains data information of the target voltage regulator chip according to the connection request, and sends the data information to the controller through the second preset bus; The data information is sent to the voltage regulator chip debugging tool via the first preset bus, so that the voltage regulator chip debugging tool can communicate and debug the target voltage regulator chip according to the data information.
2. The voltage regulator chip debugging method according to claim 1, characterized in that: The sending of the connection request to the baseboard management controller via the second preset bus includes: Based on a preset communication protocol, a connection request is sent to the baseboard management controller through a second preset bus; wherein the format of the preset communication protocol is a frame header, a function code, a command bit, an address bit, a data bit, a check bit and a frame tail; Correspondingly, the baseboard management controller sends data information to the controller via the second preset bus, including: The baseboard management controller sends data information to the controller through a second preset bus based on a preset communication protocol.
3. The voltage regulator chip debugging method according to claim 1, characterized in that: The voltage regulator chip debugging adapter board also includes: a button and a DIP switch; The button and the DIP switch are both connected to the controller; Correspondingly, the step of determining a target voltage regulator chip to be debugged in the mainboard and generating a connection request to the target voltage regulator chip includes: Setting the target preset bus number based on the DIP switch; Determine whether the DIP switch is set correctly; If it is confirmed that the setting of the DIP switch is incorrect, returning to the step of setting the target preset bus number based on the DIP switch; If it is confirmed that the setting of the DIP switch is correct, the corresponding target voltage regulator chip in the mainboard is determined according to the set target preset bus number, and a connection request for the target voltage regulator chip is generated; Correspondingly, sending the connection request to the baseboard management controller through the second preset bus includes: Controlling the button to enable, and notifying the baseboard management controller to stop printing debugging information; Initiate data transmission to the baseboard management controller and send a connection request to the baseboard management controller.
4. The voltage regulator chip debugging method according to claim 3, characterized in that: The voltage regulator chip debugging adapter board also includes: an indicator light; The indicator light is connected to the controller; Correspondingly, the determining whether the DIP switch is set correctly includes: Determine whether the lighting condition of the indicator light corresponds to the set target preset bus number; If yes, confirm that the DIP switch is set correctly; If not, it is confirmed that the DIP switch setting is incorrect.
5. The voltage regulator chip debugging method according to claim 2, characterized in that: After the baseboard management controller sends data information to the controller through the second preset bus based on the preset communication protocol, the method further includes: Judging whether the data information is correct according to the data of the data bit and the data of the check bit in the data information; If the data information is confirmed to be correct, the step of sending the data information to the voltage regulator chip debugging tool via the first preset bus is entered; If it is confirmed that the data information is incorrect, a request for re-acquiring the data information is sent to the baseboard management controller.
6. The voltage regulator chip debugging method according to claim 4, characterized in that: After sending the data information to the voltage regulator chip debugging tool through the first preset bus, the method further includes: Monitoring the debugging result sent by the voltage regulator chip debugging tool through the first preset bus; When a debugging result indicating an output voltage fault is received, the indicator light is controlled to output prompt information indicating an output voltage fault.
7. The voltage regulator chip debugging method according to any one of claims 1 to 6, characterized in that: The voltage regulator chip debugging adapter board also includes: a controller firmware burning connector; the controller firmware burning connector is connected to a preset interface of the controller; Correspondingly, the method further includes: The controller is burned with a preset firmware via the controller firmware burning connector.
8. A voltage regulator chip debugging device, characterized in that: Applicable to a voltage regulator chip debugging adapter board; the voltage regulator chip debugging adapter board comprises a controller and a pin header; the controller is connected to the pin header via a first preset bus, and the pin header is connected to a voltage regulator chip debugging tool via the first preset bus; The controller is connected to the baseboard management controller of the mainboard via a second preset bus; wherein the mainboard is provided with an external second preset bus interface; the device comprises: A determination module, used for determining a target voltage regulator chip to be debugged in the mainboard, and generating a connection request for the target voltage regulator chip; a first sending module, configured to send a connection request to the baseboard management controller through a second preset bus, so that the baseboard management controller obtains data information of the target voltage regulator chip according to the connection request, and sends the data information to the controller through the second preset bus; The second sending module is used to send data information to the voltage regulator chip debugging tool through the first preset bus, so that the voltage regulator chip debugging tool can communicate and debug the target voltage regulator chip according to the data information.
9. A voltage regulator chip debugging device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the voltage regulator chip debugging method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the voltage regulator chip debugging method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Power supply timing sequence power-on monitoring circuit
CN111308934A
Processor BOOT program loading and curing method
CN116244000A
Mainboard debugging system and method and electronic equipment
CN117389806A
Debugging method, chip, board, and system
US20130326280A1