MDK-PRO

MDK-PRO Datasheet


Keil MDK Toolkit featuring Serial Wire Viewer and ETM Trace

Part Datasheet
MDK-PRO MDK-PRO MDK-PRO (pdf)
Related Parts Information
MDK-PRO-T MDK-PRO-T MDK-PRO-T
MDK-ARM-T MDK-ARM-T MDK-ARM-T
PDF Datasheet Preview
STMicroelectronics STM32 Cortex -M4 Lab

Keil MDK Toolkit featuring Serial Wire Viewer and ETM Trace

For the STM3240G-EVAL board

Version Robert Boys

Introduction:

For the ST STM3240G-EVAL Evaluation Board with STM32F407

The purpose of this lab is to introduce you to the STMicroelectronics Cortex -M4 processor family using the Keil MDK toolkit featuring the IDE We will use the Serial Wire Viewer SWV and ETM trace on the STM3240G-

EVAL evaluation board from STMicroelectroncs. At the end of this tutorial, you will be able to confidently work with

STM32 processors and MDK. Keil offers a similar board MCBSTM32F400 . Examples are provided for both boards.

Keil MDK comes in an evaluation version that limits code and data size to 32 Kbytes. Nearly all Keil examples will compile within this 32K limit. The addition of a license number will turn it into the full, unrestricted version. Contact Keil sales for a temporary full version license if you need to evaluate MDK with programs greater than 32K. MDK includes a full version of

Keil RTX RTOS. No royalty payments are required. RTX source code is now included with all versions of Keil MDK .

Why Use Keil MDK ?

MDK provides these features particularly suited for Cortex-M3 and Cortex-M4 users:
µVision IDE with Integrated Debugger, Flash programmer and the Compiler toolchain. MDK is a turn-key
product with included examples.

Serial Wire Viewer and ETM trace capability is included. A full feature Keil RTOS called RTX is included with MDK with source code.

RTX Kernel Awareness window is updated in real-time. Kernel Awareness exists for Keil RTX, CMX, Quadros and Micrium. All RTOSs can compile with MDK. Awareness can be provided by the supplier.

Choice of adapters ULINK2 , ULINK-ME , ULINKpro or Segger J-Link version 6 or later . ST-Link is supported but it has no SWV or ETM support at this time. SWV for ST-Link is planned for 4Q11.

Keil Technical Support is included for one year and is renewable. This helps you get your project completed faster.

This document details these features:

Serial Wire Viewer SWV with ULINK2, ULINK-ME and ULINKpro. ETM Trace using ULINKpro.

Real-time Read and Write to memory locations for Watch, Memory and RTX Tasks windows. These are nonintrusive to your program. No CPU cycles are stolen. No instrumentation code is added to your source files.

Six Hardware Breakpoints can be set/unset on-the-fly and four Watchpoints also called Access Breaks .

RTX Viewer a kernel awareness program for the Keil RTX RTOS that updates while the program is running.

Serial Wire Viewer SWV :

Serial Wire Viewer SWV displays PC Samples, Exceptions including interrupts , data reads and writes, ITM printf , CPU counters and a timestamp. This information comes from the ARM CoreSight debug module integrated into the Cortex-M4. SWV is output on the Serial Wire Output SWO pin found on the JTAG/SWD adapter connector.

SWV does not steal any CPU cycles and is completely non-intrusive except for ITM Debug printf Viewer. SWV is provided by the Keil ULINK2, ULINK-ME, ULINKpro and the Segger J-Link. Best results are with a ULINK family adapter. The STMicroelectronics ST-Link adapter does not support SWV at this time.

Embedded Trace Macrocell ETM :

ETM adds all the program counter values to the data provided by SWV. This allows advanced debugging features including timing of areas of code Execution Profiling , Code Coverage, Performance Analysis and program flow debugging and analysis. ETM requires a special debugger adapter such as the ULINKpro or Segger J-Trace. This document uses a ULINKpro for ETM. A ULINK2 or ULINK-ME is used for the Serial Wire Viewer exercises in this lab.

STMicroelectronics Cortex-M3 Lab with STM3240G-EVAL board

Copyright 2011 ARM Ltd. All rights reserved

STM32 Evaluation Board list, 5 Steps, MDK Install, Useful Definitions

Part A Connecting and Configuring to the target board:

Connecting ULINK2, ULINK-ME or ULINKpro to the STM3240G board:

ULINK2 or ULINK-ME and µVision Configuration:

ULINKpro and µVision Configuration:

ST-Link from STMicroelectronics and µVision Configuration:

Segger J-Link and µVision Configuration:

Part B Blinky Example Programs using a ULINK2 or ULINK-ME:

Blinky Example Program using the STM32 and ULINK2 or ULINK-ME:

Hardware Breakpoints:
More datasheets: MCBTMPM362 | MCBTMPM364 | SPU30N03S2-08 | IPB093N04LGATMA1 | DDM-43W2S-A197 | USB3316B-GJ-TR | USB3316B-CP-TR | USB3316D-GJ-TR | SQ87173PNF | GWM100-0085X1-SMD


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived MDK-PRO Datasheet file may be downloaded here without warranties.

Datasheet ID: MDK-PRO 644705