# US 2015/0149703 A1 · Apparatuses for securing program code stored in a non-volatile memory

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

- Number: US 2015/0149703 A1
- Document ID: US20150149703A1
- Status: Published application
- Kind: A1
- Application number: 14/227,154
- Filed: 2014-03-27
- Published: 2015-05-28
- Earliest claimed: 2013-11-22
- Assignees: Nuvoton Technology Corporation
- Applicants: Nuvoton Technology Corporation
- Inventors: Chen Chun HUANG; Kuo En HSU
- Web page: https://patentgrep.com/patent/US20150149703A1

## CPC

- G06F 3/0623: {in relation to content}
- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/1425: {the protection being physical, e.g. cell, word, block}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An embodiment of an apparatus for securing program code stored in a non-volatile memory is introduced. A non-volatile memory contains a first region and a second region. Two NVMMCS (non-volatile memory management controllers respectively coupled to the two regions. A programming command-and-address decoder is coupled to the NVMMCS. The programming command-and-address decoder instructs the first NVMMC to erase data from the first region when receiving a command to erase the first region via a programming interface, and instructs the second NVMMC to erase data from the second region when receiving a command to erase the second region via the programming interface.

## Claims

### Claim 1

An apparatus for securing program code stored in a non-volatile memory, comprising:
a non-volatile memory comprising a first region and a second region;
a first NVMMC (non-volatile memory management controller) coupled to the first region;
a second NVMMC coupled to the second region; and
a programming command-and-address decoder coupled to the first NVMMC and the second NVMMC, instructing the first NVMMC to erase data from the first region when receiving a first command to erase the first region via a programming interface, and instructing the second NVMMC to erase data from the second region when receiving a second command to erase the second region via the programming interface.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the first command and the second command are designated by different operation codes.

### Claim 3

An apparatus for securing program code stored in a non-volatile memory, comprising:
a non-volatile memory comprising a security byte, in which a security byte value is employed to indicate the non-volatile memory is in an available status or a protected status;
a NVMMC (non-volatile memory management controller) coupled to the non-volatile memory, and accessing data stored in the non-volatile memory;
a CPU (central processing unit) coupled to the NVMMC, and commanding the NVMMC to access the data stored in the non-volatile memory; and
a chip debugger coupled to the CPU, obtaining the security byte value when receiving a debugging command from a debugging interface;
performing at least a determination according to the security byte value; and deciding whether to block the debugging command from execution according to a result of the determination.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the determination decides whether the non-volatile memory is in the protected status according to the security byte value, and, if not, the chip debugger transmits the debugging command to the CPU for execution.

### Claim 5 (depends on 3)

The apparatus of claim 3, wherein the determination decides whether the non-volatile memory is in the protected status according to the security byte value, and, if so, the chip debugger blocks the debugging command from execution.

### Claim 6 (depends on 3)

The apparatus of claim 3, wherein the determination decides whether the non-volatile memory is in the protected status according to the security byte, and the debugging command is a restricted command, and, if so, the chip debugger blocks the debugging command from execution.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the restricted command is a breakpoint-setting command, a step run command, or a debugging mode command.

### Claim 8

An apparatus for securing program code stored in a non-volatile memory, comprising:
a non-volatile memory comprising a security byte, in which a security byte value is employed to indicate the non-volatile memory is in an available status or a protected status;
a CPU (central processing unit); and
a NVMMC (non-volatile memory management controller) coupled to the CPU, obtaining a command to read program code stored in the non-volatile memory; obtaining the security byte value; and replying to the CPU with the security byte value rather than the program code of the non-volatile memory when the security byte value indicates that the non-volatile memory is in the protected status.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the NVMMC reads the program code of the non-volatile memory and replies to the CPU with the program code of the non-volatile memory when the security byte value indicates that the non-volatile memory is in the available status.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein the CPU is coupled to a control register, and commands the NVMMC to access the program code of the non-volatile memory by setting the control register.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the CPU issues the command to the NVMMC to read the program code stored in the non-volatile memory when executing an instruction.

### Claim 12 (depends on 8)

The apparatus of claim 8, further comprising:
a programming command-and-address decoder coupled to the NMVVC and issuing the command to the NVMMC to read the program code stored in the non-volatile memory when receiving an instruction from a programming interface.
