Repository navigation
Description
Status
Software side: ✅ proven working — see Teensy 4.0 verification in this session.
Hardware side: ❌ blocked on the specific Teensy 4.1 board used in development.
The unified fl::Watchdog + FL_WATCHDOG_AUTO() + bare-register WDOG3 stack is correct and was end-to-end verified on real iMXRT1062 silicon — but on a Teensy 4.0, not the 4.1 originally targeted.
What was proven
On Teensy 4.0 (AutoResearch.ino + commit 5955faf8f), captured boot output:
[FastLED.watchdog] SRC_SRSR = 0x1
[FastLED.watchdog] POR (power-on reset)
[FastLED.watchdog] no CrashReport from previous boot
_build.cpp.hpp(20): WARN: [FastLED.watchdog] armed via FL_WATCHDOG_AUTO()
[GPIO BASELINE TEST] ...
RESULT: {\"type\":\"status\",\"ready\":true,\"uptimeMs\":19176}
Watchdog::begin()→mxrt1062PrintBootDiagnosticOnce()emits the SRC_SRSR bit decode + CrashReport status from the platform impl (no platform#ifdefin user code)FL_WATCHDOG_AUTO()lazily arms WDOG3 and feeds it every loop iteration- uptime 19 s > WDT timeout 15 s ⇒ loop is feeding the dog correctly through the bare-register path
- Same iMXRT1062 chip as the Teensy 4.1, so the bare-register WDOG3 impl, the boot-diagnostic helper, and the unified API are all silicon-validated for this MCU family
Why the 4.1 verification couldn't complete
The specific Teensy 4.1 board on the dev bench is coated in silicone RTV for a separate project. Observed symptoms:
| Symptom | Probable cause |
|---|---|
| Repeated HalfKay re-enumeration every ~6 s | PROGRAM button mechanically pressed by cured RTV, or its switch contacts shorted |
Programming...error writing to Teensy mid-write |
USB D+/D- signal integrity affected by RTV near connector, or USB cable / hub instability |
Device Descriptor Request Failed on some ports |
Same — USB enumeration interrupted |
| Successful flash + boot then USB drop after ~6 s | Possibly the same intermittent USB issue, possibly the firmware succeeded but the next forced HalfKay cycle dropped it |
When the device DID flash successfully and boot, a 12 KB serial buffer captured loop-time output showing the firmware running stably (no WDT reset cycles), but the FIRST 256 bytes of the USB CDC TX buffer (which contained the [FastLED.watchdog] SRC_SRSR ... lines) had already drained before the host could open COM19.
Follow-up actions
- Clean RTV from PROGRAM button area on the Teensy 4.1, OR substitute a clean Teensy 4.1
- Re-run the AutoResearch flash + boot-output capture sequence and confirm the same
[FastLED.watchdog]boot output is emitted on the 4.1 specifically - (Optional, but valuable) Bump the Teensy USB CDC TX buffer in
AutoResearch::init_serial_buffers()for Teensy 4 so boot diagnostics don't get truncated by the 256-byte default - (Optional) Soft-reboot test path: have
Watchdog::reboot()trigger a controlled WDT timeout and verify the prior-boot[FastLED.watchdog]print on the next boot saysWATCHDOG (WDOG3_RST)
References
- Working branch:
feat/autoresearch-use-unified-watchdog(commits84fa89132+5955faf8f) - Unified API: Unified cross-platform Watchdog Timer API via FastLED.watchdog() singleton #2731, feat(watchdog): Phase 1 — unified fl::Watchdog API + host/stub/ESP32 impls #2738, feat(watchdog): real per-platform hardware impls for ALL platforms (#2731 Phase 2) #2745, feat(watchdog): non-allocating reset/crash classification API + ScopedWatchdog #2756
- Bare-register WDOG3: feat(watchdog): Teensy 4 bare-register WDOG3 impl, hardware-verified #2753 (merged)
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
docs(rx/flexio): FlexIO RX backend docs + enum-comment refresh (Phase…