]> begriffs open source - cmsis-driver-validation/blob - Boards/Keil/MCBSTM32F200/STM32F2xx_TP.ini
Update GitHub Actions runner to ubuntu-22.04 (#18)
[cmsis-driver-validation] / Boards / Keil / MCBSTM32F200 / STM32F2xx_TP.ini
1 /******************************************************************************/
2 /* STM32F2xx_TP.ini: STM32 Debugger Initialization File                       */
3 /******************************************************************************/
4 // <<< Use Configuration Wizard in Context Menu >>>                           // 
5 /******************************************************************************/
6 /* This file is part of the uVision/ARM development tools.                    */
7 /* Copyright (c) 2005-2015 Keil Software. All rights reserved.                */
8 /* This software may only be used under the terms of a valid, current,        */
9 /* end user licence from KEIL for a compatible version of KEIL software       */
10 /* development tools. Nothing else gives you the right to use this software.  */
11 /******************************************************************************/
12
13 FUNC void DebugSetup (void) {
14   _WDWORD(0x40023830, _RDWORD(0x40023830) | 0x00000010); // RCC_AHB1ENR:   IO port E clock enable
15   _WDWORD(0x40021000, 0x00002AA0);                       // GPIOE_MODER:   PE2..PE6 = Alternate function mode
16   _WDWORD(0x40021008, 0x00003FF0);                       // GPIOE_OSPEEDR: PE2..PE6 = 100 MHz speed
17   _WDWORD(0x4002100C, 0x00000000);                       // GPIOE_PUPDR:   PE2..PE6 = No Pull-up/Pull-down
18   _WDWORD(0x40021020, 0x00000000);                       // GPIOE_AFRL:    PE2..PE6 = AF0
19
20 // <h> Debug MCU Configuration
21 //   <o1.0>    DBG_SLEEP     <i> Debug Sleep Mode
22 //   <o1.1>    DBG_STOP      <i> Debug Stop Mode
23 //   <o1.2>    DBG_STANDBY   <i> Debug Standby Mode
24 //   <o1.5>    TRACE_IOEN    <i> Trace I/O Enable 
25 //   <o1.6..7> TRACE_MODE    <i> Trace Mode
26 //             <0=> Asynchronous
27 //             <1=> Synchronous: TRACEDATA Size 1
28 //             <2=> Synchronous: TRACEDATA Size 2
29 //             <3=> Synchronous: TRACEDATA Size 4
30 // </h>
31   _WDWORD(0xE0042004, 0x00000027);  // DBGMCU_CR
32
33 // <h> Debug MCU APB1 Freeze
34 //   <o1.0>    DBG_TIM2_STOP  <i> Timer 2 Stopped when Core is halted
35 //   <o1.1>    DBG_TIM3_STOP  <i> Timer 3 Stopped when Core is halted
36 //   <o1.2>    DBG_TIM4_STOP  <i> Timer 4 Stopped when Core is halted
37 //   <o1.3>    DBG_TIM5_STOP  <i> Timer 5 Stopped when Core is halted
38 //   <o1.4>    DBG_TIM6_STOP  <i> Timer 6 Stopped when Core is halted
39 //   <o1.5>    DBG_TIM7_STOP  <i> Timer 7 Stopped when Core is halted
40 //   <o1.6>    DBG_TIM12_STOP <i> Timer 12 Stopped when Core is halted
41 //   <o1.7>    DBG_TIM13_STOP <i> Timer 13 Stopped when Core is halted
42 //   <o1.8>    DBG_TIM14_STOP <i> Timer 14 Stopped when Core is halted
43 //   <o1.10>   DBG_RTC_STOP   <i> RTC Stopped when Core is halted
44 //   <o1.11>   DBG_WWDG_STOP  <i> Window Watchdog Stopped when Core is halted
45 //   <o1.12>   DBG_IWDG_STOP  <i> Independent Watchdog Stopped when Core is halted
46 //   <o1.21>   DBG_I2C1_SMBUS_TIMEOUT <i> I2C1 SMBUS Timeout Mode Stopped when Core is halted
47 //   <o1.22>   DBG_I2C2_SMBUS_TIMEOUT <i> I2C2 SMBUS Timeout Mode Stopped when Core is halted
48 //   <o1.23>   DBG_I2C3_SMBUS_TIMEOUT <i> I2C3 SMBUS Timeout Mode Stopped when Core is halted
49 //   <o1.25>   DBG_CAN1_STOP  <i> CAN1 Stopped when Core is halted
50 //   <o1.26>   DBG_CAN2_STOP  <i> CAN2 Stopped when Core is halted
51 // </h>
52   _WDWORD(0xE0042008, 0x00000000);  // DBGMCU_APB1_FZ
53
54 // <h> Debug MCU APB2 Freeze
55 //   <o1.0>    DBG_TIM1_STOP  <i> Timer 1 Stopped when Core is halted
56 //   <o1.1>    DBG_TIM8_STOP  <i> Timer 8 Stopped when Core is halted
57 //   <o1.16>   DBG_TIM9_STOP  <i> Timer 9 Stopped when Core is halted
58 //   <o1.17>   DBG_TIM10_STOP <i> Timer 10 Stopped when Core is halted
59 //   <o1.18>   DBG_TIM11_STOP <i> Timer 11 Stopped when Core is halted
60 // </h>
61   _WDWORD(0xE004200C, 0x00000000);  // DBGMCU_APB2_FZ
62
63 }
64
65 // Executed after reset via uVision's 'Reset'-button
66 FUNC void OnResetExec (void) {
67   DebugSetup();
68 }
69
70 DebugSetup();                       // Debugger Setup