<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dbg_STM32F2xx.ini</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/43232/dbg_stm32f2xx-ini</link><description> 
Hello, 

 
I am busy on a new project with a STM32F207. On our last projects
we used STM32F10x-Devices and for debugging purposes I used the
corresponding debug.ini file. 

 
/************************************************************************</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Dbg_STM32F2xx.ini</title><link>https://community.arm.com/thread/64306?ContentTypeID=1</link><pubDate>Sun, 22 Nov 2015 23:30:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:149cf2df-a5b8-40e7-a60b-b70116e8983e</guid><dc:creator>Fuchs Leonhard</dc:creator><description>&lt;p&gt;&lt;p&gt;
I modified Dbg_STM32F2xx.ini in a way that uVision configuration
wizzard will be activated. I hope this will work and all
configuration bits are adressed and set correctly.&lt;/p&gt;

&lt;pre&gt;
/******************************************************************************/
/* Dbg_STM32F2xx.ini: STM32F2xx Debugger Initialization File                  */
/******************************************************************************/
// &amp;lt;&amp;lt;&amp;lt; Use Configuration Wizard in Context Menu &amp;gt;&amp;gt;&amp;gt;                           //
/******************************************************************************/
/* This file is part of the uVision/ARM development tools.                    */
/* Copyright (c) 2005-2013 Keil Software. All rights reserved.                */
/* This software may only be used under the terms of a valid, current,        */
/* end user licence from KEIL for a compatible version of KEIL software       */
/* development tools. Nothing else gives you the right to use this software.  */
/******************************************************************************/
/* Modified 11/2015 by L. Fuchs, WMF Group GmbH                               */
/*    added: setup DBGMCU_APB1_FZ and DBGMCU_APB2_FZ                          */
/******************************************************************************/

FUNC void DebugSetup (void) {
// &amp;lt;h&amp;gt; Debug MCU Configuration
//   &amp;lt;o1.0&amp;gt;    DBG_SLEEP     &lt;i&gt; Debug Sleep Mode
//   &amp;lt;o1.1&amp;gt;    DBG_STOP      &lt;/i&gt; Debug Stop Mode
//   &amp;lt;o1.2&amp;gt;    DBG_STANDBY   &lt;i&gt; Debug Standby Mode
//   &amp;lt;o1.5&amp;gt;    TRACE_IOEN    &lt;/i&gt; Trace I/O Enable
//   &amp;lt;o1.6..7&amp;gt; TRACE_MODE    &lt;i&gt; Trace Mode
//             &amp;lt;0=&amp;gt; Asynchronous
//             &amp;lt;1=&amp;gt; Synchronous: TRACEDATA Size 1
//             &amp;lt;2=&amp;gt; Synchronous: TRACEDATA Size 2
//             &amp;lt;3=&amp;gt; Synchronous: TRACEDATA Size 4
// &amp;lt;/h&amp;gt;
  _WDWORD(0xE0042004, 0x00000027);  // DBGMCU_CR
// &amp;lt;h&amp;gt; Debug MCU APB1 freeze register
//   &amp;lt;o1.0&amp;gt;    DBG_TIM2_STOP &lt;/i&gt;  TIM2 counter stopped when core is halted
//   &amp;lt;o1.1&amp;gt;    DBG_TIM3_STOP &lt;i&gt;  TIM3 counter stopped when core is halted
//   &amp;lt;o1.2&amp;gt;    DBG_TIM4_STOP &lt;/i&gt;  TIM4 counter stopped when core is halted
//   &amp;lt;o1.3&amp;gt;    DBG_TIM5_STOP &lt;i&gt;  TIM5 counter stopped when core is halted
//   &amp;lt;o1.4&amp;gt;    DBG_TIM6_STOP &lt;/i&gt;  TIM6 counter stopped when core is halted
//   &amp;lt;o1.5&amp;gt;    DBG_TIM7_STOP &lt;i&gt;  TIM7 counter stopped when core is halted
//   &amp;lt;o1.6&amp;gt;    DBG_TIM12_STOP &lt;/i&gt; TIM12 counter stopped when core is halted
//   &amp;lt;o1.7&amp;gt;    DBG_TIM13_STOP &lt;i&gt; TIM13 counter stopped when core is halted
//   &amp;lt;o1.8&amp;gt;    DBG_TIM14_STOP &lt;/i&gt; TIMx14counter stopped when core is halted
//   &amp;lt;o1.10&amp;gt;   DBG_RTC_STOP &lt;i&gt;   RTC stopped when Core is halted
//   &amp;lt;o1.11&amp;gt;   DBG_WWDG_STOP &lt;/i&gt;  Debug Window Watchdog stopped when Core is halted
//   &amp;lt;o1.12&amp;gt;   DBG_IWDG_STOP &lt;i&gt;  Debug independent watchdog stopped when core is halted
//   &amp;lt;o1.21&amp;gt;   DBG_I2C1_SMBUS_TIMEOUT &lt;/i&gt;  SMBUS timeout mode stopped when Core is halted
//   &amp;lt;o1.22&amp;gt;   DBG_I2C2_SMBUS_TIMEOUT &lt;i&gt;  SMBUS timeout mode stopped when Core is halted
//   &amp;lt;o1.23&amp;gt;   DBG_I2C3_SMBUS_TIMEOUT &lt;/i&gt;  DBG_I2C3_SMBUS_TIMEOUT
//   &amp;lt;o1.25&amp;gt;   DBG_CAN1_STOP &lt;i&gt;  Debug CAN2 stopped when Core is halted
//   &amp;lt;o1.26&amp;gt;   DBG_CAN2_STOP &lt;/i&gt;  Debug CAN2 stopped when Core is halted
// &amp;lt;/h&amp;gt;
  _WDWORD(0xE0042008, 0x00001DFF);  // DBGMCU_APB1_FZ

// &amp;lt;h&amp;gt; Debug MCU APB2 Freeze register
//   &amp;lt;o1.0&amp;gt;    DBG_TIM1_STOP &lt;i&gt;   TIM1 counter stopped when core is halted
//   &amp;lt;o1.1&amp;gt;    DBG_TIM8_STOP &lt;/i&gt;   TIM8 counter stopped when core is halted
//   &amp;lt;o1.16&amp;gt;   DBG_TIM9_STOP &lt;i&gt;   TIM9 counter stopped when core is halted
//   &amp;lt;o1.17&amp;gt;   DBG_TIM10_STOP &lt;/i&gt;  TIM10 counter stopped when core is halted
//   &amp;lt;o1.18&amp;gt;   DBG_TIM11_STOP &lt;i&gt;  TIM11 counter stopped when core is halted
// &amp;lt;/h&amp;gt;
  _WDWORD(0xE004200C, 0x00070003);  // DBGMCU_APB2_FZ
}

DebugSetup();                       // Debugger Setup

&lt;/i&gt;
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>