feat: CAN bus watchdog and error recovery (Issue #694) #708
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-firmware/issue-694-can-watchdog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
CAN1_SCE_IRQHandler: detects bus-off/error-passive/error-warning from ESR registercan_driver_watchdog_tick(): polls ESR each main-loop cycle, auto-restarts afterCAN_WDOG_RESTART_MS(200 ms)can_wdog_t: tracks restart/busoff/errpassive/errwarn counts, TEC, REC0x8F(JLINK_TLM_CAN_WDOG) sent at 1 Hz viajlink_send_can_wdog_tlm()busoff_pendingflag fixes t=0 sentinel ambiguity in restart logictest/test_can_watchdog.c, all passTest plan
gcc -I include -I test/stubs -DTEST_HOST -Wall -Wextra -Werror -o /tmp/test_can_watchdog test/test_can_watchdog.c && /tmp/test_can_watchdog→ 23 passed, 0 failed🤖 Generated with Claude Code
f600aa98e7tof59bc9931e