-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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: driver: watchdog: Sample fails on disco_l475_iot1 #32376
Comments
Further debugging shows that wdt_install_timeout() returrns -EINVAL here, on line 112: zephyr/samples/drivers/watchdog/src/main.c Lines 112 to 120 in b9fdab4
|
In the driver, at the attempt of setting timeout to 100ms, here the calculated timeout is set to 26214us: zephyr/drivers/watchdog/wdt_wwdg_stm32.c Line 192 in b275fec
Is this the max timeout achievable with this MCU? Or is there a calculation error somewhere? |
When using the IWDG, the sample works with the timeout values used in the sample. This opens up for two possible workarounds:
|
@hwilmers Thanks for reporting. Actually the wwdg test should run with APB bu clock tunning: I'll modify so this is available even when run with west. |
A different configuration is applied when running this test using west or using twister. Both will use the disco_l475_iot1 overlay, but the extra config for clock bus tunning is applied only when using twister and samples is failed when run with west. Move this extra config from sample.yaml to board .conf file so it is applied in both cases. Fixes zephyrproject-rtos#32376 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
A different configuration is applied when running this test using west or using twister. Both will use the disco_l475_iot1 overlay, but the extra config for clock bus tunning is applied only when using twister and samples is failed when run with west. Move this extra config from sample.yaml to board .conf file so it is applied in both cases. Fixes #32376 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
A different configuration is applied when running this test using west or using twister. Both will use the disco_l475_iot1 overlay, but the extra config for clock bus tunning is applied only when using twister and samples is failed when run with west. Move this extra config from sample.yaml to board .conf file so it is applied in both cases. Fixes #32376 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
A different configuration is applied when running this test using west or using twister. Both will use the disco_l475_iot1 overlay, but the extra config for clock bus tunning is applied only when using twister and samples is failed when run with west. Move this extra config from sample.yaml to board .conf file so it is applied in both cases. Fixes #32376 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Describe the bug
The sample app samples/driver/watchdog fails at runtime, sending an error message.
Tested using Zephyr 2.5.0 on disco_l475_iot1.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The expected behaviour of the app is to repeat following sequence:
Impact
The watchdog is not functional.
Logs and console output
Console log:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: