Commit 309a17c 1 parent 7d533b3 commit 309a17c Copy full SHA for 309a17c
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ static bool at32f43_mass_erase(target_s *target);
96
96
*/
97
97
#define AT32F43x_DBGMCU_BASE 0xe0042000U
98
98
#define AT32F43x_DBGMCU_IDCODE (AT32F43x_DBGMCU_BASE + 0x00U)
99
- #define AT32F43x_DBGMCU_CTRL (AT32F43x_DBGMCU_BASE + 0x40U )
100
- #define AT32F43x_DBGMCU_APB1_PAUSE (AT32F43x_DBGMCU_BASE + 0x80U )
99
+ #define AT32F43x_DBGMCU_CTRL (AT32F43x_DBGMCU_BASE + 0x04U )
100
+ #define AT32F43x_DBGMCU_APB1_PAUSE (AT32F43x_DBGMCU_BASE + 0x08U )
101
101
#define AT32F43x_DBGMCU_APB2_PAUSE (AT32F43x_DBGMCU_BASE + 0x0cU)
102
102
#define AT32F43x_DBGMCU_SER_ID (AT32F43x_DBGMCU_BASE + 0x20U)
103
103
@@ -164,7 +164,7 @@ static void at32f43_configure_dbgmcu(target_s *target)
164
164
const uint32_t dbgmcu_apb1_pause_mask = AT32F43x_DBGMCU_APB1_PAUSE_WWDT | AT32F43x_DBGMCU_APB1_PAUSE_WDT ;
165
165
const uint32_t dbgmcu_apb1_pause = target_mem32_read32 (target , AT32F43x_DBGMCU_APB1_PAUSE );
166
166
if ((dbgmcu_apb1_pause & dbgmcu_apb1_pause_mask ) != dbgmcu_apb1_pause_mask )
167
- target_mem32_write32 (target , AT32F43x_DBGMCU_APB1_PAUSE , dbgmcu_apb1_pause & dbgmcu_apb1_pause_mask );
167
+ target_mem32_write32 (target , AT32F43x_DBGMCU_APB1_PAUSE , dbgmcu_apb1_pause | dbgmcu_apb1_pause_mask );
168
168
}
169
169
170
170
static bool at32f43_attach (target_s * target )
You can’t perform that action at this time.
0 commit comments