Embedded Developer

Case File: The Controller That Restarts Itself

The finale: a microcontroller records why it last restarted, and a log of causes and uptimes tells a story that no single crash report can. Review a reset log: count the runs by cause, detect a boot loop (three runs in a row that each lasted less than 60 seconds), flag brownouts, watchdog resets and too many restarts (more than 20 percent of the runs not started by power on), give the longest and the mean uptime, and say ok when the log is clean, with the limits exactly right. Run it on logs that you cannot see. The log is generated for you alone.

50 min

Case File: The Controller That Restarts Itself

The finale: a microcontroller records why it last restarted, and a log of causes and uptimes tells a story that no single crash report can. Review a reset log: count the runs by cause, detect a boot loop (three runs in a row that each lasted less than 60 seconds), flag brownouts, watchdog resets and too many restarts (more than 20 percent of the runs not started by power on), give the longest and the mean uptime, and say ok when the log is clean, with the limits exactly right. Run it on logs that you cannot see. The log is generated for you alone.

In this lesson:

  • watchdog
  • brownout
  • reliability
  • reset
  • python
  • case-file

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans