Fault Injection simulation using modelled HW & SW

1 view (last 30 days)
Kevin
Kevin on 10 Jun 2025
Commented: Kevin on 11 Jun 2025
Hello,
I have an idea and wondered if it would be possible with the tools available from MathWorks.
I have a challenge to physically perform Fault Injection Testing on a large PCB. This consists of, for example, removing a component to access the PCB nets, Introduce a fault condition, say shortcircuit, and record three behavioural stages, before, injection of the fault and recovery. Recording the behaviour of the system consisting of both hardware and software.
For one resistor this would be a simple task but with a large PCB the problem is quantity. Quantity of components.
To get to my questions on the capabilty of the Mathworks tools:
  1. Is it possible to simulate circuit schematics? to create a model of my PCB.
  2. Is it also possible to import my software thats used in a uP? So both modelled HW & SW can be tested together.
  3. Then getting to the Fault Injection part. Select each modelled component in turn and induce a fault. Recording the behaviour in three stages, before, during and recovery. Could this be automated?
Does MathWorks have tools that could help me create such a system that would allow me to simulate fault conditions, recording both HW & SW behaviour?
Which tools would allow me to create this?
Please share any info or experience.
  2 Comments
Kevin
Kevin on 11 Jun 2025
Hi Pat,
Thankyou for the interesting link. To expand on that idea of injecting a fault to a DC motor.
Could a PWM controlled circuit be included as the motor drive? With the PWM signal generated by a microprocessor. But rather than model the microprocessor. Could the code be imported to the sim?
  1. inject fault to the motor, component under test
  2. model the drive circuitry
  3. include microprocessor code for PWM signal and diagnositic feedback
  4. perform test and record results.
This way hardware and software could be tested together.
Is this possible?

Sign in to comment.

Answers (0)

Categories

Find more on Composite Components in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!