# US 2018/0322041 A1 · Data storage device and method for operating data storage device

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

- Number: US 2018/0322041 A1
- Document ID: US20180322041A1
- Status: Published application
- Kind: A1
- Application number: 15/853,429
- Filed: 2017-12-22
- Published: 2018-11-08
- Earliest claimed: 2017-05-02
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Shen-Ting CHIU
- Web page: https://patentgrep.com/patent/US20180322041A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 9/3004: {to perform operations on memory}
- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G06F 2212/2022: Flash memory
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G11C 2211/5641: Multilevel memory having cells with different number of storage levels
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A data-downloading technique for a data storage device before soldering the data storage device into a product. The data storage device uses a flash memory to provide first-type blocks (using single level cells) and second-type blocks (using multi-level cells). Before soldering the data storage device onto a printed circuit board, a controller of the data storage device allocates the first-type blocks to store data from a host. When the allocated number of first-type blocks reaches an upper limit, the controller changes to allocate the second-type blocks to store data from the host. When detecting that the controller has changed to allocate the flash memory to provide the second-type blocks to receive data from the host, the controller returns a fail message to the host to indicate unreliable write operations prior to soldering.

## Claims

### Claim 1

A data storage device, comprising:
a flash memory, providing a plurality of first-type blocks and a plurality of second-type blocks, wherein the first-type blocks comprise single level cells and the second-type blocks comprise multi-level cells; and
a controller, allocating the flash memory to provide the first-type blocks to receive data downloaded from a host before the data storage device is soldered to a printed circuit board,
wherein:
when the number of first-type blocks allocated to receive the data downloaded from the host exceeds an upper limit, the controller changes to allocate the flash memory to provide the second-type blocks to receive the data downloaded from the host; and
when detecting that the controller has changed to allocate the flash memory to provide the second-type blocks to receive the data downloaded from the host, the controller returns a fail message to the host to indicate unreliable write operations prior to soldering.

### Claim 2 (depends on 1)

The data storage device as claimed in claim 1, wherein:
when data-downloading, from the host to the flash memory prior to the soldering, finishes and the controller does not return the fail message to the host, the controller switches to a product state by a rebooting process after a power-off event to operate the flash memory in a consumer mode.

### Claim 3 (depends on 2)

The data storage device as claimed in claim 2, wherein:
according to a checking command issued by a host, the controller checks whether the controller itself has changed to allocate the flash memory to provide the second-type blocks to receive the data downloaded from the host.

### Claim 4 (depends on 3)

The data storage device as claimed in claim 3, wherein:
the controller performs the data-downloading, from the host to the flash memory before the soldering, during a production state awareness procedure.

### Claim 5 (depends on 4)

The data storage device as claimed in claim 4, wherein:
the controller clears the flash memory before the production state awareness procedure.

### Claim 6 (depends on 5)

The data storage device as claimed in claim 5, wherein:
the controller allocates the flash memory to provide an active block and an alternate active block to receive the data downloaded from the host; and
the controller switches to use the alternate active block to receive the data downloaded from the host when finishing using the active block to receive data.

### Claim 7 (depends on 6)

The data storage device as claimed in claim 6, wherein:
when the number of first-type blocks allocated to receive the data downloaded from the host exceeds the upper limit, the controller switches to allocate the flash memory to provide the second-type blocks as the alternate active block.

### Claim 8 (depends on 7)

The data storage device as claimed in claim 7, wherein:
when returning the fail message to the host, the controller disables the production state awareness procedure.

### Claim 9 (depends on 8)

The data storage device as claimed in claim 8, wherein:
according to an enable command for the production state awareness procedure, the controller starts allocating the flash memory to provide the first-type blocks as the alternate active block.

### Claim 10 (depends on 9)

The data storage device as claimed in claim 9, wherein:
the controller starts a valid part of the data-downloading when the active block is the first-type block.

### Claim 11

A method for operating a data storage device, comprising:
allocating a flash memory of a data storage device to provide space to receive data downloaded from a host, wherein the flash memory provides a plurality of first-type blocks and a plurality of second-type blocks, the first-type blocks comprise single level cells, and the second-type blocks comprise multi-level cells; and
allocating the flash memory to provide the first-type blocks to receive the data downloaded from the host before the data storage device is soldered to a printed circuit board,
wherein:
when the number of first-type blocks allocated to receive the data downloaded from the host exceeds an upper limit, the flash memory is changed to provide the second-type blocks to receive the data downloaded from the host; and
when detecting that the flash memory has been changed to provide the second-type blocks to receive the data downloaded from the host, a fail message is returned to the host to indicate unreliable write operations prior to soldering.

### Claim 12 (depends on 11)

The method as claimed in claim 11, wherein:
when data-downloading, from the host to the flash memory prior to the soldering, finishes without returning the fail message to the host, a product state is introduced by a rebooting process after a power-off event to operate the flash memory in a consumer mode.

### Claim 13 (depends on 12)

The method as claimed in claim 12, wherein:
according to a checking command issued by a host, it is checked whether the flash memory has been changed to provide the second-type blocks to receive the data downloaded from the host.

### Claim 14 (depends on 13)

The method as claimed in claim 13, wherein:
the data-downloading, from the host to the flash memory before the soldering, is performed during a production state awareness procedure.

### Claim 15 (depends on 14)

The method as claimed in claim 14, further comprising:
clearing the flash memory before the production state awareness procedure.

### Claim 16 (depends on 15)

The method as claimed in claim 15, further comprising:
allocating the flash memory to provide an active block and an alternate active block to receive the data downloaded from the host; and
switching to use the alternate active block to receive the data downloaded from the host when finishing using the active block to receive data.

### Claim 17 (depends on 16)

The method as claimed in claim 16, further comprising:
switching to allocate the flash memory to provide the second-type blocks as the alternate active block when the number of first-type blocks allocated to receive the data downloaded from the host exceeds the upper limit.

### Claim 18 (depends on 17)

The method as claimed in claim 17, further comprising:
disabling the production state awareness procedure when the fail message is returned to the host.

### Claim 19 (depends on 18)

The method as claimed in claim 18, further comprising:
according to an enable command for the production state awareness procedure, starting to allocate the flash memory to provide as the alternate active block from the first-type blocks.

### Claim 20 (depends on 19)

The method as claimed in claim 19, further comprising:
starting a valid part of the data-downloading when the active block is the first-type block.
