Skip to content

Watchdog Reset Caused by Slow SD Card or Removal (Possibly Intermittent connection) During Flight #31108

@aero11223344

Description

@aero11223344

## Bug report
When the SD card becomes slow or stops logging during flight, or on ground, removed and reinserted while the vehicle is armed, the system reports:

AP_Logger: Stuck Thread (Write)
Internal Error: 0x800

Following these errors, the CPU load increases sharply (~70% above) triggering a watchdog reset. This can be seen in the log as:

WDG: T6 SL0 FL0 FT0 FA0 FTP0 FLR0 FICSR0 MM0 MC0 I

This causes the flight controller to reboot, which results in a loss of control and a crash if the aircraft is airborne.

The attached log is a sample of what has been seen. Here the bug is simulated by frequently inserting and removing the card and the error msg with watchdog reset activity appears.

Version
4.0.5, 4.4.4, 4.5.5, 4.6.2

Platform
[ ] Copter

Airframe type
hexarotor

Hardware type
Pixhawk4

Logs
https://drive.google.com/file/d/1rkvh2qtm10GrCSpO920fzp4OTniBobGF/view?usp=drive_link

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions