Infinite loop due to MCU function register failure

This post describes an infinite loop due to MCU function register failure.

Embedded products may be subjected to harsh operating environments and have long durability periods. As a result, there are programs that fail in the MCU function and go into an infinite loop, as shown below. For products that support functional safety or products for which market claim analysis is desired, it is recommended that the program be designed for the case where the MCU function fails.

Example1 : Failure of ADC End status in ADC Status register

The HAL ADC API may not have a Timeout function. Also note that some codes loop by checking Status on Reset.

OSS-ECAL English
error: Content is protected !!