IP Library › Granted Patent US 12,748,414
Granted Patent B2
US 12,748,414 · App. 18/370,937 · Granted Sep 29, 2026

Fault injection test method and apparatus, and fault injection method

Inventors: SunYoung Park (Suwon-Si, KR); Hoerae Kim (Suwon-Si, KR); Jae Hyoung Jeong (Seoul, KR)
Assignees: Hyundai Motor Company; Kia Corporation
G05B23/0256
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,748,414
App. No.
18/370,937
Granted
Sep 29, 2026
Kind
B2
Abstract

A fault injection test method of a fault injection test apparatus connected to a vehicle through a debugger is provided. The fault injection test method includes receiving fault injection conditions from a user; and setting the fault injection conditions using an on-chip debugging system (OCDS) module built into a central processing unit (CPU) of the vehicle controller.

Claims (40)

1 . A method performed by a fault inject test apparatus, the method comprising:

receiving, by the fault injection test apparatus, fault injection conditions from a user, wherein the fault injection conditions comprise a fault injection location code address indicating a fault injection target; and

setting, by the fault injection test apparatus connected to a vehicle through a debugger, the fault injection conditions using an on-chip debugging system (OCDS) module built into a central processing unit (CPU) of a vehicle controller of the vehicle, wherein the setting the fault injection conditions comprises:

storing the fault injection location code address in a first debug register in the CPU; and

storing, in a second debug register in the CPU, a start address of a memory in the vehicle controller, wherein a trap function, defined for one of a plurality of fault modes, is stored at the start address, and wherein the trap function corresponds to the fault injection location code address, and

wherein a trigger signal is generated based on a program counter within the CPU matching the fault injection location code address of the first debug register, and wherein the OCDS module within the CPU calls the trap function in response to the trigger signal.

2 . The method of claim 1 , wherein the plurality of fault modes comprise two or more of: a task stop, a task miss, a variable manipulation, or a task overrun.

3 . The method of claim 1 , wherein

the fault injection conditions further comprise a fault mode, of the plurality of fault modes, to be injected into the fault injection target, and

wherein the method further comprises:

injecting, by the CPU of the vehicle controller executing the trap function, a fault of the fault mode into the fault injection target in the vehicle controller; and

monitoring an injection result of the fault.

4 . The method of claim 1 , wherein the storing the fault injection location code address comprises setting, by a hardware breakpoint in the OCDS module, the fault injection location code address in the first debug register.

5 . A fault injection test apparatus comprising:

one or more processors; and

memory storing instructions that, when executed by the one or more processors, cause the fault injection test apparatus to:

extract, based on an operating system (OS) software information file of a vehicle controller, fault injection location code addresses of fault injection targets from the vehicle controller;

store, using an on-chip debugging system (OCDS) module built into a central processing unit (CPU) of the vehicle controller, the fault injection location code addresses, of the fault injection targets designated by a user, in a first debug register inside the CPU of the vehicle controller; and

store, in a second debug register inside the CPU of the vehicle controller, a start address of a memory of the vehicle controller where a trap function, defined for one of a plurality of fault modes, is stored, wherein the trap function is for injecting a fault, corresponding to a fault mode designated by the user, into one of the fault injection targets, and

wherein a trigger signal is generated based on a program counter within the CPU matching the fault injection location code address of the first debug register, and wherein the OCDS module within the CPU calls the trap function in response to the trigger signal.

6 . The fault injection test apparatus of claim 5 , wherein the instructions, when executed by the one or more processors, further cause the fault injection test apparatus to:

monitor an injection result of the fault; and

inject, by the CPU of the vehicle controller executing the trap function, the fault of the fault mode designated by the user into the one of the fault injection targets in the vehicle controller.

7 . The fault injection test apparatus of claim 5 , wherein the fault injection location code addresses are set in the first debug register by a hardware breakpoint in the OCDS module.

8 . The fault injection test apparatus of claim 5 , wherein the plurality of fault modes comprise two or more of: a task stop, a task miss, a variable manipulation, or a task overrun.

9 . A method comprising:

setting, by a fault injection test apparatus and in a first debug register inside a central processing unit (CPU) of a vehicle controller, a fault injection location code address of a fault injection target designated by a user;

calling, from a memory of the vehicle controller and based on an address value of a program counter inside the CPU matching the fault injection location code address, a trap function to be executed, wherein the trap function corresponds to the fault injection location code address; and

executing the trap function to inject a fault, of a fault mode designated by the user, into the fault injection target,

wherein the calling the trap function comprises:

generating a trigger event based on the address value of the program counter matching the fault injection location code address; and

calling, by an on-chip debugging system (OCDS) module built into the CPU, the trap function based on the trigger event.

10 . The method of claim 9 , further comprising:

prior to the calling the trap function, storing, via the fault injection test apparatus, the trap function in the memory of the vehicle controller.

11 . The method of claim 9 , further comprising:

prior to the calling the trap function, setting, via the fault injection test apparatus, a start address of the memory where the trap function of the fault mode is stored in a second debug register inside the CPU,

wherein the calling the trap function comprises outputting the start address of the memory based on the trigger event.

12 . The method of claim 9 , wherein the trap function is defined for one of a plurality of fault modes.

13 . The method of claim 12 , wherein the plurality of fault modes comprise two or more of: a task stop, a task miss, a variable manipulation, or a task overrun.

14 . The method of claim 9 , wherein the trap function is stored at a start address of the memory.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 21, 2023
From: PARK, SUNYOUNG; KIM, HOERAE; JEONG, JAE HYOUNG
To: HYUNDAI MOTOR COMPANY; KIA CORPORATION
Reel/Frame 064980/0807 →
Priority Claims (1)
KR 10-2023-0004170 · Jan 11, 2023 · national
Continuity (1)
Related Publication 20240231347A1 · Jul 11, 2024
References Cited (9)
US 11609560B2 · Wang · 2023 [cited by examiner]
US 12503004B2 · Zhu · 2025 [cited by examiner]
US 20050102594A1 · Dey · 2005 [cited by examiner]
US 20170249224A1 · Suzuki · 2017 [cited by examiner]
KR 1020180134677A · 2018 [cited by applicant]
Fidalgo et al. (Real Time Fault Injection Using Enhanced OCD—A Performance Analysis, IEEE, 2006) (Year: 2006). [cited by examiner]
Fidalgo et al. (“A modified debugging infrastructure to assist real time fault injection campaigns”, 2006) (Year: 2006). [cited by examiner]
Vinter et al. (Experimental Dependability Evaluation of a Fail-Bounded Jet Engine Control System for Unmanned Aerial Vehicles, 2007). (Year: 2007). [cited by examiner]
Campelo et al. (DICOS: a real-time distributed industrial control system for embedded applications, 2001)_ (Year: 2001). [cited by examiner]