Skip to content

watchdog_get_count() never decrements #1492

Open

Description

@aallan

An issue was raised on pico-feedback around the watchdog_get_count() never decrementing, see raspberrypi/pico-feedback#349. This was an issue with PlatformIO and the @earlephilhower Arduino core.

However, @JamesH65 mentioned that it is also present in the SDK, so raising here.

Activity

  1. kilograham commented on Sep 7, 2023

    @kilograham
    Contributor

    This appears to be an RP2040 erratum, which will need to be documented

  2. added this to the 1.5.2 milestone on Sep 7, 2023
  3. modified the milestones: 1.5.2, on Dec 14, 2023
  4. kilograham commented on Dec 14, 2023

    @kilograham
    Contributor

    we should fix the documentation to say it doesnt work

  5. modified the milestones: , 1.6.0 on May 19, 2024
  6. modified the milestones: 1.6.0, on Aug 4, 2024
  7. kilograham commented on Aug 9, 2024

    @kilograham
    Contributor

    This is documented in the code; happily it even works on RP2350

    (note function has a new preferred name watchdog_get_time_remaining_ms()

  8. cpottle9 commented on Apr 30, 2025

    @cpottle9

    This issue needs to be documented in other places.
    Many people do not read the SDK source code.

    Specifically in:

    • the RP2040 datasheet as an errata and additional detail in the description of the watchdog CTRL register.
    • online documentation hardware_watchdog
  9. kilograham commented on May 1, 2025

    @kilograham
    Contributor

    still needs an errata - also the old function name should probably link to the new function name in the docs (which documents the limitation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions