diff --git a/src/target/stm32h5.c b/src/target/stm32h5.c index b3728c67c40..b49d8c811cc 100644 --- a/src/target/stm32h5.c +++ b/src/target/stm32h5.c @@ -98,7 +98,11 @@ #define STM32H5_FLASH_BANK_MASK 0x80000000U #define STM32H5_FLASH_SECTOR_COUNT_MASK 0x000000ffU -#define STM32H5_DBGMCU_BASE 0xe0044000 +/* + * Both on H56x and H503 DBGMCU is visible via AP0 on Debug APB at 0xe0044000, + * and via AP1 by the processor at 0x44024000 alias. + */ +#define STM32H5_DBGMCU_BASE 0x44024000 #define STM32H5_DBGMCU_IDCODE (STM32H5_DBGMCU_BASE + 0x00U) #define STM32H5_DBGMCU_CONFIG (STM32H5_DBGMCU_BASE + 0x04U) #define STM32H5_DBGMCU_APB1LFREEZE (STM32H5_DBGMCU_BASE + 0x08U)