Method of reprogramming a boot area
A method performed by an electronic control unit (ECU) includes: manipulating a boot area of an ECU so that the boot area is in an abnormal state; entering a boot strap loader (BSL) area of the ECU in response to detecting that the boot area is in an abnormal state upon resetting the ECU; determining whether to perform reprogramming of the boot area based on ROM identification information stored in the BSL area; and reprogramming the boot area when it is determined to perform the reprogramming.
1 . A method performed by an electronic control unit (ECU) using a diagnostic device to reprogram the ECU, the method comprising:
determining that reprogramming of a boot area of the ECU is required;
determining that access to a boot strap loader (BSL) area of the ECU is restricted based on determining that a BSL entry Controller Area Network (CAN) message is not received at a time of booting the ECU, the BSL area including codes for reprogramming the boot area;
in response to a determination that access to the BSL area of the ECU is restricted, manipulating the boot area by deleting the boot area so that the boot area transitions from a normal state to an abnormal state;
entering the BSL area in response to detecting that the boot area is in the abnormal state upon resetting the ECU; and
reprogramming the boot area based on a read-only memory (ROM) identification information stored in the BSL area.
2 . The method of claim 1 , wherein manipulating the boot area comprises:
determining whether ROM identification information stored in the boot area matches ROM identification information stored in a diagnostic device;
upon determining that the ROM identification information stored in the boot area and the ROM identification information stored in the diagnostic device do not match, determining whether the ROM identification information stored in the BSL area and the ROM identification information stored in the diagnostic device do not match;
upon determining that the ROM identification information stored in the BSL area and the ROM identification information stored in the diagnostic device do not match, determining information necessary for reprogramming the boot area; and
upon identifying the information necessary for the reprogramming, deleting the boot area.
3 . The method of claim 2 , wherein the information necessary for the reprogramming includes vehicle model and controller information.
4 . The method of claim 2 , wherein entering the BSL area comprises:
performing reset of the ECU; and
upon confirming that the boot area is not in a normal state when booting the ECU, entering the BSL area.
5 . The method of claim 1 , wherein the ROM identification information stored in the BSL area includes vehicle model, controller, and software version.
6 . The method of claim 1 , wherein entering the BSL area comprises:
upon confirming that the boot area is not in a normal state when booting the ECU, entering the BSL area.
7 . The method of claim 1 , further comprising:
before manipulating the boot area, running the ECU in the boot area.
8 . An electronic control unit (ECU) comprising:
at least one processor;
a memory for loading a boot program executed by the at least one processor; and
a storage for storing the boot program,
wherein the boot program includes instructions for performing operations for reprogramming the ECU using a diagnostic device, and
wherein the operations comprise:
determining that reprogramming of a boot area of the ECU is required;
determining that access to a boot strap loader (BSL) area of the ECU is restricted based on determining that a BSL entry Controller Area Network (CAN) message is not received at a time of booting the ECU, the BSL area including codes for reprogramming the boot area;
in response to a determination that access to the BSL area of the ECU is restricted, manipulating the boot area by deleting the boot area so that the boot area transitions from a normal state to an abnormal state;
entering the BSL area in response to detecting that the boot area is in the abnormal state upon resetting the ECU; and
reprogramming of the boot area based on a read-only memory (ROM) identification information stored in the BSL area.
9 . The ECU of claim 8 , wherein manipulating the boot area of the ECU comprises:
determining whether ROM identification information stored in the boot area matches ROM identification information stored in a diagnostic device;
when it is confirmed that the ROM identification information stored in the boot area and the ROM identification information stored in the diagnostic device do not match, determining whether the ROM identification information stored in the BSL area and the ROM identification information stored in the diagnostic device do not match;
when the ROM identification information stored in the BSL area and the ROM identification information stored in the diagnostic device do not match, determining information necessary for reprogramming the boot area; and
when information necessary for the reprogramming is identified, deleting the boot area.
10 . The ECU of claim 9 , wherein the information necessary for the reprogramming includes vehicle model and controller information.
11 . The ECU of claim 9 , wherein entering the BSL area comprises:
performing reset of the ECU; and
upon confirming that the boot area is not in a normal state when booting the ECU, entering the BSL area.
12 . The ECU of claim 8 , wherein the ROM identification information stored in the BSL area includes vehicle model, controller, and software version.
13 . The ECU of claim 8 , wherein entering the BSL area comprises:
upon confirming that the boot area is not in a normal state when booting the ECU, entering the BSL area.
14 . The ECU of claim 8 , wherein the operations performed by the boot program further comprises:
before manipulating the boot area, running the ECU in the boot area.