A JTAG link for online and offline CPLD updates and its implementation method
By setting up JTAG connectors, CPLDs, and BMCs on the server motherboard, and using JTAG connectors and jumper pins to achieve electrical connectivity between online and offline systems, the cost issue of updating CPLDs online and offline is solved, saving costs and resources.
Patent Information
- Application Number
- CN202211007851.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-08-22
AI Technical Summary
Existing technology cannot provide a JTAG link for online and offline CPLD updates, which increases time and technical costs, and the addition of electronic switching devices leads to increased production costs.
By setting up JTAG connectors, CPLDs, and BMCs on the server motherboard, electrical connections between the line and line are achieved using JTAG connectors, JTAG analog connectors, and jumper pins. Jumper caps are used to switch JTAG links, eliminating the need for electronic switching devices.
It enables the burning or updating of CPLD software through both online and offline methods, saving time, technology and production costs.
Smart Images

Figure CN115658097B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of hardware debugging technology, and in particular relates to a JTAG link for online and offline CPLD updates and its implementation method. Background Technology
[0002] Baseboard Management Controller (BMC) and Complex Programmable Logic Device (CPLD) are commonly used control and management chips in server products. Because CPLDs require frequent software updates, they are typically programmed on-site using a manufacturer-provided programmer, such as a JTAG (Joint Test Action Group) programmer, without additional chips or application support. However, on the one hand, on-site software updates require technicians to travel to the customer's location, increasing time and technical costs. On the other hand, many applications involve remote management and operation. Currently, remote online programming of CPLDs via BMC typically involves adding an electronic switching device (such as a switch) to switch between the JTAG programmer and the BMC. However, the high cost of electronic switching devices increases production costs, putting significant pressure on sales. Summary of the Invention
[0003] The purpose of this invention is to provide a JTAG link and its implementation method for online and offline CPLD updates. This invention aims to solve the problems caused by the inability of existing technologies to provide a JTAG link for online and offline CPLD updates, which prevents the burning or updating of CPLD software through both online and offline methods, resulting in increased time and technical costs, as well as increased production costs due to the addition of electronic switching devices.
[0004] On one hand, this invention provides a JTAG link for online and offline CPLD updates, including a JTAG connector and a server motherboard. The server motherboard is equipped with a CPLD and a BMC. The JTAG connector has a JTAG header, and the CPLD has a JTAG interface. The TMS, TCK, TDO, and TDI pins of the JTAG header are respectively connected to the TMS, TCK, TDI, and TDO pins of the JTAG interface. The BMC has a JTAG analog header, and the JTAG... The TMS, TCK, TDO, and TDI pins of the AG analog connector are respectively connected to the TMS, TCK, TDI, and TDO pins of the CPLD. The server motherboard also has two jumper pins, one of which is connected to the BMC and the other is connected to the GND terminal. The two jumper pins are electrically connected to the JTAG connector and the CPLD link by plugging into the same jumper cap. If the same jumper cap is not plugged into the two jumper pins, the BMC and CPLD link are electrically connected.
[0005] Preferably, the JTAG analog connector consists of four GPIO pins on the BMC.
[0006] Preferably, the four GPIO pins correspond to the TMS pin, TCK pin, TDI pin, and TDO pin of the JTAG analog connector, respectively.
[0007] Preferably, the jumper pin is a jumper post.
[0008] Preferably, the jumper cap comprises two conductive plates.
[0009] On the other hand, the present invention also provides a method for implementing online and offline CPLD updates, employing the JTAG link described in any of the above claims, the method comprising the following steps:
[0010] S1: Pre-determine whether the CPLD should be upgraded in-situ or remotely;
[0011] S2: If it is an on-site upgrade, connect the same jumper to two jumper pins to make the JTAG connector and CPLD link electrically connected, and upgrade the CPLD through the JTAG connector;
[0012] S3: If it is a remote upgrade, do not plug the same jumper into two jumper pins to make the BMC and CPLD link electrically connected, and upgrade the CPLD through the BMC.
[0013] Preferably, in step S2, the method includes:
[0014] S21: Connect the JTAG connector to the local debug host network, and send an upgrade command to the local debug host;
[0015] S22: The local debugging host obtains the upgrade command of the CPLD, and then burns the program upgrade file into the CPLD through the JTAG connector.
[0016] Preferably, in step S3, the method includes:
[0017] S31: Connect the BMC to the remote debugging host network, and send an upgrade command to the remote debugging host;
[0018] S32: The remote debugging host obtains the upgrade command of the CPLD, and then burns the program upgrade file into the CPLD through the BMC.
[0019] The beneficial effects of this invention are as follows: Unlike existing technologies, the JTAG link for online and offline CPLD updates includes a JTAG connector, a CPLD, and a BMC. The JTAG connector, CPLD, and BMC are each equipped with a JTAG connector, a JTAG interface, and a JTAG analog connector. The JTAG connectors are connected to the JTAG interfaces, and the JTAG analog connectors are also connected to the JTAG interfaces. The server motherboard also has two jumper pins connected to the BMC and GND terminals respectively. The two jumper pins are electrically connected to the JTAG connector and the CPLD link by plugging into the same jumper cap. If the same jumper cap is not plugged into the two jumper pins, the BMC and CPLD link are electrically connected. By using a low-cost jumper cap, the purpose of burning or updating CPLD software through both online and offline methods can be achieved, while also saving an electronic switching device, thus significantly reducing time, technical, and production costs. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of a JTAG link for implementing online and offline CPLD updates according to an embodiment of the present invention;
[0021] Figure 2 This is a flowchart illustrating the implementation of an online / offline CPLD update method according to an embodiment of the present invention.
[0022] Figure 3 for Figure 2 A schematic diagram of a sub-process of step S2 shown in the figure;
[0023] Figure 4 for Figure 2 The diagram shows a sub-process of step S3. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0025] The specific implementation of the present invention will be described in detail below with reference to specific embodiments:
[0026] Example 1:
[0027] like Figure 1 As shown in the figure, Embodiment 1 of the present invention provides a JTAG link for online and offline CPLD updates, including a JTAG connector 1 and a server motherboard. The server motherboard is equipped with a CPLD 2 and a BMC 3. The JTAG connector 1 has a JTAG header, and the CPLD 2 has a JTAG interface. The TMS pin, TCK pin, TDO pin, and TDI pin of the JTAG header are respectively connected to the TMS pin, TCK pin, TDI pin, and TDO pin of the JTAG interface. The BMC 3 has a JTAG analog header. The TMS, TCK, TDO, and TDI pins of the connector are respectively connected to the TMS, TCK, TDI, and TDO pins of CPLD2. The server motherboard also has two jumper pins, one of which is connected to BMC3, and the other jumper pin is connected to GND (Ground). The two jumper pins are electrically connected to the JTAG connector 1 and CPLD2 by plugging them into the same jumper cap. If the same jumper cap is not plugged into the two jumper pins, the BMC3 and CPLD2 links are electrically connected.
[0028] The BMC3 has four GPIO (General-purpose input / output) pins, which are general-purpose I / O ports. Therefore, the four GPIO pins on the BMC3 are configured as JTAG analog connectors. These JTAG analog connectors also include TMS, TCK, TDI, and TDO pins, which are respectively connected to the JTAG interface. By using the four GPIO pins on the BMC3 to simulate the JTAG bus connector, the BMC3 can be electrically connected to the JTAG interface of the CPLD2 through the JTAG analog connector, enabling remote online software programming of the CPLD2.
[0029] Specifically, in Embodiment 1 of the present invention, the jumper pin is a jumper post, one end of which is connected to BMC3 and the other end is used to insert a jumper cap; one end of which is connected to GND and the other end is also used to insert the jumper cap inserted by one of the aforementioned jumper posts.
[0030] Correspondingly, the jumper cap in Embodiment 1 of the present invention includes two conductive pieces, which are used to contact the two jumper pins respectively to realize the electrical connection between JTAG connector 1 and CPLD2 link; conversely, if the jumper cap is not contacted with the two jumper pins (i.e., not plugged into the two jumper pins), the electrical connection between BMC3 and CPLD2 link is realized.
[0031] Specifically, in Embodiment 1 of the present invention, the JTAG connector 1 is a JTAG Header (programming pin connector).
[0032] The following example uses a JTAG link for online and offline CPLD updates, which is applied in practice. Its specific working principle is as follows:
[0033] Based on the JTAG link provided in Embodiment 1 of this invention, if CPLD2 is to be programmed via the JTAG Header, the same jumper needs to be inserted into the two jumper pins that are respectively connected to BMC3 and GND. The same jumper is electrically connected to the two jumper pins, thereby turning off the JTAG function of BMC3. The JTAG signal of BMC3 will become a high-impedance state. At this time, the JTAG link actually only has two devices: JTAG connector 1 and CPLD2, which meets the normal connection requirements of JTAG. Actual testing and application show good results.
[0034] Based on the JTAG link provided in Embodiment 1 of this invention, if CPLD2 is to be remotely programmed via the BMC2 line, it is not necessary to plug the same jumper into two jumper pins. The electrical connection between the BMC3 and CPLD2 links can be directly established. In this case, the JTAG signal of the JTAG Header will not be transmitted to CPLD2. There are actually only two devices on the JTAG link: BMC2 and CPLD2, which conforms to the JTAG link. There are no problems in actual testing and application.
[0035] It should be noted that the first programming of the CPLD2 still needs to be performed via the JTAG Header.
[0036] Therefore, by directly connecting three JTAG devices and setting up a low-cost jumper, the goal of burning or updating CPLD software can be achieved both online and offline, while eliminating the need for an electronic switching device, thus saving time, technology, and production costs.
[0037] Example 2:
[0038] like Figure 2 As shown, Embodiment 2 of the present invention provides a method for implementing online and offline CPLD updates, using the JTAG link described in Embodiment 1 above. The method includes the following steps:
[0039] S1: Pre-determine whether the CPLD should be upgraded in-situ or remotely;
[0040] S2: If it is an on-site upgrade, connect the same jumper to two jumper pins to make the JTAG connector and CPLD link electrically connected, and upgrade the CPLD through the JTAG connector;
[0041] S3: If it is a remote upgrade, do not plug the same jumper into two jumper pins to make the BMC and CPLD link electrically connected, and upgrade the CPLD through the BMC.
[0042] In step S1, determining in advance whether the CPLD will be upgraded on-site or remotely means that, firstly, based on the upgrade requirements and conditions, the manufacturer and the customer need to confirm, through offline or online communication, whether a technician will come to the site to update or upgrade the CPLD or whether a technician will update or upgrade the CPLD remotely.
[0043] In step S2, such as Figure 3 As shown, the method specifically includes:
[0044] S21: Connect the JTAG connector to the local debug host network, and send an upgrade command to the local debug host;
[0045] S22: The local debugging host obtains the upgrade command of the CPLD, and then burns the program upgrade file into the CPLD through the JTAG connector.
[0046] In step S3, such as Figure 4 As shown, the method specifically includes:
[0047] S31: Connect the BMC to the remote debugging host network, and send an upgrade command to the remote debugging host;
[0048] S32: The remote debugging host obtains the upgrade command of the CPLD, and then burns the program upgrade file into the CPLD through the BMC.
[0049] It should be noted that steps S2 and S3 described in the above embodiments are only for better illustrating the application method. In actual application, the order of steps S2 and S3 will not limit the technical solution of the embodiments of the present invention.
[0050] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A JTAG link for implementing in-circuit, in-capsule updates of a CPLD using a method for implementing in-circuit, in-capsule updates of a CPLD, the method comprising: The system includes a JTAG connector and a server motherboard. The server motherboard has a CPLD and a BMC. The JTAG connector has a JTAG header, and the CPLD has a JTAG interface. The TMS, TCK, TDO, and TDI pins of the JTAG header are respectively connected to the TMS, TCK, TDI, and TDO pins of the JTAG interface. The BMC has a JTAG analog header, and the TMS, TCK, TDO, and TDI pins of the JTAG analog header are respectively connected to the TMS, TCK, TDO, and TDI pins of the CPLD. The server motherboard also has two jumper pins, one of which is connected to the BMC and the other is connected to the GND terminal. The two jumper pins are electrically connected to the JTAG connector and the CPLD link by being plugged into the same jumper cap. Electrical connection between the BMC and the CPLD link is achieved when the same jumper cap is not plugged into either jumper pin. The JTAG analog connector consists of four GPIO pins on the BMC. These four GPIO pins correspond to the TMS pin, TCK pin, TDI pin, and TDO pin of the JTAG analog connector, respectively. The method includes the following steps: S1: Pre-determine whether the CPLD should be upgraded in-situ or remotely; S2: If it is a field upgrade, the same jumper cap is plugged into two jumper pins to electrically connect the JTAG connector and the CPLD link, and the CPLD is upgraded through the JTAG connector; in S2, the method includes: S21: Connect the JTAG connector to the local debug host network, and send an upgrade command to the local debug host; S22: The local debugging host obtains the upgrade command of the CPLD, and then burns the program upgrade file into the CPLD through the JTAG connector; S3: If it is a remote upgrade, the same jumper cap is not plugged into two jumper pins, so that the BMC and CPLD links are electrically connected, and the CPLD is upgraded through the BMC; in S3, the method includes: S31: Connect the BMC to the remote debugging host network, and send an upgrade command to the remote debugging host; S32: The remote debugging host obtains the upgrade command of the CPLD, and then burns the program upgrade file into the CPLD through the BMC.
2. The JTAG link for online and offline CPLD updates as described in claim 1, characterized in that: The jumper pin is a jumper post.
3. The JTAG link for online and offline CPLD updates as described in claim 1, characterized in that: The jumper cap includes two conductive plates.
Citation Information
Patent Citations
Fault locating and software upgrading circuit based on JTAG link and implementation method thereof
CN104156288A
Server and firmware upgrading method
CN113542024A
