EasyManua.ls Logo

STMicroelectronics STM32 - Figure 76. Keil Initialization Script Setting

STMicroelectronics STM32
118 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AN4989 Rev 3 101/118
AN4989 Managing DBGMCU registers
117
Figure 76. Keil
®
Initialization script setting
Sample code for Init file setting DBGMCU registers on M0 based MCU (Clock enabling)
FUNC void DBGMCUSetup (void) {
// DBGMCU configuration
_WDWORD(0x40021034, 0x00400000); // Enable clock DBG
_WDWORD(0x40015804, 0x00000007); // DBG_CR
_WDWORD(0x40015808, 0x00000001); // DBG_APB1_FZ
}
DBGMCUSetup();
For further information regarding Keil
®
MDK-Arm µVision initialization script, refer to
http://www.keil.com.

Table of Contents

Related product manuals