From 5e8c8cae10423c9f42bf51fb83c3e982caf584da Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Thu, 28 Jun 2018 16:31:34 +0200 Subject: [PATCH] Removed debug bits for F4/F7 target, same as all other MCUs now --- src/target/stm32f4.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/target/stm32f4.c b/src/target/stm32f4.c index 3e90bac..acb4fc8 100644 --- a/src/target/stm32f4.c +++ b/src/target/stm32f4.c @@ -101,15 +101,6 @@ static int stm32f4_flash_write(struct target_flash *f, #define DBGMCU_IDCODE 0xE0042000 #define ARM_CPUID 0xE000ED00 -#define DBGMCU_CR 0xE0042004 -#define DBG_STANDBY (1 << 0) -#define DBG_STOP (1 << 1) -#define DBG_SLEEP (1 << 2) - -#define DBGMCU_APB1_FZ 0xE0042008 -#define DBG_WWDG_STOP (1 << 11) -#define DBG_IWDG_STOP (1 << 12) - #define AXIM_BASE 0x8000000 #define ITCM_BASE 0x0200000 @@ -280,7 +271,6 @@ static bool stm32f4_attach(target *t) default: return false; } - target_mem_write32(t, DBGMCU_CR, DBG_STANDBY| DBG_STOP | DBG_SLEEP); bool use_dual_bank = false; target_mem_map_free(t); uint32_t flashsize = target_mem_read32(t, flashsize_base) & 0xffff;