# US 9,355,276 B2 · Processing system

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

- Number: US 9,355,276 B2
- Document ID: US9355276B2
- Status: Granted
- Kind: B2
- Application number: 14/258,933
- Filed: 2014-04-22
- Published: 2014-12-04
- Granted: 2016-05-31
- Earliest claimed: 2013-05-29
- Assignees: NXP B.V.
- Applicants: NXP B.V.
- Inventors: Nicolas Laine; Andre Lepine
- Web page: https://patentgrep.com/patent/US9355276B2

## CPC

- G06F 21/629: {to features or functions of an application}
- G06F 21/14: against software analysis or reverse engineering, e.g. by obfuscation
- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processing system is disclosed. The system comprises: a processing unit; a memory adapted to store firmware code and application code for execution by the processor; and a memory access control unit adapted to control access of the processing unit to firmware code and application code stored in the memory. The memory access control unit is adapted to disable access to firmware code when access to application code is enabled, and to disable access to application code when access to firmware code is enabled.

## Claims

### Claim 1

A processing system comprising:
a processing unit;
memory adapted to store firmware code and application code for execution by the processor; and
a memory access control unit adapted to control access of the processing unit to firmware code and application code stored in the memory,
wherein the memory access control unit is adapted to transition between a normal mode in which access to firmware code is disabled when access to application code is enabled, and a secure mode in which access to application code is disabled when the application code calls to the firmware code through a single entry point address when the single entry point address matches an address stored in a register of the memory access control unit; and
wherein the memory access control unit is adapted to transition between the normal mode and the secure mode when the application code calls a function; and
wherein the single entry point address corresponds to a dispatcher function to which the application code passes at least one parameter to define at least one function of the firmware code to be executed.

### Claim 2 (depends on 1)

The system of claim 1, further comprising a debug interface for enabling debugging of application code stored by the memory, and wherein the memory access control unit is adapted to disable the debug interface so that debugging cannot be performed when access to firmware code is enabled.

### Claim 3 (depends on 1)

The system of claim 1, wherein the memory comprises non-volatile memory adapted to store firmware code and volatile memory adapted to store application code.

### Claim 4 (depends on 1)

The system of claim 1, wherein the memory access control unit is connected between the processor and the memory, and wherein the memory access control unit is further adapted to intercept a memory access request from the processor and to control access to the memory based on the intercepted memory access request.

### Claim 5 (depends on 4)

The system of claim 4, wherein the memory access control unit comprises a register adapted to store an address representing the location of firmware code in memory, and wherein the memory access control unit is further adapted to determine if the intercepted memory access request is requesting access to the address stored in the register and to control access to the memory based on an outcome of the determination.

### Claim 6 (depends on 4)

The system of claim 4, wherein the memory access control unit is further adapted to enable access to the register when access to firmware code is enabled, and to disable access to the register when access to application code is enabled.

### Claim 7 (depends on 1)

The system of claim 1, wherein at least part of the memory access control unit is implemented in read-only memory.

### Claim 8 (depends on 1)

The system of claim 1, wherein the system is part of a microcontroller.

### Claim 9 (depends on 1)

The system of claim 1, wherein the system is part of a system-on-chip application development system.

### Claim 10

A method of controlling access of a processing unit of a processing system to firmware code and application code stored by a memory of the processing system, the method comprising the steps of:
disabling access to firmware code when access to application code is enabled; and
disabling access to application code when the application code calls to the firmware code through a single entry point address when the single entry point address matches an address stored in a register of the memory access control unit;
wherein disabling access to the application code is performed when the application code calls to the firmware code and disabling access to the firmware code is performed when execution of the firmware code is completed; and
wherein the single entry point address corresponds to a dispatcher function to which the application code passes at least one parameter to define at least one function of the firmware code to be executed.

### Claim 11 (depends on 10)

The method of claim 10, further comprising the step of disabling a debug interface so that debugging cannot be performed when access to firmware code is enabled.

### Claim 12 (depends on 10)

The method of claim 10, further comprising the steps of:
intercepting a memory access request from the processor; and
controlling access to the memory based on the intercepted memory access request.

### Claim 13 (depends on 12)

The method of claim 12, wherein the step of controlling access to the memory based on the intercepted memory access request comprises:
determining if the intercepted memory access request is requesting access to a predetermined address; and
controlling access to the memory based on an outcome of the determination.

### Claim 14

A non-transitory computer-readable storage medium storing instructions that, when executed by a processing unit, control access of the processing unit to firmware code and application code by:
disabling access to firmware code when access to application code is enabled; and
disabling access to application code when the application code calls to the firmware code through a single entry point address when the single entry point address matches an address stored in a register of the memory access control unit;
wherein disabling access to the application code is performed when the application code calls to the firmware code and disabling access to the firmware code is performed when execution of the firmware code is completed; and
wherein the single entry point address corresponds to a dispatcher function to which the application code passes at least one parameter to define at least one function of the firmware code to be executed.
