-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
samples: tests: watchdog: samples/subsys/task_wdt breaks nrf platforms performace #33509
Comments
Thanks for reporting. I was trying to reproduce this on Do you have any recommendation for a board that's easy to get up and running and less expensive than the nRF9160 DK? |
Quick status update on this. I can now reproduce the issue with the nRF52840-DK. There are two different issues:
If we set So I'm still trying to figure out what the root cause is and I need to look into implementation details of nRF watchdog hardware and reset behavior. If you have any hints, let me know. |
I think in fact I had the same issue with samples/driver/watchdog but I cannot find it reported anywhere. I will check what is the current status of it (think it was not fixed) |
I did some further investigations and I think this is not a task watchdog issue, but a problem with the hardware watchdog driver. Without The issue that the device can't be flashed anymore only happens if the hardware watchdog timeout is set to something around 100 ms or below. That's why the watchdog driver sample works fine. If we reduce the timeout to 100 ms in the following line we get the same issue with
@PerMac can you confirm that's what you were experiencing before? I don't have a solution for the watchdog driver, yet. Above mentioned PR #35475 fixes a different issue I discovered during testing. We could disable the hardware watchdog for Nordic chips in this sample as a preliminary workaround so that twister is not interrupted anymore. Do you think that makes sense or should we keep this open until we find a fix for the hardware watchdog driver? |
Enable the option to pause the watchdog if the MCU is halted by a debugger. This fixes an issue with some Nordic MCUs (see zephyrproject-rtos#33509) where the board could not be flashed anymore if a short watchdog timeout (<100 ms) was used. Signed-off-by: Martin Jäger <[email protected]>
Enable the option to pause the fallback hardware watchdog if the MCU is halted by a debugger. This fixes issue zephyrproject-rtos#33509 where some boards with Nordic MCUs could not be flashed anymore after using the task watchdog sample. Signed-off-by: Martin Jäger <[email protected]>
Ok, I think I found a fix now. Please ignore my previous comment regarding how to proceed and have a look at the PR to see if it provides a suitable solution. |
Enable the option to pause the watchdog if the MCU is halted by a debugger. This fixes an issue with some Nordic MCUs (see #33509) where the board could not be flashed anymore if a short watchdog timeout (<100 ms) was used. Signed-off-by: Martin Jäger <[email protected]>
Enable the option to pause the fallback hardware watchdog if the MCU is halted by a debugger. This fixes issue #33509 where some boards with Nordic MCUs could not be flashed anymore after using the task watchdog sample. Signed-off-by: Martin Jäger <[email protected]>
Enable the option to pause the watchdog if the MCU is halted by a debugger. This fixes an issue with some Nordic MCUs (see zephyrproject-rtos#33509) where the board could not be flashed anymore if a short watchdog timeout (<100 ms) was used. Signed-off-by: Martin Jäger <[email protected]> cherry-picked from 784e684 Signed-off-by: Maciej Perkowski [email protected]
Enable the option to pause the fallback hardware watchdog if the MCU is halted by a debugger. This fixes issue zephyrproject-rtos#33509 where some boards with Nordic MCUs could not be flashed anymore after using the task watchdog sample. Signed-off-by: Martin Jäger <[email protected]> cherry-picked from: a46a36a Signed-off-by: Maciej Perkowski [email protected]
Enable the option to pause the watchdog if the MCU is halted by a debugger. This fixes an issue with some Nordic MCUs (see zephyrproject-rtos#33509) where the board could not be flashed anymore if a short watchdog timeout (<100 ms) was used. Signed-off-by: Martin Jäger <[email protected]> cherry-picked from 784e684 Signed-off-by: Maciej Perkowski [email protected]
Enable the option to pause the fallback hardware watchdog if the MCU is halted by a debugger. This fixes issue zephyrproject-rtos#33509 where some boards with Nordic MCUs could not be flashed anymore after using the task watchdog sample. Signed-off-by: Martin Jäger <[email protected]> cherry-picked from: a46a36a Signed-off-by: Maciej Perkowski [email protected]
Describe the bug
The test from samples/subsys/task_wdt leaves nrf boards (for sure nrf9160, but I think nrf5340 as well) in a 'corrupted' state. All other subsequent tests will fail on that board as the watchdog sample is working in a loop and preventing proper operation of the 'corrupted' board. The board requires then manual erase.
To Reproduce
Steps to reproduce the behavior:
scripts/twister -T samples/subsys/task_wdt/ -p nrf9160dk_nrf9160 --device-testing --device-serial /dev/ttyACM0 --jobs 1 -v --inline-logs
scripts/twister -T samples/hello_world/ -p nrf9160dk_nrf9160 --device-testing --device-serial /dev/ttyACM0 --jobs 1 -v --inline-logs
Expected behavior
the sample for watchdog does not break the board operation
Impact
Very annoying as it will make subsequent tests fail in on-target CI
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: