A joint debugging method, device, equipment and medium
By configuring dedicated debug serial ports for the firmware and kernel software of the SoC chip, the problem of chaotic debug logs at multiple software levels was solved, and efficient debug information output was achieved.
Patent Information
- Application Number
- CN202211026366.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-08-25
AI Technical Summary
In the Armv8 architecture, when software of different privilege levels on a SoC chip is debugged through the same debug serial port, the printed logs are prone to being chaotic and need to be synchronized, resulting in low debugging efficiency.
Configure the serial port of the SoC chip as a dedicated debugging serial port for firmware software and kernel software, and output their respective debugging print information through different serial ports to achieve information separation and independent output.
By configuring a dedicated serial port, log printing chaos is avoided, debugging efficiency is improved, and debugging information at different software levels is ensured not to interfere with each other.
Smart Images

Figure CN115454829B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of information technology, and in particular to a joint debugging method and device, equipment and medium. BACKGROUND
[0002] Now the CPU under the Armv8 architecture is mainly divided into 4 privilege levels, and each privilege level runs the program under the respective level. Generally speaking, EL3 is the highest privilege level, and the program running is firmware (firmware software), which can generally access all hardware resources on the SoC chip, including security-related resources. EL2 privilege level is next, this level can not run the program, if the program is running, the corresponding program belongs to the hypervisor type. EL1 privilege level is next, running the kernel (kernel software) in the usual sense, such as linux kernel, which can access most hardware resources, but security-related and power management-related resources cannot be directly accessed, so when EL1 needs to handle these requests, it will send a message to the firmware program of EL3 to let the firmware program help EL1 complete part of the operation. EL0 is the lowest privilege level, which has no privilege and cannot directly control hardware resources. The control of hardware resources by User App (user application software) needs to be completed by requesting EL1 kernel, and most of the applications we encounter run at EL0 level.
[0003] Generally speaking, SoC generally has only one debugging serial port, and all privilege levels of software share the same debugging serial port.
[0004] When developing a new SoC, the corresponding software of each privilege level generally needs to be developed, and all privilege levels of software need to be debugged. The firmware typically at the EL3 level is generally responsible for the initialization of the entire SoC, the startup of multiple cores, power management, and other basic core functions. The kernel at the EL1 level is responsible for the initialization of other hardware modules and the booting of other CPU cores in the SoC system when necessary, and when multiple cores are running, each core has debugging printing needs, and the kernel is responsible for managing the synchronization operations between multiple cores, otherwise all cores will print at the same time, which will cause printing confusion.
[0005] In fact, due to the use of the debugging serial port by other privilege level software, the situation is more complex. Not only will the print logs of all privilege levels of software be mixed together, but they also need to implement some form of synchronization to avoid other abnormal situations. SUMMARY
[0006] The application provides a joint debugging method and device, and a medium to solve the problem of printing log confusion in the prior art when multiple software are debugged through a common debugging serial port.
[0007] To solve the above problems, the application adopts the following technical solutions:
[0008] The application provides a joint debugging method applied to an SoC chip, wherein the SoC chip comprises a first serial port and a second serial port, the SoC chip is configured with firmware software and kernel software, and the method comprises the following steps.
[0009] The first serial port is configured as a dedicated debugging serial port of the firmware software, and the second serial port is configured as a dedicated debugging serial port of the kernel software.
[0010] The firmware software is debugged to obtain first debugging print information, and the first debugging print information is output through the first serial port.
[0011] The kernel software is debugged to obtain second debugging print information, and the second debugging print information is output through the second serial port.
[0012] Further, before the first serial port is configured as the dedicated debugging serial port of the firmware software, and the second serial port is configured as the dedicated debugging serial port of the kernel software, the method further comprises the following steps.
[0013] The first serial port and the second serial port are initialized.
[0014] Further, the step of debugging the firmware software to obtain first debugging print information comprises the following steps.
[0015] A first instruction of the firmware software is read, and the first instruction is executed to perform debugging to obtain first debugging print information; wherein the kernel software calls a second instruction set in advance to make the kernel software fall into the firmware software, and a first parameter corresponding to the second instruction is transmitted to the firmware software, and the firmware software runs a first instruction set in advance according to the first parameter.
[0016] Further, the SoC chip is configured with user application software, and the step of debugging the firmware software to obtain first debugging print information further comprises the following steps.
[0017] read a fifth instruction of the firmware software, and execute the fifth instruction to perform debugging to obtain first debugging print information; wherein the user application software invokes a sixth instruction set internally in advance to make the user application software fall into the kernel software, and passes a third parameter corresponding to the sixth instruction to the kernel software, the kernel software invokes a seventh instruction set internally in advance according to the third parameter to make the kernel software fall into the firmware software, and passes a fourth parameter corresponding to the seventh instruction to the firmware software, and the firmware software runs a fifth instruction set internally in advance according to the fourth parameter.
[0018] Further, the SoC chip is configured with user application software, and the debugging of the kernel software to obtain second debugging print information comprises:
[0019] reading a third instruction of the kernel software, and executing the third instruction to perform debugging to obtain second debugging print information; wherein the user application software invokes a fourth instruction set internally in advance to make the user application software fall into the kernel software, and passes a second parameter corresponding to the fourth instruction to the kernel software, and the kernel software runs a third instruction set internally in advance according to the second parameter.
[0020] Further, after the debugging of the firmware software to obtain first debugging print information and the output of the first debugging print information through the first serial port, the method further comprises:
[0021] if the firmware software passes the test, adjusting the print level of the firmware software to a preset lowest level, and releasing the occupation of the first serial port by the firmware software.
[0022] Further, the output of the first debugging print information through the first serial port comprises:
[0023] transmitting the first debugging print information to a print terminal through the first serial port, so that the print terminal prints and displays the first debugging print information;
[0024] the output of the second debugging print information through the second serial port comprises:
[0025] transmitting the second debugging print information to a print terminal through the second serial port, so that the print terminal prints and displays the second debugging print information.
[0026] In a second aspect, the application further provides a joint debugging device comprising a unit for executing the method of the first aspect.
[0027] In a third aspect, the present application further provides an electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus.
[0028] The memory is used for storing a computer program.
[0029] The processor is used for executing the program stored on the memory to realize the steps of the method of the first aspect.
[0030] In a fourth aspect, the present application further provides a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to realize the steps of the method of the first aspect.
[0031] Compared with the prior art, the above technical solution provided by the present application has the following advantages:
[0032] In the present application, the first serial port in the SoC chip is configured as a special debugging serial port of firmware software, and the second serial port is configured as a special debugging serial port of kernel software; then the firmware software is debugged to obtain first debugging print information, and the first debugging print information is output through the first serial port; at the same time, the kernel software is debugged to obtain second debugging print information, and the second debugging print information is output through the second serial port, so that the first serial port configured as the special debugging serial port of the firmware software completely separates the debugging print information of the firmware software from the kernel software and the debugging print information of the firmware software from other software, and the firmware software does not need to make any software synchronization with other software, thereby avoiding the confusion of print logs and improving the debug efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application together with the specification.
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced hereinafter. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
[0035] Figure 1 A flowchart of a joint debugging method provided for Embodiment 1 of the present application;
[0036] Figure 2 A structure block diagram of a joint debugging device provided for Embodiment 2 of the present application;
[0037] Figure 3A structural schematic diagram of an electronic device provided in Embodiment 3 of the present application;
[0038] Figure 4 A structural schematic diagram of the prior art in which each software is debugged through one debugging serial port;
[0039] Figure 5 A structural schematic diagram in which each software provided in the embodiments of the present application is debugged through two serial ports;
[0040] Figure 6 A flowchart of a joint debugging method provided in a specific embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to more fully understand the technical content of the present application, the technical solutions of the present application will be further introduced and described below in combination with specific embodiments, but are not limited thereto.
[0042] The technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0043] It should be understood that, when used in the specification and the appended claims, the terms "comprise" and "include" indicate the presence of described features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or sets thereof.
[0044] It should also be understood that the term "and / or" used in the specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations thereof, and includes these combinations.
[0045] Embodiment 1
[0046] Referring to Figure 1 , in combination with Figure 4 and Figure 5 shown, Figure 1 a flowchart of a joint debugging method provided in Embodiment 1 of the present application. The method can be applied to a SoC chip, the SoC chip including a first serial port and a second serial port, the SoC chip being configured with firmware software and kernel software. Specifically, as shown in Figure 1 , the method includes the following steps S101-S103.
[0047] S101, configure the first serial port as a dedicated debug serial port for the firmware software, and configure the second serial port as a dedicated debug serial port for the kernel software.
[0048] Specifically, after receiving a serial port configuration instruction or serial port configuration information input by a user, the SoC chip configures the first serial port as a dedicated debug serial port for the firmware software, and configures the second serial port as a dedicated debug serial port for the kernel software, so that the firmware software exclusively occupies one debug serial port, the firmware software exclusively occupies the first serial port, and other software (kernel software, user application software, and hypervisor) in an upper layer share one debug serial port, i.e., share the second serial port; the first serial port and the second serial port are any two serial ports in the SoC chip.
[0049] S102, debugging the firmware software to obtain first debug print information, and outputting the first debug print information through the first serial port.
[0050] Specifically, the SoC chip debugs the firmware software to obtain first debug print information, and then outputs and displays the first debug print information through the first serial port, so that the debug print information of the firmware software is sent to the test device through the exclusive first serial port for printing, so that the debug print information of the firmware software is not mixed with the print information of other software, the debug print information of the firmware software and other software is completely separated, and the firmware software does not need to make any software synchronization with other software.
[0051] S103, debugging the kernel software to obtain second debug print information, and outputting the second debug print information through the second serial port.
[0052] Specifically, the SoC chip debugs the kernel software to obtain second debug print information, and then outputs and displays the second debug print information through the second serial port, so that, in addition to the firmware software, the debug print information of the kernel software and other software is sent to the test device through the second serial port for printing, so as not to be mixed with the print information of the firmware software.
[0053] In an embodiment, the debugging the firmware software to obtain first debug print information comprises:
[0054] reading a first instruction of the firmware software, and executing the first instruction to perform debugging to obtain first debug print information.
[0055] Specifically, the CPU in the SoC chip reads the first instruction of the firmware software and executes the first instruction to perform debugging; wherein the kernel software calls the second instruction set in advance to make the kernel software fall into the firmware software and pass the first parameter corresponding to the second instruction to the firmware software, the firmware software runs the first instruction set in advance according to the first parameter, the CPU in the SoC chip reads the first instruction of the firmware software and executes the first instruction to perform debugging, so that the kernel software calls the service of the firmware software, and the kernel software and the firmware software complete the test that needs to be completed together, for example: realize the functions of multi-core start and dynamic switching of CPU core, dynamic adjustment of power consumption and voltage of the whole SoC chip; the second instruction is a special instruction in the kernel software and is written by the user; the first parameter is the parameter corresponding to the second instruction; and the first instruction of the firmware software is a special instruction in the firmware software and is written by the user.
[0056] In an embodiment, the SoC chip is configured with user application software, and the debugging of the firmware software to obtain the first debugging print information further includes:
[0057] reading the fifth instruction of the firmware software and executing the fifth instruction to perform debugging to obtain the first debugging print information.
[0058] Specifically, the CPU in the SoC chip reads the fifth instruction of the firmware software and executes the fifth instruction to perform debugging; wherein the user application software calls the sixth instruction set in advance to make the user application software fall into the kernel software and pass the third parameter corresponding to the sixth instruction to the kernel software, the kernel software calls the seventh instruction set in advance according to the third parameter to make the kernel software fall into the firmware software and pass the fourth parameter corresponding to the seventh instruction to the firmware software, the firmware software runs the fifth instruction set in advance according to the fourth parameter, the CPU in the SoC chip reads the fifth instruction of the firmware software and executes the fifth instruction to perform debugging, so that the user application software calls the service of the firmware software, and the kernel software, the user application software and the firmware software complete the test that needs to be completed together; the sixth instruction is a special instruction in the user application software and is written by the user; the third parameter is the parameter corresponding to the sixth instruction; the seventh instruction of the kernel software is a special instruction in the kernel software and is written by the user; the fourth parameter is the parameter corresponding to the seventh instruction; and the fifth instruction of the firmware software is a special instruction in the firmware software and is written by the user.
[0059] In an embodiment, the SoC chip is configured with user application software, the kernel software is debugged to obtain second debug print information, which includes:
[0060] A third instruction of the kernel software is read and executed to perform debugging to obtain second debug print information.
[0061] Specifically, a CPU in the SoC chip reads a third instruction of the kernel software and executes the third instruction to perform debugging; wherein the user application software calls a fourth instruction set in advance to make the user application software fall into the kernel software, and passes a second parameter corresponding to the fourth instruction to the kernel software, the kernel software runs a third instruction set in advance according to the second parameter, a CPU in the SoC chip reads the third instruction of the kernel software and executes the third instruction to perform debugging, so that the user application software calls the service of the kernel software, so that the kernel software and the user application software complete the test which needs to be completed together; the fourth instruction is a special instruction in the user application software, which is written by the user, the second parameter is a parameter corresponding to the fourth instruction, and the third instruction of the kernel software is a special instruction in the kernel software, which is written by the user.
[0062] In an embodiment, before the first serial port is configured as a dedicated debug serial port of the firmware software and the second serial port is configured as a dedicated debug serial port of the kernel software, the method further includes:
[0063] The first serial port and the second serial port are initialized.
[0064] Specifically, before the first serial port is configured as a dedicated debug serial port of the firmware software and the second serial port is configured as a dedicated debug serial port of the kernel software, the first serial port and the second serial port can be used for other purposes, so the first serial port and the second serial port need to be initialized first.
[0065] In an embodiment, after the firmware software is debugged to obtain first debug print information and the first debug print information is output through the first serial port, the method further includes:
[0066] If the firmware software passes the test, the print level of the firmware software is adjusted to a preset lowest level, and the firmware software is released from occupying the first serial port.
[0067] Specifically, when the firmware software test passes, which means that the firmware software function is stable, the SoC chip adjusts the print level of the firmware software to a preset lowest level to remove all debug prints of the firmware software, and releases the occupation of the first serial port by the firmware software. Since the probability of change of the firmware software is very small after it is stable, it is unnecessary to occupy the first serial port. In the case of tight serial port resources, releasing the occupation of the first serial port can free the first serial port for other purposes, while the debug serial port (i.e., the second serial port) shared by the kernel software and other software except the firmware software is always reserved, because the kernel software may need to be continuously debugged later.
[0068] In an embodiment, the outputting of the first debug print information through the first serial port comprises:
[0069] transmitting the first debug print information to a print terminal through the first serial port, so that the print terminal prints and displays the first debug print information;
[0070] The outputting of the second debug print information through the second serial port comprises:
[0071] transmitting the second debug print information to a print terminal through the second serial port, so that the print terminal prints and displays the second debug print information.
[0072] Specifically, the SoC chip transmits the first debug print information to a print terminal through the first serial port, so that the print terminal prints and displays the first debug print information, and simultaneously, the SoC chip transmits the second debug print information to the print terminal through the second serial port, so that the print terminal prints and displays the second debug print information.
[0073] In a specific embodiment, as shown in Figure 6 The method comprises the following steps S301-S307.
[0074] S301, initializing a debug serial port on the SoC chip and taking the debug serial port as a debug serial port dedicated to the firmware software for use by the firmware software;
[0075] S302, initializing another debug serial port on the SoC chip and taking the debug serial port as a debug serial port shared by the kernel software and user application software for use by the kernel software and user application software;
[0076] S303, the firmware software uses the debug serial port dedicated to the firmware software, and the kernel software uses the debug serial port shared by the kernel software and user application software;
[0077] S304, the kernel software calls the service of the firmware software, realizes multi-core starting and dynamic switching of CPU core, dynamic adjustment of power consumption and voltage of the whole SoC and the like;
[0078] S305, continuously repeating step S304 to perform software development iteration and function test;
[0079] S306, confirming that the firmware software function is stable, and removing all debug prints of the firmware software;
[0080] S307, removing the use of the debug serial port special for the firmware software in the firmware software.
[0081] Embodiment 2
[0082] Referring to Figure 2 The embodiment of the present application provides a structure diagram of a joint debugging device 400. Corresponding to the joint debugging method provided in the above embodiment 1. The joint debugging device 400 includes units for executing the joint debugging method provided in the above embodiment 1. The joint debugging device 400 can be configured in a SoC chip, the SoC chip includes a first serial port and a second serial port, and the SoC chip is configured with firmware software and kernel software. The joint debugging device 400 includes a first configuration unit 401, a first debugging unit 402 and a second debugging unit 403.
[0083] The first configuration unit 401 is configured to configure the first serial port as a special debug serial port of the firmware software, and configure the second serial port as a special debug serial port of the kernel software.
[0084] The first debugging unit 402 is configured to debug the firmware software to obtain first debug print information, and output the first debug print information through the first serial port.
[0085] The second debugging unit 403 is configured to debug the kernel software to obtain second debug print information, and output the second debug print information through the second serial port.
[0086] In an embodiment, before the first serial port is configured as the special debug serial port of the firmware software, and the second serial port is configured as the special debug serial port of the kernel software, the method further includes:
[0087] Initializing the first serial port and the second serial port.
[0088] In an embodiment, the debugging of the firmware software to obtain the first debug print information includes:
[0089] read a first instruction of the firmware software, and execute the first instruction to perform debugging to obtain first debugging print information; wherein the kernel software invokes a second instruction set internally in advance to make the kernel software fall into the firmware software, and passes a first parameter corresponding to the second instruction to the firmware software, and the firmware software runs a first instruction set internally in advance according to the first parameter.
[0090] In an embodiment, the SoC chip is configured with user application software, and the debugging of the firmware software to obtain the first debugging print information further comprises:
[0091] read a fifth instruction of the firmware software, and execute the fifth instruction to perform debugging to obtain first debugging print information; wherein the user application software invokes a sixth instruction set internally in advance to make the user application software fall into the kernel software, and passes a third parameter corresponding to the sixth instruction to the kernel software, and the kernel software invokes a seventh instruction set internally in advance according to the third parameter to make the kernel software fall into the firmware software, and passes a fourth parameter corresponding to the seventh instruction to the firmware software, and the firmware software runs a fifth instruction set internally in advance according to the fourth parameter.
[0092] In an embodiment, the SoC chip is configured with user application software, and the debugging of the kernel software to obtain the second debugging print information comprises:
[0093] read a third instruction of the kernel software, and execute the third instruction to perform debugging to obtain second debugging print information; wherein the user application software invokes a fourth instruction set internally in advance to make the user application software fall into the kernel software, and passes a second parameter corresponding to the fourth instruction to the kernel software, and the kernel software runs a third instruction set internally in advance according to the second parameter.
[0094] In an embodiment, after the debugging of the firmware software to obtain the first debugging print information and outputting the first debugging print information through the first serial port, the method further comprises:
[0095] if the firmware software passes the test, adjusting a print level of the firmware software to a preset lowest level, and releasing the occupation of the first serial port by the firmware software.
[0096] In an embodiment, the outputting of the first debugging print information through the first serial port comprises:
[0097] The first debugging print information is transmitted to a print terminal through the first serial port, so that the print terminal prints and displays the first debugging print information.
[0098] The second debugging print information is output through the second serial port, including:
[0099] The second debugging print information is transmitted to a print terminal through the second serial port, so that the print terminal prints and displays the second debugging print information.
[0100] Embodiment 3
[0101] As Figure 3 The embodiment of the application also provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112 and the memory 113 complete mutual communication through the communication bus 114.
[0102] The memory 113 is used for storing a computer program.
[0103] The processor 111 is used for executing the program stored in the memory 113, and realizes the joint debugging method provided in any one of the above embodiments.
[0104] The embodiment of the application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by the processor 111 to realize the steps of the joint debugging method provided in any one of the above embodiments.
[0105] It should be noted that, in this article, relationship terms such as "first" and "second" 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 the entities or operations. Moreover, the term "include", "contain" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0106] The foregoing is considered as illustrative only of the principles of the application. Numerous modifications and changes will readily occur to those skilled in the art, and it is intended to embrace all such modifications and changes that fall within the scope of the application. Accordingly, the application is not to be restricted in scope to the specific embodiments disclosed herein but is to be accorded the full scope that the principles and novel features request appropriately granted.
Claims
1. A joint commissioning method, characterized by, Applied to a SoC chip, the SoC chip comprises a first serial port and a second serial port, the SoC chip is configured with firmware software and kernel software, the method comprises: The first serial port is configured as a dedicated debugging serial port of the firmware software, and the second serial port is configured as a dedicated debugging serial port of the kernel software; The firmware software is debugged to obtain first debugging print information, and the first debugging print information is output through the first serial port; The kernel software is debugged to obtain second debugging print information, and the second debugging print information is output through the second serial port; The firmware software is debugged to obtain first debugging print information, and the first debugging print information is output through the first serial port; The first instruction of the firmware software is read, and the first instruction is executed for debugging to obtain first debugging print information; wherein the kernel software calls the second instruction set internally in advance to make the kernel software fall into the firmware software, and the first parameter corresponding to the second instruction is transmitted into the firmware software, and the firmware software runs the first instruction set internally in advance according to the first parameter; The SoC chip is configured with user application software, and the kernel software is debugged to obtain second debugging print information, comprising: The third instruction of the kernel software is read, and the third instruction is executed for debugging to obtain second debugging print information; wherein the user application software calls the fourth instruction set internally in advance to make the user application software fall into the kernel software, and the second parameter corresponding to the fourth instruction is transmitted into the kernel software, and the kernel software runs the third instruction set internally in advance according to the second parameter.
2. The joint commissioning method of claim 1, wherein, Before the first serial port is configured as the dedicated debugging serial port of the firmware software, and the second serial port is configured as the dedicated debugging serial port of the kernel software, the method further comprises: The first serial port and the second serial port are initialized.
3. The joint debugging method of claim 1, wherein, The SoC chip is configured with user application software, and the firmware software is debugged to obtain first debugging print information, further comprising: The fifth instruction of the firmware software is read, and the fifth instruction is executed for debugging to obtain first debugging print information; wherein the user application software calls the sixth instruction set internally in advance to make the user application software fall into the kernel software, and the third parameter corresponding to the sixth instruction is transmitted into the kernel software, and the kernel software calls the seventh instruction set internally in advance according to the third parameter to make the kernel software fall into the firmware software, and the fourth parameter corresponding to the seventh instruction is transmitted into the firmware software, and the firmware software runs the fifth instruction set internally in advance according to the fourth parameter.
4. The joint debugging method of claim 1, wherein, After the firmware software is debugged to obtain first debugging print information, and the first debugging print information is output through the first serial port, the method further comprises: If the firmware software passes the test, the print level of the firmware software is adjusted to a preset lowest level, and the firmware software is released from occupying the first serial port.
5. The joint debugging method according to claim 1, characterized in that: the outputting the first debugging print information through the first serial port comprises: transmitting the first debugging print information to a print terminal through the first serial port, so that the print terminal prints and displays the first debugging print information; the outputting the second debugging print information through the second serial port comprises: transmitting the second debugging print information to a print terminal through the second serial port, so that the print terminal prints and displays the second debugging print information.
6. A joint debugging apparatus characterized by comprising: A computer program product comprising computer executable instructions executable by a processor for causing the processor to carry out the steps of a method according to any one of claims 1 to 5 when the computer program is run by the processor.
7. An electronic device, comprising: A computer program product comprising computer executable instructions executable by a processor for causing the processor to carry out the steps of a method according to any one of claims 1 to 5 when the computer program is run by the processor. A computer program product comprising computer executable instructions executable by a processor for causing the processor to carry out the steps of a method according to any one of claims 1 to 5 when the computer program is run by the processor. 8. A computer-readable storage medium having stored thereon a computer program, characterized in that,
Citation Information
Patent Citations
Chip debugging method and system-on-chip
CN104461815A
Firmware debugging method and device, terminal and storage medium
CN114035855A