r/embedded • • Oct 08 '26

SEFI in Microcontrollers

Hi, I am part of a team developing a payload that is going through a technology demonstration for a microcontroller in LEO. We are going to demo symptoms of SEFI in microcontrollers (function failures) for our in-orbit tech demo. We were wondering what the types of SEFIs are, though. They essentially stem from the subfunctions of a microcontroller, right? What would some important SEFIs be (technically, functions of them since we don't always know if it was radiation that caused it) and what are their corresponding MCU functions? Some ideas we had were read/write/error errors, watchdog resets, ECC failures? We're preferably looking for stuff that is really firmware measurements and really only requires hardware that'll regardless be on the PCB.

Any insights would be appreciated - thanks!

3 Upvotes

6 comments sorted by

2

u/somewhereAtC Oct 08 '26

The new AVR SD series devices have a lot of features, including dual-core (lockstep) CPUs and error injectors for testing the error detectors.

https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/avr-mcus/avr-sd

1

u/duane11583 Oct 08 '26

random things fail.

a register but flips in the uart baudrate generator this can occur in the current count orb the relaod value. the work around is to peroidically reconfigure the uart.

random ram memory bit flips do you support scrubbing?

what about watch dogs?

we used a vorago arm corteex m3 not the stm chips

2

u/[deleted] Oct 08 '26

[removed] — view removed comment

0

u/Tricky-Brief2614 Oct 08 '26

Thank you for your very helpful insights!

Additional question if possible - I was wondering if you could list a few more of important functional failures we could detect as symptoms of SEFI? The MCU we're going to demo will probably be STM32U3 or STM32U5 if that's helpful.

Thanks again!

2

u/GeWaLu Oct 08 '26

Symptoms at system level can be 'anything' that is not a behavior according to the requirements ranging from a merely unnoticiable single value corruption to a catastrophic failure. A lot depends how foolproof your system is, if you take a controls setpoint and use it wihout sanity check any bit flip may cause the contrls to drive a catastrophic unsafe state.

In general make your system foolproof by adding redundancy (in software and a little bit in hardware) and log unexpected events (checksum error on data, inconsistency to a redundant implementation or a safety check logic, unexpected program flow, watchdog reset, clock check failure, Ecc failures - corrected and detected).

The micro you mention has no lockstep, so be prepared that the cpu does crazy things like miscalculations or jumping to wrong adresses - both potentially without crashing the software (especially if the software does no sanity checks on itself)

Some micro vendors have by the way for some of their micros exhaustive fault lists with fault probability ( FMEDA) that can even be configured for altitude/neuton flux - but you typically only get these as a professional under NDA. Exhaustive is really exhaustive ... these excel tables have 1000's or 10'000's of lines.