Sleep Wake Bug Hunt

Fix devices that miss wakeups, hang on wake, or lose state after deep sleep: classify first as a lost wakeup (event lands between the flag check and sleep; check with interrupts masked and sleep on WFI), a wake-source fault (wrong edge or level, flag not cleared, instant re-wake loop) or a retention fault (RAM, registers and clocks that did not survive that mode), allow oscillator, PLL and external chip start-up times, reproduce with the debugger detached using spare GPIOs and a logic analyser, and record reset reason and wake source first after wake. Use for "it sometimes never wakes up", "works until I unplug the debugger", "peripheral dead after standby", "wakes and immediately sleeps again". Not for sleep current (sleep-current-hunt), generic method (debugging), watchdog resets (watchdog-design) or hard faults (hard-fault-triage).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 9fb9f7bfc0

Frequently asked questions

npx get-skill add greenblacked/sleep-wake-bug-hunt