What happens when a microcontroller goes bad?

What happens when a microcontroller goes bad?

Pointing fingers doesn’t help a microcontroller that’s failed. A reliable embedded system requires a combined effort from the hardware designer and the firmware programmer. Some design faults can go undetected during the development phase and only rear their ugly heads once deployed.

How big is the memory stack on a microcontroller?

A microcontroller’s memory stack is a designated area of its internal RAM that is used meant for temporary usage. The size of a memory stack is limited and varies with different MCUs.

Why are microcontroller failure modes important in embedded systems?

In an embedded system, microcontroller failure mode (MCU) could have worse repercussions than missing your assignment’s deadline. MCUs are often the heart of applications like payment machines, medical devices, and security systems. These systems demand high stability and often have low tolerances for system failure rate.

What causes a MCU to go into failure mode?

Often an overlooked factor, an MCU needs stable power network to run reliably. MCU could fall into failure mode when its power source is constantly disrupted by external interference. A dip in the operating voltage could cause an MCU to behave erratically or freeze completely.

Are there any microcontrollers in good working order?

I’ve since learned a lot, for example, how having the wrong optimization on the compiler can cause such strange behavior. On the other hand, some of the microcontrollers may have well been damaged due to static, out of tolerance voltages, etc. Thus, I believe some may be in good working order.

Is there a way to destroy a microcontroller pin?

With a typical internal resistance of only 25 ohms per pin, a dead short to ground can allow as much as 200mA of current to flow, more than enough to destroy the microcontroller pin. The Ruggeduino protects against this destruction by putting a 30mA resettable fuse (PTC) in series with every I/O pin.

When does an errata occur in a microcontroller?

The same applies to the microcontrollers. Mistakes do happen in IC design and manufacturing processes that may result in a microcontroller behaving differently than stated in the datasheet. An errata is a document that informs hardware designers of the faults that have been discovered in a specific microcontroller.

Why does my MicroPython crash every few hours?

In my testing of the resilient MQTT driver it ran for days near the limit of WiFi range without rebooting. This was on the reference hardware running from a USB power bank. By contrast my attempts to get anything to run on the Sonoff WiFi switch failed with numerous crashes.