From f3d1ff500b9b8e0a334e98f0eeb98e4791662d9c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 2 Jul 2021 15:11:35 +0000 Subject: [PATCH] Fixed bug #1164. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14583 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c | 4 ++-- readme.txt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c b/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c index 3bd82a38e..27de5ada6 100644 --- a/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c +++ b/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c @@ -385,7 +385,7 @@ #define ST_NUMBER STM32_TIM21_NUMBER #define ST_CLOCK_SRC STM32_TIMCLK2 #define ST_ENABLE_CLOCK() rccEnableTIM21(true) -#define ST_ENABLE_STOP() DBGMCU->APB1FZ |= DBGMCU_APB2_FZ_DBG_TIM21_STOP +#define ST_ENABLE_STOP() DBGMCU->APB2FZ |= DBGMCU_APB2_FZ_DBG_TIM21_STOP #elif STM32_ST_USE_TIMER == 22 @@ -401,7 +401,7 @@ #define ST_NUMBER STM32_TIM22_NUMBER #define ST_CLOCK_SRC STM32_TIMCLK2 #define ST_ENABLE_CLOCK() rccEnableTIM22(true) -#define ST_ENABLE_STOP() DBGMCU->APB1FZ |= DBGMCU_APB2_FZ_DBG_TIM21_STOP +#define ST_ENABLE_STOP() DBGMCU->APB2FZ |= DBGMCU_APB2_FZ_DBG_TIM21_STOP #else #error "STM32_ST_USE_TIMER specifies an unsupported timer" diff --git a/readme.txt b/readme.txt index 22aa794ea..7114080ce 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,8 @@ ***************************************************************************** *** Next *** +- FIX: Fixed invalid STM32 TIM21/TIM22 debug freeze setting (bug #1164) + (backported to 21.6.1)(backported to 20.3.4). - FIX: Fixed Missing RTC APB enable on STM32G0xx (bug #1163) (backported to 21.6.1) - FIX: Fixed I2S-related definitions missing in STM32F3xx registry (bug #1162)