Skip to content

Conversation

@ChiHuaL
Copy link
Contributor

@ChiHuaL ChiHuaL commented Feb 13, 2025

The correct procedure to reload the T0 timer is:
1. Load TWDT0 register with the new value or write 1 to RST bit in T0CSR register to load the old value.
2. Wait until RST bit in T0CSR register becomes 1.
3. Wait until RST bit in T0CSR register becomes 0. The current watchdog driver misses step 2.
Fix the issue in this commit.

The correct procedure to reload the T0 timer is:
    1. Load TWDT0 register with the new value or write 1 to RST bit in
       T0CSR register to load the old value.
    2. Wait until RST bit in T0CSR register becomes 1.
    3. Wait until RST bit in T0CSR register becomes 0.
The current watchdog driver misses step 2.
Fix the issue in this commit.

Signed-off-by: Jun Lin <[email protected]>
@ChiHuaL ChiHuaL force-pushed the driver_npcx_wdt_fix_t0_timer_reload branch from f76084b to 30674d8 Compare February 13, 2025 08:34
@ChiHuaL ChiHuaL marked this pull request as ready for review February 14, 2025 02:33
@fabiobaltieri fabiobaltieri added this to the v4.1.0 milestone Feb 14, 2025
@kartben kartben added the bug The issue is a bug, or the PR is fixing a bug label Feb 15, 2025
@kartben kartben merged commit 6c3b617 into zephyrproject-rtos:main Feb 18, 2025
29 checks passed
@alvsun alvsun added the backport v3.7-branch Request backport to the v3.7-branch label May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Watchdog Watchdog backport v3.7-branch Request backport to the v3.7-branch bug The issue is a bug, or the PR is fixing a bug platform: Nuvoton NPCX Nuvoton NPCX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants