STM32 watchdog and fault recovery handler #565

Closed
opened 2026-03-14 11:41:54 -04:00 by sl-jetson · 0 comments
Collaborator

Implement comprehensive fault detection and recovery on STM32.

Requirements:

  • IWDG watchdog with configurable timeout (default 2s)
  • HardFault handler with register dump over USB CDC
  • Stack overflow detection via MPU guard region
  • Brownout detection and safe shutdown sequence
  • Persistent fault log in flash (last 8 faults with timestamp)
  • JLINK telemetry for fault status (TLM_FAULT_LOG)
  • Auto-recovery: soft reset after non-critical faults
  • LED blink codes for fault types

Deliverables:

  • src/fault_handler.c/h
  • Flash fault log integration
  • JLINK protocol additions

Assigned to: sl-firmware

Implement comprehensive fault detection and recovery on STM32. **Requirements:** - IWDG watchdog with configurable timeout (default 2s) - HardFault handler with register dump over USB CDC - Stack overflow detection via MPU guard region - Brownout detection and safe shutdown sequence - Persistent fault log in flash (last 8 faults with timestamp) - JLINK telemetry for fault status (TLM_FAULT_LOG) - Auto-recovery: soft reset after non-critical faults - LED blink codes for fault types **Deliverables:** - src/fault_handler.c/h - Flash fault log integration - JLINK protocol additions Assigned to: sl-firmware
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seb/saltylab-firmware#565
No description provided.