IP Library › Granted Patent US 12,481,495
Granted Patent B2
US 12,481,495 · App. 18/085,084 · Granted Nov 25, 2025

Firmware update method of a flash bootloader in a micro controller unit for a vehicle

Inventors: JaeHyun Lim (Seoul, KR); YoungJin Yun (Seoul, KR); YongSeong Jeon (Seoul, KR)
Assignee: HYUNDAI AUTOEVER CORP.
G06F8/654G06F9/4401
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,481,495
App. No.
18/085,084
Granted
Nov 25, 2025
Kind
B2
Abstract

A method of updating firmware by a flash bootloader includes: storing current version information included in a trailer block of firmware stored in a flash memory, the firmware including the trailer block and a header block; erasing a sector in which the header block is located while maintaining a sector in which the trailer block is located in the flash memory; writing a header block of a new firmware to be downloaded in the flash memory; determining, by comparing current version information of the new firmware in the written header block and the stored current version information, whether the firmware is to be downgraded; and, in response to determining that the firmware is not to be downgraded, erasing a sector in which the trailer block is located from the flash memory, and writing a trailer block of the new firmware in the flash memory.

Claims (30)

1 . A method of updating firmware by a flash bootloader, the method comprising:

storing current version information included in a trailer block of the firmware stored in a flash memory, wherein the firmware stored in the flash memory includes the trailer block and a header block;

erasing a first sector in which the header block is located while maintaining a second sector in which the trailer block is located in the flash memory;

writing a new header block of a new firmware to be downloaded in the first sector of the flash memory;

determining, by comparing current version information of the new firmware included in the new header block and the stored current version information, whether the firmware is to be downgraded; and

in response to determining that the firmware is not to be downgraded,

erasing the second sector in which the trailer block is located from the flash memory, and

writing a new trailer block of the new firmware in the second sector of the flash memory.

2 . The method of claim 1 , further comprising, in response to determining that the firmware is not to be downgraded, adding the stored current version information to the new header block as previous version information.

3 . The method of claim 2 , further comprising adding a cyclic redundancy check (CRC) value to the new header block, wherein the CRC value is generated based on the current version information and the previous version information in the new header block.

4 . The method of claim 2 , further comprising:

verifying an integrity of the new firmware, and

adding the stored current version information to the new trailer block as previous version information if the integrity is verified.

5 . The method according to claim 4 , further comprising adding a cyclic redundancy check (CRC) value to the new trailer block, wherein the CRC value is generated based on current version information and the previous version information in the new trailer block.

6 . The method of claim 4 , further comprising:

erasing the second sector in which the new trailer block is located from the flash memory if the integrity is not verified,

restoring the trailer block with previous version information of the new header block stored in the flash memory as current version information, and

erasing the first sector in which the new header block is located while maintaining the second sector in which the trailer block is located in the flash memory.

7 . The method of claim 1 , further comprising, in response to determining that the firmware is to be downgraded, maintaining the second sector in which the trailer block is located in the flash memory and erasing the first sector in which the new header block is located.

8 . The method of claim 1 , further comprising:

confirming a validity of the header block of the firmware stored in the flash memory, and

confirming a validity of the trailer block of the firmware stored in the flash memory.

9 . The method of claim 8 , wherein:

confirming the validity of the header block is performed using i) current version information and previous version information included in the header block and ii) a cyclic redundancy check (CRC) generated based on the current version information and the previous version information included in the header block, and

confirming the validity of the trailer block is performed using i) current version information and previous version information included in the trailer block and ii) a cyclic redundancy check (CRC) generated based on the current version information and the previous version information included in the trailer block.

10 . The method of claim 8 , further comprising, when i) it is confirmed that the header block is valid and ii) it is confirmed that the trailer block is not valid:

erasing the second sector in which the trailer block is located from the flash memory before storing the current version information included in the trailer block of the firmware stored in the flash memory, and

restoring the trailer block with previous version information of the header block stored in the flash memory as current version information.

11 . The method of claim 1 , wherein storing the current version information included in the trailer block of the firmware stored in the flash memory comprises storing the current version information in a random-access memory (RAM).

12 . The method of claim 1 , wherein the header block and the trailer block are configured to be located in different sectors of the flash memory.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 21, 2022
From: LIM, JAEHYUN; YUN, YOUNGJIN; JEON, YONGSEONG
To: HYUNDAI AUTOEVER CORP.
Reel/Frame 062166/0520 →
Priority Claims (1)
KR 10-2022-0077590 · Jun 24, 2022 · national
Continuity (1)
Related Publication 20230418591A1 · Dec 28, 2023
References Cited (21)
US 7818740B2 · Bankston · 2010 [cited by applicant]
US 8370828B2 · Bankston · 2013 [cited by applicant]
US 9678742B2 · Kanematsu · 2017 [cited by applicant]
US 10558453B1 · Bhaskar · 2020 [cited by examiner]
US 11036421B2 · Park · 2021 [cited by examiner]
US 11537389B2 · Rosner · 2022 [cited by examiner]
US 11755315B2 · Hong · 2023 [cited by applicant]
US 20070261049A1 · Bankston · 2007 [cited by applicant]
US 20080104398A1 · Cho et al. · 2008 [cited by applicant]
US 20110016461A1 · Bankston · 2011 [cited by applicant]
US 20140373000A1 · Kanematsu · 2014 [cited by applicant]
US 20200183677A1 · Hong · 2020 [cited by examiner]
US 20200226026A1 · Wu · 2020 [cited by examiner]
US 20220027138A1 · Stevens · 2022 [cited by examiner]
JP 2015001814A · 2015 [cited by applicant]
KR 20070083138A · 2007 [cited by applicant]
KR 100780362B1 · 2007 [cited by applicant]
KR 20090031669A · 2009 [cited by applicant]
KR 101425224B1 · 2014 [cited by applicant]
KR 20200068345A · 2020 [cited by applicant]
Office Action cited in corresponding patent application No. KR 10-2022-0077590; May 20, 2024; 12 pp. [cited by applicant]