From 79056177339c3ccdd2a5d1c90451912142d87a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20G=C5=82owi=C5=84ski?= Date: Thu, 21 Sep 2023 17:00:52 +0200 Subject: [PATCH] stm32l4x6: Enable watchdog independently of NDEBUG JIRA: DEND-32 --- hal/armv7m/stm32/l4/stm32l4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/armv7m/stm32/l4/stm32l4.c b/hal/armv7m/stm32/l4/stm32l4.c index ba55b834..c468b6d5 100644 --- a/hal/armv7m/stm32/l4/stm32l4.c +++ b/hal/armv7m/stm32/l4/stm32l4.c @@ -436,7 +436,7 @@ void _stm32_switchFlashBank(int bank) void _stm32_wdgReload(void) { -#if defined(WATCHDOG) && defined(NDEBUG) +#if defined(WATCHDOG) *(stm32_common.iwdg + iwdg_kr) = 0xaaaa; #endif } @@ -485,7 +485,7 @@ void _stm32_init(void) hal_cpuDataMemoryBarrier(); -#if defined(WATCHDOG) && defined(NDEBUG) +#if defined(WATCHDOG) /* Init watchdog */ /* Enable write access to IWDG */ *(stm32_common.iwdg + iwdg_kr) = 0x5555;