# US 2022/0035545 A1 · Error restoring method, microcontroller unit using the same, and battery device including the microcontroller unit

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

- Number: US 2022/0035545 A1
- Document ID: US20220035545A1
- Status: Published application
- Kind: A1
- Application number: 17/279,862
- Filed: 2020-01-10
- Published: 2022-02-03
- Earliest claimed: 2019-01-11
- Assignees: LG Chem, Ltd.
- Applicants: LG Chem, Ltd.
- Inventors: Hojoon LEE
- Web page: https://patentgrep.com/patent/US20220035545A1

## CPC

- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 11/1441: {Resetting or repowering}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/0706: {the processing taking place on a specific hardware platform or in a specific software environment}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 11/1417: {Boot up procedures}
- H02J 7/855: {with circuits adapted for supplying loads from the battery}
- H02J 9/002: {in which a reserve is maintained in an energy source by disconnecting non-critical loads, e.g. maintaining a reserve of charge in a vehicle battery for starting an engine}
- G06F 3/0605: {by facilitating the interaction with a user or administrator}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H02J: ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY

## Abstract

A micro controller unit (MCU) includes a flash memory, wherein the flash memory determines a key value of an application when the MCU is powered on, and, when the key value of the application is invalid, the flash memory enters a mode that enables reprogramming of the flash memory.

## Claims

### Claim 1

A microcontroller unit (MCU) comprising a flash memory, wherein the flash memory is configured to:
determine a key value of an application stored in the flash memory when the MCU is powered on, and
when the key value of the application is invalid, enter a mode that enables reprogramming of the flash memory.

### Claim 2 (depends on 1)

The MCU of claim 1, wherein the flash memory comprises a flash boot loader, an application block, and an application key block,
wherein when the MCU is powered on, the flash boot loader is configured to determine an application key value in the application key block, and
wherein the mode that enables reprogramming is a flash boot loader mode.

### Claim 3 (depends on 2)

The MCU of claim 2, wherein the application block is configured to reprogram received application data in the flash boot loader mode.

### Claim 4 (depends on 3)

The MCU of claim 3, wherein the application key block is configured to write a valid application key value after completion of the reprogramming.

### Claim 5 (depends on 1)

The MCU of claim 1, wherein the flash memory is configured to, when receiving a reprograming request, erase a key value of the application that corresponds to the reprograming request and enter the mode.

### Claim 6 (depends on 5)

The MCU of claim 5, wherein the flash memory is configured to reprogram received application data and write an application key value in the mode.

### Claim 7

An error restoring method of a microcontroller unit (MCU) that includes a flash memory, the flash memory including a flash boot loader, an application block, and an application key block, the method comprising:
when the MCU is powered on, determining, by the flash boot loader, an application key value in the application key block; and
when the application key value is invalid in the determining the application key value, staying in the flash boot loader for enabling reprogramming of the flash memory.

### Claim 8 (depends on 7)

The error restoring method of the MCU of claim 7, further comprising:
reprogramming received application data; and
writing a valid application key value after completion of the reprogramming.

### Claim 9 (depends on 7)

The error restoring method of the MCU of claim 7, further comprising:
in the determining the application key value, executing a corresponding application when the application key value is valid;
receiving a reprogramming request during execution of the corresponding application; and
erasing a key value of the corresponding application when receiving the reprogramming request.

### Claim 10 (depends on 9)

The error restoring method of the MCU of claim 9, wherein, after erasing the application key value, the error restoring method is performed from the determining of the application key value in the application key block, by the flash boot loader.

### Claim 11

A battery device, comprising:
a battery cell assembly including a plurality of battery cells that are electrically connected to each other;
a micro controller unit (MCU) that includes a flash memory, the flash memory being configured to store an application for battery management of the battery cell assembly; and
a battery management system that performs the battery management according to the application executed by the MCU,
wherein when the MCU is powered on, the flash memory is configured to determine a key value of the application, and
wherein when the key value of the application is invalid, the flash memory is configured to enter a mode that enables reprogramming of the flash memory.
