MCU Flash Bootloader Recovery From Invalid Application Keys

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Flash memory errors due to unexpected power off during application key erasure or writing cause CPU core exceptions, leading to infinite repetition of power-on and key reading processes, preventing execution of the application and flash bootloader.

Innovation Solution

A microcontroller unit (MCU) with a flash memory configuration that includes a flash bootloader, application block, and application key block, allowing the MCU to enter a flash boot loader mode upon invalidity, reprogram the application key block, and reset when the key value is invalid, enabling reprogramming and writing a valid key value.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If the application key block is made erasable and resettable for flexibility, then the system can adapt to reprogramming scenarios, but unexpected power off during erasure or writing causes memory damage and CPU core exceptions

Engineering Contradiction:
Improvereprogramming capabilityVSAvoidmemory integrity
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The flash bootloader checks the application key validity before attempting to execute the application. This preliminary validation prevents the system from entering a state where power loss during key operations could cause damage, as the key is verified to be in a safe state before any risky operations proceed.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The flash bootloader acts as an intermediary layer between the application key block and the application execution. It manages the key validation process and controls the transition between bootloader mode and application mode, preventing direct access that could lead to unsafe operations during power transitions.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If the system performs strict key validation on power on, then security is ensured, but infinite repetition occurs when the key is invalid preventing application execution

Engineering Contradiction:
Improvesecurity validationVSAvoidsystem operational status
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system dynamically switches between two operational modes based on key validation results: bootloader mode for reprogramming when the key is invalid, and application mode when the key is valid. This dynamic state transition resolves the infinite repetition by providing an escape path from the validation loop through mode switching.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes its operational parameter (execution mode) based on the key validation result. When validation fails, it transitions from application execution mode to bootloader mode, allowing reprogramming. This parameter change breaks the infinite repetition cycle by altering the system's behavioral state.

Inventive Principle:
Principle #35Parameter changes

3Ease of repair

If the flash bootloader mode is entered for reprogramming, then the system can be restored to functional state, but the system cannot execute the application until reprogramming is complete

Engineering Contradiction:
Improverestoration capabilityVSAvoiddowntime
Core Design Contradiction:
Ease of repairVSLoss of time

Solution Approach 1:

The flash bootloader provides self-service functionality by automatically detecting invalid keys and initiating the restoration process without external intervention. When an invalid key is detected, the system autonomously enters bootloader mode and prepares for reprogramming, eliminating the need for manual diagnostic procedures.

Inventive Principle:
Principle #25Self-service

Data Source

PatentEP3848810B1Error restoring method, microcontroller unit using the same, and battery device including the microcontroller unit
Publication Date: 2026.03.18 LG ENERGY SOLUTION LTD
  • EP3848810B1 patent drawingFigure 1~2
  • EP3848810B1 patent drawingFigure 3
  • EP3848810B1 patent drawingFigure 4

AI summary

A micro controller unit (MCU) includes a flash memory, wherein the flash memory may determine 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 may enter a mode that enables reprogramming.