# US 2022/0027238 A1 · Method for the secured storing of a data element to be stored by a computer program in an external memory

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

- Number: US 2022/0027238 A1
- Document ID: US20220027238A1
- Status: Published application
- Kind: A1
- Application number: 17/317,448
- Filed: 2021-05-11
- Published: 2022-01-27
- Earliest claimed: 2021-05-11
- Assignees: Robert Bosch GmbH
- Applicants: Robert Bosch GmbH
- Inventors: Martin Assel; Axel Aue; Matthias Schreiber
- Web page: https://patentgrep.com/patent/US20220027238A1

## CPC

- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0673: {Single storage device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for the secured storing of a data element to be stored by a computer program in an external memory, which is connected to a microcontroller, the microcontroller including an interface module, which is configured to calculate error correction values for data elements including, when creating the computer program, during a determination of memory addresses of the computer program, determining a memory address in the external memory for the data element, a shared memory space requirement of data element and associated error correction value being taken into account; and during execution of the computer program, receiving the data element by the interface module; calculating an error correction value for the data element by the interface module; and writing, starting at the memory address, the data element and immediately thereafter the calculated error correction value within one addressing phase by the interface module.

## Claims

### Claim 1

A method for secured storing of a data element to be stored by a computer program in an external memory, which is connected to a microcontroller, the microcontroller including an interface module which is configured to calculate error correction values for data elements, the method comprising, when creating the computer program, during a determination of memory addresses of the computer program:
determining a memory address in the external memory for the data element, a shared memory place requirement of the data element and an associated error correction value being taken into account; and
during execution of the computer program:
receiving the data element by the interface module,
calculating an error correction value for the data element by the interface module; and
writing, starting at the memory address, the data element and immediately thereafter the calculated error correction value within one addressing phase by the interface module.

### Claim 2 (depends on 1)

The method as recited in claim 1, further comprising a read operation of the data element, including the following steps carried out by the interface module:
reading the data element and the error correction value starting at the memory address;
calculating an error correction comparison value for the read data element; and
comparing the error correction comparison value with the read error correction value.

### Claim 3 (depends on 2)

The method as recited in claim 2, further comprising the following steps carried out by the interface module:
transmitting the read data element when the error correction comparison value and the read error correction value are the same;
and
transmitting a data element corrected based on the read data element and of the read error correction value when the error correction comparison value and the read error correction value are not the same.

### Claim 4 (depends on 2)

The method as recited in claim 2, further comprising the following steps carried out by the interface module:
receiving a changed sub-data element of the read data element;
forming a changed data element from the changed sub-data element and from unchanged portions of the read data element;
calculating a changed error correction value based on the changed data element; and
writing, starting at the memory address, the changed data element and immediately thereafter the calculated changed error correction value within one addressing phase.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein the determination of the memory address in the external memory for the data element takes place by a programming tool which maps logical memory addresses contained in a computer program code of the computer program or in a compiled or assembled computer program code into memory addresses in the external memory.

### Claim 6 (depends on 5)

The method as recited in claim 5, wherein the programming tool is a linker or locator.

### Claim 7

A microcontroller, including an interface module, which is configured to:
receive a data element and a memory address for the data element;
calculate an associated error correction value for the received data element;
write the data element and the associated error correction value to the received memory address in an external memory within one addressing phase.

### Claim 8 (depends on 7)

The microcontroller as recited in claim 7, wherein the interface module is configured to perform a read operation of the data element, for the read operation, the interface module being configured to:
read the data element and the associated error correction value starting at the memory address;
calculate an error correction comparison value for the read data element; and
compare the error correction comparison value with the read error correction value.

### Claim 9

A processing unit, including a microcontroller having an interface module, the interface module being configured to:
receive a data element and a memory address for the data element;
calculate an associated error correction value for the received data element;
write the data element and the associated error correction value to the received memory address in an external memory within one addressing phase.

### Claim 10 (depends on 9)

The processing unit as recited in claim 9, further comprising:
an external memory connected to the microcontroller via the interface module.
