Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rwdt feeding doesn't seem to work #1534

Closed
i404788 opened this issue May 3, 2024 · 1 comment · Fixed by #1645
Closed

Rwdt feeding doesn't seem to work #1534

i404788 opened this issue May 3, 2024 · 1 comment · Fixed by #1645
Assignees
Labels
bug Something isn't working status:needs-attention This should be prioritized

Comments

@i404788
Copy link
Contributor

i404788 commented May 3, 2024

Hey there,

I'm using async/embassy with some code that may panic but is allowed to restart so I thought I'd use RTC_watchdog for this (since the regular watchdog requires timergroup which is already used for embassy). but it seems like feeding the watchdog doesn't work. I used the example code with inside the loop:

        critical_section::with(|cs| match RWDT.borrow_ref_mut(cs).as_mut() {
            Some(watchdog) => {
                println!("Feeding...");
                watchdog.feed()
            }
            None => unreachable!(),
        });

I can see it feeding but it still triggers after the timeout period (2 seconds in my case). I'm using ESP32S3.

@github-project-automation github-project-automation bot moved this to Todo in esp-rs May 3, 2024
@bjoernQ bjoernQ added the bug Something isn't working label May 3, 2024
@MabezDev MabezDev added the status:needs-attention This should be prioritized label May 29, 2024
@jessebraham
Copy link
Member

Thanks for the issue, sorry for the delay in getting to it. Turned out to be a simple solution thankfully, so this should be fixed in our next release (which I'm planning to publish next week).

@jessebraham jessebraham self-assigned this May 30, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:needs-attention This should be prioritized
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants