ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
Loading...
Searching...
No Matches
error.h File Reference

ICARUS OS Error Handling Interface. More...

#include <stdint.h>
#include "cmsis_gcc.h"

Go to the source code of this file.

Functions

void Error_Handler (void)
 System error handler for unrecoverable faults.
 

Detailed Description

ICARUS OS Error Handling Interface.

Version
0.1.0

Provides system-wide error handling declarations. The Error_Handler is called for unrecoverable faults.

Author
Souham Biswas
Date
2025

Definition in file error.h.

Function Documentation

◆ Error_Handler()

void Error_Handler ( void  )

System error handler for unrecoverable faults.

Called when a fatal error is detected. Disables interrupts and enters an infinite loop. Does not return.

Warning
This function never returns!

Called when a fatal error is detected that cannot be recovered. Disables all interrupts and enters an infinite loop to prevent further system corruption.

Typical Callers:
  • HAL initialization failures
  • Clock configuration errors
  • Peripheral initialization failures
  • Stack overflow detection (if enabled)
Warning
This function never returns!
All interrupts are disabled - watchdog will not be serviced
Note
For debugging, set a breakpoint on this function to catch errors
Consider adding LED blink pattern for field diagnosis

Definition at line 50 of file error.c.

Referenced by HAL_I2C_MspInit(), HAL_RTC_MspInit(), HAL_SPI_MspInit(), MX_I2C2_Init(), MX_RTC_Init(), MX_SPI4_Init(), MX_TIM1_Init(), and SystemClock_Config().