-
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
soc: stm32l1: Add support for STM32 IWDG #22125
Conversation
The driver for STM32's independent watchdog already exists and is compatible with the stm32l1 SoC. Enable the independent watchdog for the stm32l1 series for use with this driver. Signed-off-by: Kwon Tae-young <[email protected]>
@KwonTae-young thanks for this addition. |
@erwango |
Enable the independent watchdog on the nucleo_l152re Signed-off-by: Kwon Tae-young <[email protected]>
@erwango But there is one strange thing.
Commenting out diff --git a/samples/drivers/watchdog/src/main.c b/samples/drivers/watchdog/src/main.c
index 81e5348ad1..136ff3b40d 100644
--- a/samples/drivers/watchdog/src/main.c
+++ b/samples/drivers/watchdog/src/main.c
@@ -86,7 +86,7 @@ void main(void)
for (int i = 0; i < WDT_FEED_TRIES; ++i) {
printk("Feeding watchdog...\n");
wdt_feed(wdt, wdt_channel_id);
- k_sleep(K_MSEC(50));
+ //k_sleep(K_MSEC(50));
}
/* Waiting for the SoC reset. */
On the /*
* Copyright (c) 2012-2014 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <sys/printk.h>
void main(void)
{
printk("%s() %dLine\n\n", __func__, __LINE__);
k_sleep(50);
printk("Hello World! %s\n", CONFIG_BOARD);
}
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested ok on nucleo_l152re
@KwonTae-young, the issue you describe seem similar to #22078. |
This PR adds support for
IWDG
in theSTM32L1
series.The test was tested on the
STM32L151CBT
.