# US 2023/0069651 A1 · Processing device and method for secured boot

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

- Number: US 2023/0069651 A1
- Document ID: US20230069651A1
- Status: Published application
- Kind: A1
- Application number: 17/822,272
- Filed: 2022-08-25
- Published: 2023-03-02
- Earliest claimed: 2021-08-26
- Assignees: STMicroelectronics (Grand Quest) SAS
- Applicants: STMicroelectronics (Grand Quest) SAS
- Inventors: Franck Albesa
- Web page: https://patentgrep.com/patent/US20230069651A1

## CPC

- G06F 21/575: {Secure boot}
- G06F 9/30003: {Arrangements for executing specific machine instructions}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- H03K 21/38: Starting, stopping or resetting the counter (counters with a base other than a power of two H03K23/48, H03K23/66)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

A method includes protecting a boot sequence of a processing device by incrementing a counting value generated by a monotonic counter, then a first time period after the beginning of the boot sequence, comparing, by the protection circuit, the counting value with a first reference value, and, if the counting value is smaller than the first reference value, changing, by the protection circuit, the counting value to the first reference value.

## Claims

### Claim 1

A method comprising:
protecting a boot sequence of a processing device by incrementing a counting value generated by a monotonic counter;
a first time period after a beginning of the boot sequence, comparing, by a protection circuit, the counting value with a first reference value; and
in response to the counting value being smaller than the first reference value, changing, by the protection circuit, the counting value to the first reference value.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising storing the counting value in a register of the monotonic counter; and
the changing the counting value to the first reference value comprises overwriting the counting value with the first reference value in the register.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising comparing, by the protection circuit, a current value of a hardware counter rated by a reference clock with a threshold value to determine whether the first time period has been reached.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising deactivating the protection circuit in response to the first time period being reached.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
after a second time period, comparing, by the protection circuit, the counting value with a second reference value; and
in response to the counting value being smaller than the second reference value, changing, by the protection circuit, the counting value to the second reference value.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising generating the counting value by the monotonic counter during a first phase of the boot sequence.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
transmitting, by the monotonic counter, the counting value to an access control circuit for controlling access to a memory; and
reading, based on the counting value, first data stored in the memory.

### Claim 8 (depends on 7)

The method according to claim 7, wherein reading the first data is forbidden by the access control circuit based on the first reference value.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the first data comprise first boot codes.

### Claim 10 (depends on 7)

The method according to claim 7, further comprising reading, based on the counting value, second data stored in the memory.

### Claim 11

A processing device comprising:
a monotonic counter configured to protect a boot sequence of the processing device by incrementing a counting value; and
a protection circuit configured to:
a first time period after a beginning of the boot sequence, compare the counting value with a first reference value; and
if the counting value is smaller than the first reference value, change the counting value to the first reference value.

### Claim 12 (depends on 11)

The processing device according to claim 11, wherein the protection circuit is further configured to compare a current value of a hardware counter rated by a reference clock, and a first threshold value to determine whether the first time period has been reached.

### Claim 13 (depends on 11)

The processing device according to claim 11, wherein the protection circuit is configured to be deactivated when the first time period has been reached.

### Claim 14 (depends on 11)

The processing device according to claim 11, wherein the monotonic counter is configured to transmit the counting value to an access control circuit, wherein the access control circuit is configured to:
control access to a memory;
authorize reading, based on the counting value, first data stored in the memory; and
not authorize the reading of the first data based on the first reference value.

### Claim 15 (depends on 14)

The processing device according to claim 14, wherein the access control circuit is further configured to authorize reading second data stored in the memory based on the counting value.

### Claim 16

A processing device comprising:
a monotonic counter configured to protect a boot sequence of the processing device by incrementing a counting value;
a non-volatile memory comprising an access control circuit coupled to the monotonic counter;
a hardware timer coupled to a reference clock and configured to generate a current clock value;
a protection circuit coupled to the hardware timer, the monotonic counter, and the non-volatile memory, the protection circuit configured to:
compare the current clock value and a first threshold value to determine whether a first time period after a beginning of the boot sequence has been reached;
at the first time period, compare the counting value with a first reference value; and
if the counting value is smaller than the first reference value, change the counting value to the first reference value.

### Claim 17 (depends on 16)

The processing device according to claim 16, wherein the protection circuit is configured to be deactivated when the first time period has been reached.

### Claim 18 (depends on 16)

The processing device according to claim 16, wherein the monotonic counter is configured to transmit the counting value to the access control circuit, wherein the access control circuit is configured to:
control access to the non-volatile memory;
authorize reading, based on the counting value, first data stored in the non-volatile memory; and
not authorize the reading of the first data based on the first reference value.

### Claim 19 (depends on 18)

The processing device according to claim 18, wherein the access control circuit is further configured to authorize reading second data stored in the non-volatile memory based on the counting value.

### Claim 20 (depends on 16)

The processing device according to claim 16, wherein the protection circuit is further configured to:
after a second time period, compare the counting value with a second reference value; and
if the counting value is smaller than the second reference value, change the counting value to the second reference value.
