Back to results
US 12,748,414 B2Granted
Fault injection test method and apparatus, and fault injection method
AssigneesHyundai Motor Company, Kia Corporation
InventorsSunYoung Park, Hoerae Kim, Jae Hyoung Jeong
Life of this patent
Estimating the term…
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.
Claims14
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.
4 more elements
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.
5 more elements
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.
5 more elements
Dependencies are inferred from the claim text.