Method for protecting JTAG (Joint Test Action Group) port of automobile central gateway

Protect the JTAG port of the car's central gateway through a three-level security mechanism, using cryptographic algorithms and authentication to solve the security risks and stability issues of unprotected JTAG ports, improve the security and reliability of the system, and avoid physical protection measures defects.

CN118611944AActive Publication Date: 2024-09-06BEIJING NEW ENERGY VEHICLE TECH INNOVATION CENT CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410769246.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-06
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

The JTAG port of the traditional automotive central gateway has no protection measures, which poses security risks and may be affected by malicious attacks, data leaks, intellectual property leaks, and vehicle stability. Moreover, physical protection measures will reduce system maintainability and reliability.

Method used

A three-level security mechanism is used to protect the JTAG port. Through cryptographic algorithm signature, RSA private key and public key management, JTAG response/challenge mechanism and identity verification, rights management and protection are implemented to ensure that only authenticated users can access and debug JTAG. port.

Benefits of technology

It effectively protects the JTAG port, improves the security and stability of automotive electronic systems, prevents illegal tampering and misoperation, enhances the security of intellectual property and technical secrets, and avoids the increase in development difficulty and cost caused by physical protection measures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611944A
    Figure CN118611944A
Patent Text Reader

Abstract

The invention relates to the technical field of central gateway ports, and discloses a method for protecting a JTAG port of an automobile central gateway, after the automobile central gateway is powered on, whether the JTAG port is in an open state or not is judged, if not, the JTAG port is not allowed to be accessed, if yes, any access application to the JTAG port is allowed, and if not, the JTAG port is not allowed to be accessed. The central gateway sets protection mechanisms with three security levels for the JTAG port, and the protection mechanisms are I-level protection, II-level protection and III-level protection respectively. According to the method for protecting the JTAG port of the central gateway with three security levels, on the premise that the JTAG port is not removed, namely, the JTAG port is reserved, a software measure mode is adopted to carry out authority management, password management and the like to protect the JTAG port, so that the JTAG port can be safely managed, the advantages of the JTAG port are achieved, and the security of the JTAG port is improved. For example, developers can realize design verification, prototype debugging, prototype function testing and the like of the central gateway prototype through the JTAG port in the development process, and meanwhile, the information security in the automobile central gateway system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of central gateway ports, and in particular to a method for protecting a JTAG port of a central gateway of an automobile. Background Art

[0002] The automotive central gateway is an important part of the automotive electronic architecture. It is mainly responsible for the information exchange and communication control of the entire vehicle. It is the information and communication hub of the vehicle and plays a key role in ensuring data security. However, with the development of the Internet of Vehicles, the traditional automotive central gateway, as the key information exchange and communication node of the vehicle, can achieve basic information security management, but it still has some obvious security shortcomings.

[0003] For example, the JTAG port is an important interface for hardware debugging and fault diagnosis. The JTAG port of the traditional automotive central gateway is not protected, which makes it open to all users, which may cause the following security risks:

[0004] (1) The unprotected JTAG port of the traditional central gateway may be exploited by malicious attackers, resulting in device tampering, malicious code implantation, tampering with vehicle operations or stealing user data, data leakage, etc., thus posing a serious threat to vehicle safety;

[0005] (2) Malicious visitors or competitors may interpret device design information through unprotected JTAG ports, spy on and copy hardware designs and firmware codes, thereby infringing on intellectual property rights and stealing technical secrets, causing the leakage of intellectual property rights and technical secrets, and causing economic losses;

[0006] (3) If an unprotected JTAG port is improperly or illegally accessed or misused, the normal operation of the central gateway may be affected or destroyed, affecting the overall stability and operating performance of the vehicle;

[0007] (4) The JTAG port is an important interface for hardware debugging and testing, which allows developers and maintenance personnel to access the system internals and key functions of the device. If the JTAG port is accessed or modified without authorization, it may disrupt normal programs and affect the stability and reliability of the vehicle;

[0008] (5) Directly taking physical measures to remove the JTAG port of the automotive central gateway to implement protection will increase the difficulty of hardware debugging and deep fault detection and recovery during the development process, reduce the maintainability and reliability of the system, and increase costs.

[0009] As automobile safety issues are increasingly valued, the present invention urgently needs to provide a method for protecting the JTAG port of an automobile central gateway, which can not only protect the JTAG port but also improve the stability and reliability of vehicle operation. Summary of the invention

[0010] In order to solve the problem that the JTAG port of the automobile central gateway is not protected and thus causes data leakage, virus implantation or malicious use, thereby affecting the normal operation of the central gateway, the present invention provides a method for protecting the JTAG port of the automobile central gateway.

[0011] The technical contents of the present invention are as follows:

[0012] The present invention provides a method for protecting a JTAG port of a central gateway of an automobile. After the central gateway of the automobile is powered on, it is determined whether the JTAG port is in an open state. If not, it indicates that there is no permission to access the JTAG port. If so, it indicates that any access application to the JTAG port is allowed. The central gateway sets a protection mechanism of three security levels for the JTAG port, namely, level I protection, level II protection and level III protection, which is implemented by the following steps:

[0013] When any access application to the JTAG port is allowed, verify whether the access to the JTAG port passes the level I protection mechanism, if so, it means that there is permission to access the JTAG port based on the level I protection mechanism, if not, it means that there is no permission to access the JTAG port under the level I protection mechanism;

[0014] When the access to the JTAG port passes the level I protection mechanism, further verifying whether the access to the JTAG port passes the level II protection mechanism;

[0015] When verifying whether the access to the JTAG port passes the level II protection mechanism, if the verification passes, it means that the JTAG port has the authority to be accessed under the level II protection mechanism, and if the verification fails, it means that the JTAG port has no authority to be accessed under the level II protection mechanism;

[0016] When there is no need to debug and test the central gateway through the JTAG port, the central gateway starts the level III protection mechanism and turns off the JTAG port debugging mode.

[0017] Furthermore, the level I protection mechanism set by the central gateway for the JTAG port is applied to the BootROM operation phase inside the gateway system.

[0018] Furthermore, the level I protection mechanism set by the central gateway for the JTAG port is implemented by the following steps:

[0019] Sign the software program image inside the central gateway using a cryptographic algorithm, set the JTAG port control word, and chip parameters;

[0020] Burn the signed software program, JTAG port control word, and chip parameters into the gateway system;

[0021] After the gateway system is powered on, the central gateway enters the level I protection mechanism state, and the gateway system verifies whether the access request to the JTAG port is allowed based on the level I protection mechanism;

[0022] If the verification passes, it means that the gateway system starts and runs normally and safely, and the JTAG port can obtain debugging permissions based on the control word to achieve normal debugging and downloading through the JTAG port; if the verification fails, it means that there is no permission to access the JTAG port under the Level I protection mechanism.

[0023] Furthermore, when the software program image inside the central gateway is signed using a cryptographic algorithm, and the JTAG port control word and chip parameters are set, the following steps are performed:

[0024] Generate a system program software package using a software method, the software package including software program, JTAG port control word, and chip parameters;

[0025] Select the cryptographic algorithm RSA algorithm and use the open source tool OpenSSL to generate a 2048-bit RSA private key for the cryptographic algorithm;

[0026] Generate a public key that pairs with the 2048-bit RSA private key from the previous step;

[0027] Use the private key to sign the system program package;

[0028] Write the public key into the chip Efuse;

[0029] Write chip identification parameters into chip Efuse.

[0030] Furthermore, when verifying whether the access request to the JTAG port is allowed based on the level I protection mechanism within the gateway system, the following steps are performed:

[0031] Calculate the public key in the software package and compare it with the public key read from the chip Efuse area;

[0032] The public key read from the chip's Efuse area is used to verify the signature using the same cryptographic algorithm as when the software program is signed;

[0033] Compare parameter A in the program software package with the chip identification parameter in the chip Efuse area;

[0034] When all the above verifications are passed, it means that the access to the JTAG port has passed the level I protection mechanism, the gateway system starts and runs normally and safely, and the JTAG port can obtain debugging permissions based on the control word to achieve normal debugging and downloading through the JTAG port;

[0035] If any of the above verification steps fails, it means that the BootROM inside the gateway system cannot operate normally, that is, there is no permission to access and debug through the JTAG port, and it cannot be burned at will. The gateway system JTAG port is still in level I protection status.

[0036] Further, when verifying whether the access to the JTAG port passes the level II protection mechanism, by:

[0037] Use the JTAG response / challenge mechanism;

[0038] Write the password machine related parameters into the gateway system, lock the address where the password is written, and enable the JTAG port level II protection mechanism;

[0039] After the gateway system is started, the central gateway enters the Level II protection mechanism state. The gateway system determines whether the access to the JTAG port is successful through identity authentication under the Level II protection mechanism. If the identity authentication is successful, it means that it has the authority to unlock the JTAG port and perform secure access and debugging. If the identity authentication is not successful, it means that it has no authority to access the JTAG port.

[0040] Further, the use of the JTAG response / protection mechanism includes:

[0041] Implement identity authentication protection and set JTAG password through the JTAG response / challenge mechanism;

[0042] The gateway system checks any access to the JTAG port. If the password entered is correct, that is, the identity verification is passed, it means that you have the authority to unlock the JTAG port and perform secure access and debugging; if the password entered is incorrect or there is no password, it means that you have no authority to access the JTAG port.

[0043] Furthermore, the JTAG response / challenge mechanism includes:

[0044] Write the password key into the Efuse area;

[0045] Write the password key to the address and lock it. After locking, the location cannot be read from outside.

[0046] Enable the chip JTAG response / challenge mechanism.

[0047] Furthermore, the level III protection mechanism includes:

[0048] Applicable to the stage where the gateway system program version has been fixed.

[0049] The beneficial effects of the present invention include at least: the present invention proposes a method for protecting the JTAG port of a central gateway with three security levels. Under the premise of not removing or retaining the JTAG port, software measures are taken to perform permission management, password management, etc. to protect the JTAG port, so that the JTAG port can be securely managed, and it has the benefits of the JTAG port. For example, developers can use the JTAG port to implement design verification, prototype debugging, prototype function testing, etc. of the central gateway prototype during the development process, while ensuring the information security within the automobile central gateway system, achieving the purpose of protecting the JTAG port, and only users who have passed the identity authentication are allowed to access and debug normally, thereby improving the security of the automobile electronic system, effectively protecting intellectual property rights and technical secrets, preventing illegal tampering and misoperation, and ensuring vehicle stability and reliability. Compared with the unprotected JTAG port of the traditional automobile central gateway, the security strength is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A schematic flow chart of a method for protecting a JTAG port of a central gateway of an automobile provided by the present invention.

[0051] Figure 2 A flow chart of a level I protection mechanism of a method for protecting a JTAG port of a central gateway of an automobile provided by the present invention.

[0052] Figure 3 A flow chart of a level II protection mechanism of a method for protecting a JTAG port of a central gateway of an automobile provided by the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0054] Combination Figure 1As shown, the present invention provides a method for protecting the JTAG port of a central gateway of an automobile. After the central gateway of the automobile is powered on, it is determined whether the JTAG port is in an open state. If not, it indicates that there is no permission to access the JTAG port. If so, it indicates that any access application to the JTAG port is allowed. The central gateway sets a three-level security protection mechanism for the JTAG port, namely, level I protection, level II protection and level III protection, which is achieved by the following steps:

[0055] When any access application to the JTAG port is allowed, verify whether the access to the JTAG port passes the level I protection mechanism, if so, it means that there is permission to access the JTAG port based on the level I protection mechanism, if not, it means that there is no permission to access the JTAG port under the level I protection mechanism;

[0056] When the access to the JTAG port passes the level I protection mechanism, further verifying whether the access to the JTAG port passes the level II protection mechanism;

[0057] When verifying whether the access to the JTAG port passes the level II protection mechanism, if the verification passes, it means that the JTAG port has the authority to be accessed under the level II protection mechanism, and if the verification fails, it means that the JTAG port has no authority to be accessed under the level II protection mechanism;

[0058] When there is no need to debug and test the central gateway through the JTAG port, the central gateway starts the level III protection mechanism and turns off the JTAG port debugging mode.

[0059] Furthermore, the level I protection mechanism set by the central gateway for the JTAG port is implemented by the following steps:

[0060] Sign the software program image inside the central gateway using a cryptographic algorithm, set the JTAG port control word, and chip parameters;

[0061] Burn the signed software program, JTAG port control word, and chip parameters into the gateway system;

[0062] After the gateway system is powered on, the central gateway enters the level I protection mechanism state, and the gateway system verifies whether the access request to the JTAG port is allowed based on the level I protection mechanism;

[0063] If the verification passes, it means that the gateway system starts and runs normally and safely, and the JTAG port can obtain debugging permissions based on the control word to achieve normal debugging and downloading through the JTAG port; if the verification fails, it means that there is no permission to access the JTAG port under the Level I protection mechanism.

[0064] Furthermore, when verifying whether the access request to the JTAG port is allowed based on the level I protection mechanism within the gateway system, the following steps are performed:

[0065] Calculate the public key in the software package and compare it with the public key read from the chip Efuse area;

[0066] The public key read from the chip's Efuse area is used to verify the signature using the same cryptographic algorithm as when the software program is signed;

[0067] Compare parameter A in the program software package with the chip identification parameter in the chip Efuse area;

[0068] Parameter A is a parameter for verifying the legitimacy of the boot image, which can be an existing parameter or set according to requirements;

[0069] When all the above verifications are passed, it means that the access to the JTAG port has passed the level I protection mechanism, the gateway system starts and runs normally and safely, and the JTAG port can obtain debugging permissions based on the control word to achieve normal debugging and downloading through the JTAG port;

[0070] If any of the above verification steps fails, it means that the BootROM inside the gateway system cannot operate normally, that is, there is no permission to access and debug through the JTAG port, and it cannot be burned at will. The gateway system JTAG port is still in level I protection status.

[0071] The present invention takes the E3 control core series of automobile central gateway as an example, and implements the protection of the JTAG port according to the security level from low to high, as described below:

[0072] (1) Implementation of JTAG port protection security level I for E3 series automotive central gateway vehicles

[0073] The level I protection mechanism set by the central gateway for the JTAG port is applied to the BootROM operation stage inside the gateway system. The JTAG port is protected by signing, verifying the signature of the software program and verifying the chip parameters through software methods. First, the software program image is signed using a cryptographic algorithm, the JTAG port control word and chip parameters are set, and then the software package (including the signed software program, JTAG port control word, and chip parameters) is burned into the gateway system. The process of implementing the software method is as follows:

[0074] Generate a system program software package using a software method, the software package including software program, JTAG port control word, and chip parameters;

[0075] Select the cryptographic algorithm RSA algorithm and use the open source tool OpenSSL to generate a 2048-bit RSA private key for the cryptographic algorithm;

[0076] Generate a public key that pairs with the 2048-bit RSA private key from the previous step;

[0077] Use the private key to sign the system program package;

[0078] Write the public key generated in the second step into the E3 core chip Efuse;

[0079] Write chip identification parameters into E3 control core series chip Efuse;

[0080] Started mass production of E3 Control Heart series chips.

[0081] At this time, the gateway system has entered the JTAG port level I protection state, and the E3 control heart series chips can no longer be burned at will, nor can they be debugged or downloaded through the JTAG port. For the automotive central gateway that has entered the security level I JTAG port protection state, the signed system software program is burned into the gateway system. After the gateway system is powered on, the system makes a judgment based on the protection mechanism: the first step is to calculate the public key HASH in the software program and compare it with the public key HASH read from the Efuse area; the second step is to use the public key read from the chip Efuse area to verify the signature using the same cryptographic algorithm as when the software program was signed; the third step is to compare the parameter A in the program software package with the chip identification parameter in the Efuse area.

[0082] If all three steps of the above-mentioned internal judgment of the gateway system are verified, it means that the signature verification is successful, the image verification is legal and the integrity is verified. At this time, the gateway system can start and run normally and safely. At the same time, the gateway JTAG port can obtain debugging permissions based on the control word, and realize normal debugging and downloading through the JTAG port; after the gateway system is started, if the signature verification fails, the image verification is illegal, and any step of the internal judgment fails, the BootROM inside the system cannot run normally, that is, there is no permission to access and debug through the JTAG port, and it cannot be burned at will. The gateway system JTAG port is still in the I level protection state, such as Figure 2 shown.

[0083] Further, when verifying whether the access to the JTAG port passes the level II protection mechanism, by:

[0084] Use the JTAG response / challenge mechanism;

[0085] Write the password machine related parameters into the gateway system, lock the address where the password is written, and enable the JTAG port level II protection mechanism;

[0086] After the gateway system is started, the central gateway enters the Level II protection mechanism state. The gateway system determines whether the access to the JTAG port is successful through identity authentication under the Level II protection mechanism. If the identity authentication is successful, it means that it has the authority to unlock the JTAG port and perform secure access and debugging. If the identity authentication is not successful, it means that it has no authority to access the JTAG port.

[0087] Further, the use of the JTAG response / protection mechanism includes:

[0088] Implement identity authentication protection and set JTAG password through the JTAG response / challenge mechanism;

[0089] The gateway system checks any access to the JTAG port. If the password entered is correct, that is, the identity verification is passed, it means that you have the authority to unlock the JTAG port and perform secure access and debugging; if the password entered is incorrect or there is no password, it means that you have no authority to access the JTAG port.

[0090] Furthermore, the JTAG response / challenge mechanism includes:

[0091] Write the password key into the Efuse area;

[0092] Write the password key to the address and lock it. After locking, the location cannot be read from outside.

[0093] Enable the chip JTAG response / challenge mechanism.

[0094] (2) JTAG port authentication protection, implementation of security level II

[0095] The protection mechanism of security level II means that on the basis of security level I, the JTAG response / challenge mechanism is used to implement identity authentication protection, set the JTAG password, and control access rights to limit external access to JTAG. First, enable the JTAG response / challenge mechanism; then, write the password and related parameters into the gateway system, and at the same time, lock the address where the password is written to enable the JTAG port level II protection. The process of implementing the software method is as follows:

[0096] The first step is to write the password key into the Efuse area;

[0097] The second step is to write the password key into the address and lock it. After locking, the location cannot be read from outside.

[0098] The third step is to enable the JTAG response / challenge mechanism of the E3 Control Heart series chips.

[0099] At this point, the gateway system has entered the JTAG port level II protection state, and only when the JTAG port is accessed can it be debugged after passing identity authentication. For the automotive central gateway that has entered the security level II JTAG port protection state, after the gateway system is started, the system will check any access to the JTAG port. If the password entered is correct, that is, the identity is verified, then the system has the authority to unlock the JTAG port and perform secure access and debugging. After the gateway system is started, if there is no password or the password verification is incorrect at this time, there is no access right, and the access request is rejected, that is, the opening of the JTAG port fails. In addition, since the write password address has been locked during the protection process, if the password is illegally decrypted by force from the outside, the outside world will not be able to find the password address through the JTAG port and related shadow registers, which further enhances the security strength. The JTAG port identity authentication protection process is as follows: Figure 3 shown.

[0100] Furthermore, the level III protection mechanism includes:

[0101] Applicable to the stage where the gateway system program version has been fixed.

[0102] (3) Forced to disable JTAG debugging, i.e. security level III

[0103] Security level III protection means that the gateway system program version is fixed and basically does not need to be debugged or tested. In this case, this level of protection can be selected. Turning off the JTAG debugging mode parameters through the software program means turning off the JTAG debugging mode, which means turning off JTAG permanently and irreversibly. It has the highest security level, but at the same time, it cannot be unlocked for debugging.

[0104] Through the above-provided solution, the present invention adopts a protection method with three security levels to protect the JTAG port of the automobile central gateway, thereby solving the problems of the JTAG port being maliciously attacked, being interpreted and losing technical secrets, being destroyed, etc.; at the same time, in the process of protecting the JTAG port, access authorization is added, that is, the JTAG port can be accessed or debugged and modified only under authorization, which solves the problem that the JTAG port may be accessed or modified without authorization and the normal program may be destroyed, thereby affecting the stability and reliability of the vehicle; when the JTAG port is protected by using software measures, the JTAG port is retained and not physically removed, which solves the problem that the traditional central gateway JTAG port directly takes physical measures to remove it, which increases the difficulty of hardware debugging and deep fault detection and recovery during the development process and reduces the maintainability and reliability of the system.

[0105] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for protecting a JTAG port of a central gateway of an automobile, characterized in that: After the automobile central gateway is powered on, it is determined whether the JTAG port is in an open state. If not, it indicates that there is no permission to access the JTAG port. If so, it indicates that any access application to the JTAG port is allowed. The central gateway sets three security levels of protection mechanisms for the JTAG port, namely, level I protection, level II protection and level III protection, which are implemented by the following steps: When any access application to the JTAG port is allowed, verify whether the access to the JTAG port passes the level I protection mechanism, if so, it means that there is permission to access the JTAG port based on the level I protection mechanism, if not, it means that there is no permission to access the JTAG port under the level I protection mechanism; When the access to the JTAG port passes the level I protection mechanism, further verifying whether the access to the JTAG port passes the level II protection mechanism; When verifying whether the access to the JTAG port passes the level II protection mechanism, if the verification passes, it means that the JTAG port has the authority to be accessed under the level II protection mechanism, and if the verification fails, it means that the JTAG port has no authority to be accessed under the level II protection mechanism; When there is no need to debug and test the central gateway through the JTAG port, the central gateway starts the level III protection mechanism and turns off the JTAG port debugging mode.

2. The method for protecting the JTAG port of the automobile central gateway according to claim 1, characterized in that: The level I protection mechanism set by the central gateway for the JTAG port is applied to the BootROM operation stage inside the gateway system.

3. The method for protecting the JTAG port of the automobile central gateway according to claim 2, characterized in that: The central gateway implements the level I protection mechanism for the JTAG port by the following steps: Sign the software program image inside the central gateway using a cryptographic algorithm, set the JTAG port control word, and chip parameters; Burn the signed software program, JTAG port control word, and chip parameters into the gateway system; After the gateway system is powered on, the central gateway enters the level I protection mechanism state, and the gateway system verifies whether the access request to the JTAG port is allowed based on the level I protection mechanism; If the verification is successful, it means that the gateway system is started and operated normally and safely, and the JTAG port can obtain debugging authority according to the control word, so as to realize normal debugging and downloading through the JTAG port; If the verification fails, it means that there is no permission to access the JTAG port under the level I protection mechanism.

4. The method for protecting the JTAG port of the automobile central gateway according to claim 3, characterized in that: When the software program image inside the central gateway is signed using a cryptographic algorithm, and the JTAG port control word and chip parameters are set, the following steps are performed: Generate a system program software package using a software method, the software package including software program, JTAG port control word, and chip parameters; Select the cryptographic algorithm RSA algorithm and use the open source tool OpenSSL to generate a 2048-bit RSA private key for the cryptographic algorithm; Generate a public key that pairs with the 2048-bit RSA private key from the previous step; Use the private key to sign the system program package; Write the public key into the chip Efuse; Write chip identification parameters into chip Efuse.

5. The method for protecting the JTAG port of the automobile central gateway according to claim 4, characterized in that: When the gateway system verifies whether the access request to the JTAG port is allowed based on the level I protection mechanism, it does so by: Calculate the public key in the software package and compare it with the public key read from the chip Efuse area; The public key read from the Efuse area of ​​the chip is used to verify the signature using the same cryptographic algorithm as when the software program is signed; Compare parameter A in the program software package with the chip identification parameter in the chip Efuse area; When all the above verifications are passed, it means that the access to the JTAG port has passed the level I protection mechanism, the gateway system starts and runs normally and safely, and the JTAG port can obtain debugging permissions based on the control word to achieve normal debugging and downloading through the JTAG port; If any of the above verification steps fails, it means that the BootROM inside the gateway system cannot operate normally, that is, there is no permission to access and debug through the JTAG port, and it cannot be burned at will. The gateway system JTAG port is still in level I protection status.

6. The method for protecting the JTAG port of the automobile central gateway according to claim 1, characterized in that: When verifying whether access to the JTAG port passes the Level II protection mechanism, by: Use the JTAG response / challenge mechanism; Write the password machine related parameters into the gateway system, lock the address where the password is written, and enable the JTAG port level II protection mechanism; After the gateway system is started, the central gateway enters the Level II protection mechanism state. The gateway system determines whether the access to the JTAG port is successful through identity authentication under the Level II protection mechanism. If the identity authentication is successful, it means that it has the authority to unlock the JTAG port and perform secure access and debugging. If the identity authentication is not successful, it means that it has no authority to access the JTAG port.

7. The method for protecting the JTAG port of the automobile central gateway according to claim 6, characterized in that: When using the JTAG response / protection mechanism, it includes: Implement identity authentication protection and set JTAG password through the JTAG response / challenge mechanism; The gateway system checks any access to the JTAG port. If the password entered is correct, that is, the identity verification is passed, it means that you have the authority to unlock the JTAG port and perform secure access and debugging; if the password entered is incorrect or there is no password, it means that you have no authority to access the JTAG port.

8. The method for protecting the JTAG port of the automobile central gateway according to claim 6, characterized in that: The JTAG response / challenge mechanism includes: Write the password key into the Efuse area; Write the password key to the address and lock it. After locking, the location cannot be read from outside. Enable the chip JTAG response / challenge mechanism.

9. The method for protecting the JTAG port of the automobile central gateway according to claim 1, characterized in that: The level III protection mechanism includes: Applicable to the stage where the gateway system program version has been fixed.

Citation Information

Patent Citations

  • Safety JTAG module and method for protecting safety of information inside chip

    CN101620656A

  • JTAG debugging device and JTAG debugging method

    CN107783874A

  • Firmware security protection method, device, system and equipment

    CN111680336A

  • Debugging port security interface

    US20050193220A1