• Home
  • Courses
  • Machines
    • Transformer
    • AC Motors
      • Induction Motor
      • Synchronous Motor
    • DC Motor
    • DC Generator
  • Power System
    • Circuit Breaker
    • Switchgear
    • Substation
    • Control System
    • Measurement
  • Electronics
  • Blog
  • Contact
    • Contact Us
    • Privacy Policy
Have any question?
[email protected]
RegisterLogin
StudyElectrical.Com
  • Home
  • Courses
  • Machines
    • Transformer
    • AC Motors
      • Induction Motor
      • Synchronous Motor
    • DC Motor
    • DC Generator
  • Power System
    • Circuit Breaker
    • Switchgear
    • Substation
    • Control System
    • Measurement
  • Electronics
  • Blog
  • Contact
    • Contact Us
    • Privacy Policy

Embedded System

Self Testing in Embedded Systems

  • Categories Embedded System
embedded system self testing

The implementation of some self-testing capabilities in an embedded design is worthwhile unless available memory is completely exhausted. 

Although modern electronics are amazingly reliable, they are still susceptible to failure. Failures in embedded systems can be broadly divided into four categories: 

  1. CPU
  2. Peripheral
  3. Memory
  4. Software errors 

If a CPU fails, it tends to be a hard failure. There is no possibility for self-testing in this system. Partial failure of a CPU is very unlikely. When there are multiple cores in a system, it is good practice to assign one core as “master” so that it can monitor the system integrity. 

Moving ones test
Moving Ones Test

Peripherals can fail in a variety of ways, but many of them are device/application specific. When a device fails to respond to its address, the trap occurs; it is essential to include a trap handler to handle this fault. Otherwise, communications devices commonly include a “loopback” mode that enables testing of transmission and reception and associated interrupts. 

Memory failures can happen at any time. This failure may be transient – for example, a single bit being flipped by a passing cosmic ray. Such a fault is generally not detectable and may result in a software crash. Therefore, it is essential to accommodate crash recovery. There could be a hard failure if the address response is not received, or if bits are stuck at 0 or 1. A trap handler deals with the former, but the latter requires some specific testing. Comprehensive memory testing can only be done on device start-up. A Moving Ones test is effective. 

stack guard words
Stack guard words

While the device is operating, pattern testing can be performed on individual bytes or words which may reveal certain types of failures. 

In modern devices, software is the most complex component. Even though software does not wear out, its complexity can result in faults that are difficult to detect during development. Good, defensive coding techniques can help anticipate some problems. 

In general, there are two types of software errors:

  1. data corruption
  2. code looping. 

Data corruption can be caused by pointer misusage, which is hard to detect or prevent, but it can also be as a result overflow of a data structure, like an array or the stack. The insertion of “guard words” can assist with the detection of overflow before any damage is caused. 

Code looping can be addressed by careful design – precautions like timeouts on waiting for devices – or some kind of watchdog facility (in hardware or software) that traps unresponsive code.

Related Articles

  • Testing a DC Motor
    Testing of DC Machines (DC Motor and DC Generator)

    There are several tests that are conducted for testing a dc machine (generator or motor)…

  • electric power system
    Evolution of Electric Power Systems

    The commercial use of electricity began in the late 1870s when arc lamps were used…

  • emergency-lighting-system
    Types of Emergency Lighting Systems

    No one loves emergencies; we all wish and hope that we don’t find ourselves in…

  • transformer oil testing
    Transformer Oil Testing : Video Training

    Transformer oil testing is just like a blood test in the human body. A blood…

  • protective zones in power system
    Protective Zones in Power Systems

    In this post, we will look into protective zones in the power system and why…

  • insulation resistance measurement vs dielectric breakdown testing
    Difference between Dielectric Testing & Insulation Resistance Measurement

    All electrical installations and equipment comply with insulation resistance specifications so they can operate safely.  Whether…

  • Share:
Tesla Edison

Tesla is an Electrical Engineer, Physicist and an Inventor in making. He is a good writer and author of many courses and articles published in this site.

Previous post

What Are Military Materials?

Next post

The Advancements in XLPE cables

You may also like

PCB Assembly Process with NextPCB
Introduction to PCB Assembly Process
newbie electronics kits
Beginner Friendly Kits That Most Newbie Used In Electronics
Open Loop and Closed Loop Control System
Open Loop and Closed Loop Control System (4 Practical Examples Included)

Leave A Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search Here

From Blog

substation earthing
Substation Earthing System Design
Programmable%2Blogic%2Bcontroller%2BPLC%2BLectures%2BNotes
14 Lectures on Programmable Logic Controllers (PLC)
Short Circuit Reasons and effects
Short Circuit – Causes and Effects
AB-Switch
Air Break Switch – Types and Uses

Categories

  • Alternator
  • Arduino
  • Basic Electrical
  • Battery
  • Books
  • Cables
  • Capacitor
  • Career
  • Circuit Breaker
  • Control System
  • DC Generator
  • DC Motor
  • Electric Vehicles
  • Electrical Circuits
  • Electrical Machines
  • Electrical Relays
  • Electrical Safety
  • Electronics
  • Embedded System
  • Exams
  • Generation
  • Guest Post
  • HVDC
  • Instrumentation
  • Interview Questions
  • Locomotives
  • Measurement
  • Microcontroller
  • Objective Questions
  • PCB
  • PLC
  • Power System
  • Projects
  • Signals and Systems
  • Single Phase Motors
  • Substation
  • Switchgear
  • Synchronous Motor
  • Three Phase Induction Motor
  • Transformer
  • Transmission Line
  • Uncategorized

Copyright © 2021 Study Electrical, Inc.

© StudyElectrical.Com 2021

Login with your site account

Lost your password?

Not a member yet? Register now

Register a new account

Are you a member? Login now