提交 | 用户 | age
|
a00c2a
|
1 |
// File: STM32F030_070.dbgconf
|
Q |
2 |
// Version: 1.0.0
|
|
3 |
// Note: refer to STM32F030x4/x6/x8/xC, STM32F070x6/xB Reference manual (RM0360)
|
|
4 |
// refer to STM32F030x4 STM32F030x6, STM32F030x8 STM32F030xC datasheet
|
|
5 |
// STM32F070CB STM32F070RB, STM32F070C6 STM32F070F6 datasheet
|
|
6 |
|
|
7 |
// <<< Use Configuration Wizard in Context Menu >>>
|
|
8 |
|
|
9 |
// <h> Debug MCU configuration register (DBGMCU_CR)
|
|
10 |
// <o.2> DBG_STANDBY <i> Debug standby mode
|
|
11 |
// <o.1> DBG_STOP <i> Debug stop mode
|
|
12 |
// </h>
|
|
13 |
DbgMCU_CR = 0x00000006;
|
|
14 |
|
|
15 |
// <h> Debug MCU APB1 freeze register (DBGMCU_APB1_FZ)
|
|
16 |
// <i> Reserved bits must be kept at reset value
|
|
17 |
// <o.21> DBG_I2C1_TIMEOUT <i> I2C1 SMBUS timeout mode stopped when core is halted
|
|
18 |
// <o.12> DBG_IWDG_STOP <i> Independent watchdog stopped when core is halted
|
|
19 |
// <o.11> DBG_WWDG_STOP <i> Window watchdog stopped when core is halted
|
|
20 |
// <o.10> DBG_RTC_STOP <i> RTC stopped when core is halted
|
|
21 |
// <o.8> DBG_TIM14_STOP <i> TIM14 counter stopped when core is halted
|
|
22 |
// <o.5> DBG_TIM7_STOP <i> TIM7 counter stopped when core is halted
|
|
23 |
// <o.4> DBG_TIM6_STOP <i> TIM6 counter stopped when core is halted
|
|
24 |
// <o.1> DBG_TIM3_STOP <i> TIM3 counter stopped when core is halted
|
|
25 |
// </h>
|
|
26 |
DbgMCU_APB1_Fz = 0x00000000;
|
|
27 |
|
|
28 |
// <h> Debug MCU APB2 freeze register (DBGMCU_APB2_FZ)
|
|
29 |
// <i> Reserved bits must be kept at reset value
|
|
30 |
// <o.18> DBG_TIM17_STOP <i> TIM17 counter stopped when core is halted
|
|
31 |
// <o.17> DBG_TIM16_STOP <i> TIM16 counter stopped when core is halted
|
|
32 |
// <o.16> DBG_TIM15_STOP <i> TIM15 counter stopped when core is halted
|
|
33 |
// <o.11> DBG_TIM1_STOP <i> TIM1 counter stopped when core is halted
|
|
34 |
// </h>
|
|
35 |
DbgMCU_APB2_Fz = 0x00000000;
|
|
36 |
|
|
37 |
// <h> Flash Download Options
|
|
38 |
// <o.0> Option Byte Loading <i> Launch the Option Byte Loading after a Flash Download by setting the OBL_LAUNCH bit (causes a reset)
|
|
39 |
// </h>
|
|
40 |
DoOptionByteLoading = 0x00000000;
|
|
41 |
|
|
42 |
// <<< end of configuration section >>>
|