Skip to content

Rwdt feeding doesn't seem to work #1534

@i404788

Description

@i404788

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions