# US 2024/0176864 A1 · Host-device interface for debug authentication

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0176864 A1
- Document ID: US20240176864A1
- Status: Published application
- Kind: A1
- Application number: 18/521,480
- Filed: 2023-11-28
- Published: 2024-05-30
- Earliest claimed: 2022-11-30
- Assignees: STMicroelectronics International N.V.
- Applicants: STMicroelectronics International N.V.
- Inventors: Xavier CHBANI; Nadia VAN-DEN-BOSSCHE
- Web page: https://patentgrep.com/patent/US20240176864A1

## CPC

- G06F 21/44: Program or device authentication
- G06F 21/445: {by mutual authentication, e.g. between devices or programs}
- G06F 11/3656: {using a specific debug interface}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An electronic device includes a debug port providing a communications interface for debugging purposes, a plurality of processing unit access ports, an authentication interface circuit configured to authenticate the external device, and a further access port coupled between the debug port and the authentication interface circuit. The further access port is configured to be in an open state in which communications are relayed between the debug port and the authentication interface circuit. The authentication interface circuit has registers including a status register capable of being read by the external device via the debug port and the further access port, the status register being configured to store an indication of the open or closed state of each of the processing unit access ports.

## Claims

### Claim 1

An electronic device, comprising:
a debug port providing a communications interface for debugging purposes;
a first processing unit;
a plurality of processing unit access ports coupled to the debug port, a first of the plurality of processing unit access ports being coupled between the debug port and the first processing unit, each of the plurality of processing unit access ports being configured to be in one of an open state in which it relays communications to and from the debug port and a closed state in which it blocks communications to and from the debug port;
an authentication interface circuit configured to authenticate an external device; and
a further access port coupled between the debug port and the authentication interface circuit, the further access port being configured to be in an open state in which communications are relayed between the debug port and the authentication interface circuit, the authentication interface circuit comprising registers including a status register configured to be readable by the external device via the debug port and the further access port, the status register being further configured to store an indication of the open or closed state of each of the plurality of processing unit access ports.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the registers further include a host register configured to be readable by the first processing unit and to be writeable to by the external device via the debug port and the further access port.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the registers further include a device register configured to be readable by the external device via the debug port and the further access port and to be writeable to by the first processing unit.

### Claim 4 (depends on 3)

The electronic device of claim 3, wherein the registers further include:
a host register configured to be readable by the first processing unit and to be writeable to by the external device via the debug port and the further access port; and
an acknowledge register configured to indicate when at least part of an electronic message is available to be read in the host register and when at least part of an electronic message is available to be read in the device register.

### Claim 5 (depends on 4)

The electronic device of claim 4, wherein the acknowledge register is configured to be read-only for the first processing unit and for the external device.

### Claim 6 (depends on 4)

The electronic device of claim 4, wherein the authentication interface circuit is configured to:
detect when at least part of an electronic message has been written to the host register, and to set, in response, a host acknowledge bit in the acknowledge register; and
detect when the first processing unit reads the host register, and in response, to reset the host acknowledge bit in the acknowledge register.

### Claim 7 (depends on 4)

The electronic device of claim 4, wherein the authentication interface circuit is configured to:
detect when at least part of an electronic message has been written to the device register, and to set, in response, a device acknowledge bit in the acknowledge register; and
detect when the external device reads the device register, and in response, to reset the device acknowledge bit in the acknowledge register.

### Claim 8 (depends on 4)

The electronic device of claim 4, wherein the first processing unit is configured to:
read from the host register an authentication request from the external device;
authenticate the external device; and
set at least one of the plurality of processing unit access ports to an open state, thereby causing the indication of a state of the plurality of processing unit access ports to be updated in the status register.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the registers further include:
a host register configured to be readable by the first processing unit and to be writeable to by the external device via the debug port and the further access port; and
a device register configured to be readable by the external device via the debug port and the further access port and to be writeable to by the first processing unit;
wherein the first processing unit is configured to authenticate the external device by:
storing an authentication challenge or password request to the device register;
reading an authentication certificate or password from the host register; and
verifying the authentication certificate or password.

### Claim 10 (depends on 9)

The electronic device of claim 9, further comprising a monotonic counter, wherein the first processing unit is further configured to read from the authentication certificate an indication of a count value from which debug functionality is authorized, and to execute a boot sequence comprising an incrementation of the monotonic counter, the debug functionality being authorized once the monotonic counter has reached said count value.

### Claim 11 (depends on 1)

The electronic device of claim 1, wherein the plurality of processing unit access ports are each coupled to an associated processing unit.

### Claim 12 (depends on 1)

The electronic device of claim 1, further comprising:
a peripheral interface; and
a peripheral interface access port coupled between the debug port and the peripheral interface, the peripheral interface access port being configured to be in one of an open state in which it relays communications to and from the debug port and a closed state in which it blocks communications to and from the debug port, wherein the status register is configured to store an indication of the open or closed state of the peripheral interface access port.

### Claim 13

A method for managing communications in an electronic device, the method comprising:
providing a communications interface for debugging purposes via a debug port;
coupling a first processing unit to the debug port via a first of a plurality of processing unit access ports;
selectively setting each of the plurality of processing unit access ports to one of:
an open state, wherein communications to and from the debug port are relayed; and
a closed state, wherein communications to and from the debug port are blocked;
authenticating an external device using an authentication interface circuit;
coupling the debug port to the authentication interface circuit via a further access port, wherein in an open state, communications are relayed between the debug port and the authentication interface circuit;
reading, by the external device, a status register in the authentication interface circuit via the debug port and the further access port;
storing, in the status register, an indication of the open or closed state of each of the plurality of processing unit access ports;
reading, by the external device via the debug port and the further access port, states of each of the plurality of processing unit access ports stored by the status register; and
initiating, by the external device, the debug of one or more of the plurality of processing unit access ports that is in the open state.

### Claim 14 (depends on 13)

The method of claim 13, further comprising: reading, by the external device via the debug port and the further access port, a device register in the authentication interface circuit; and writing, by the first processing unit, to the device register.

### Claim 15 (depends on 14)

The method of claim 14, further comprising: reading, by the first processing unit, a host register in the authentication interface circuit; writing, by the external device via the debug port and the further access port, to the host register; indicating, via an acknowledge register, availability of an electronic message in the host register and the device register.

### Claim 16 (depends on 15)

The method of claim 15, wherein the acknowledge register is accessed in a read-only mode by the first processing unit and the external device.

### Claim 17 (depends on 15)

The method of claim 15, further comprising: detecting, by the authentication interface circuit, a written electronic message in the host register; setting a host acknowledge bit in the acknowledge register; and resetting the host acknowledge bit upon the host register being read by the first processing unit or the external device.

### Claim 18 (depends on 15)

The method of claim 15, further comprising:
reading, by the first processing unit, an authentication request from the host register;
authenticating the external device;
setting at least one of the plurality of processing unit access ports to an open state, thereby updating the indication of a state of the plurality of processing unit access ports in the status register;
storing, by the first processing unit, an authentication challenge or password request in the device register;
reading an authentication certificate or password from the host register;
verifying the authentication certificate or password;
reading, by the first processing unit, a count value from an authentication certificate from which debug functionality is authorized; and
executing a boot sequence that includes incrementing a monotonic counter, where the debug functionality is authorized once the monotonic counter reaches the count value.

### Claim 19

An electronic device, comprising:
a debug port providing a communications interface for debugging purposes;
a first processing unit;
a plurality of processing unit access ports coupled to the debug port, a first of the plurality of processing unit access ports being coupled between the debug port and the first processing unit, each of the plurality of processing unit access ports being configured to be in one of an open state in which it relays communications to and from the debug port and a closed state in which it blocks communications to and from the debug port;
an authentication interface circuit configured to authenticate an external device; and
a further access port coupled between the debug port and the authentication interface circuit, the further access port being configured to be in an open state, in which communications are relayed between the debug port and the authentication interface circuit, prior to release of a reset state of the electronic device during power-up and during boot when an authentication request is received from the external device.

### Claim 20 (depends on 19)

The electronic device of claim 19, wherein the authentication interface circuit includes a host register configured to be readable by the first processing unit and to be writeable to by the external device via the debug port and the further access port.

### Claim 21 (depends on 19)

The electronic device of claim 19, wherein the authentication interface circuit includes a device register configured to be readable by the external device via the debug port and the further access port and to be writeable to by the first processing unit.

### Claim 22 (depends on 21)

The electronic device of claim 21, wherein the authentication interface circuit further includes:
a host register configured to be readable by the first processing unit and to be writeable to by the external device via the debug port and the further access port; and
an acknowledge register configured to indicate when at least part of an electronic message is available to be read in the host register and when at least part of an electronic message is available to be read in the device register.

### Claim 23 (depends on 22)

The electronic device of claim 22, wherein the acknowledge register is configured to be read-only for the first processing unit and for the external device.

### Claim 24 (depends on 22)

The electronic device of claim 22, wherein the authentication interface circuit is configured to:
detect when at least part of an electronic message has been written to the host register, and to set, in response, a host acknowledge bit in the acknowledge register; and
detect when the first processing unit reads the host register, and in response, to reset the host acknowledge bit in the acknowledge register.

### Claim 25 (depends on 22)

The electronic device of claim 22, wherein the authentication interface circuit is configured to:
detect when at least part of an electronic message has been written to the device register, and to set, in response, a device acknowledge bit in the acknowledge register; and
detect when the external device reads the device register, and in response, to reset the device acknowledge bit in the acknowledge register.

### Claim 26 (depends on 22)

The electronic device of claim 22, wherein the first processing unit is configured to:
read from the host register an authentication request from the external device;
authenticate the external device; and
set at least one of the plurality of processing unit access ports to an open state, thereby causing the indication of a state of the plurality of processing unit access ports to be updated in a status register of the authentication interface circuit.

### Claim 27 (depends on 26)

The electronic device of claim 26, wherein the first processing unit is configured to authenticate the external device by:
storing an authentication challenge or password request to the device register;
reading an authentication certificate or password from the host register; and
verifying the authentication certificate or password.

### Claim 28 (depends on 27)

The electronic device of claim 27, further comprising a monotonic counter, wherein the first processing unit is further configured to read from the authentication certificate an indication of a count value from which debug functionality is authorized, and to execute a boot sequence comprising an incrementation of the monotonic counter, the debug functionality being authorized once the monotonic counter has reached said count value.

### Claim 29 (depends on 19)

The electronic device of claim 19, wherein the plurality of processing unit access ports are each coupled to an associated processing unit.

### Claim 30 (depends on 19)

The electronic device of claim 19, further comprising:
a peripheral interface; and
a peripheral interface access port coupled between the debug port and the peripheral interface, the peripheral interface access port being configured to be in one of an open state in which it relays communications to and from the debug port and a closed state in which it blocks communications to and from the debug port, wherein a status register is configured to store an indication of the open or closed state of the peripheral interface access port.
